ทำบ้าอะไรกันอยู่

what the hell are you doing?

→ ทำ
phrase Rare #14,173
what the hell are you doing? An informal, rude way to question what someone is doing. กัน indicates that more than one person is involved, or that the speaker is addressing a group; the exact pronoun depends on context. วะ, ว่ะ, and นะ can make the expression sound even more casual or emphatic.
TH: พวกเธอทำบ้าอะไรกันอยู่ รีบออกมาได้แล้ว!
EN: What the hell are you doing? Come out already!

นี่เรากำลังมาทำบ้าอะไรกันอยู่วะเนี่ย?

What the hell are we doing here?

— โกสต์อินเดอะเชลล์ (1995)

ทำบ้าอะไรกันอยู่ว่ะ

What the fuck are you guys doing?

— เพชฌฆาต..มหากาฬ (1994)

กำลังทำบ้าอะไรกันอยู่นะ

What the hell are they doing?

— เพชฌฆาต..มหากาฬ (1994)

แกทำบ้าอะไรกันอยู่น่ะ

What the hell are you guys doing?

— เพชฌฆาต..มหากาฬ (1994)