joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ce68
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48d013
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x48cff4
mov dl, 1
mov eax, dword [0x41b3d8]
call fcn.004034d0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404350
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x48cfe3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0047a03c
test al, al
je 0x48cfd6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x48d024
lea eax, [ebp - 0x254]
call fcn.0040a2c8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x48cfd6
xor eax, eax
push ebp
push 0x48cfcf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x48d05c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x48cfb8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004045c0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x48cfb8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004045c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48cfd6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x48ced9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041fca8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d01a
lea eax, [ebp - 0x260]
call fcn.00404350
ret

Function at 0x48d990
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x52ac18]
cmp byte [eax + 0xa5], 0
jne 0x48da01
cmp dword [0x52ac30], 0
jne 0x48d9c2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x48d94c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x52ac30], eax
cmp dword [0x52ac2c], 0
jne 0x48d9dd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x52ac2c], eax
cmp dword [0x52ac34], 0
jne 0x48da01
push esp
push 0
push 0
push 0x48d8f0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x52ac34], eax
pop edx
ret
Function at 0x48db28
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x48db3f
add esp, 0xfffffff0
call fcn.00403864
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00425d3c
mov eax, dword [0x52904c]
cmp word [eax + 2], 0
jne 0x48db67
mov eax, dword [0x52904c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0048f2a8
mov eax, dword [0x5291fc]
cmp word [eax + 2], 0
jne 0x48db81
mov eax, dword [0x5291fc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0048f4a0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41ad74]
call fcn.004034d0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41ad74]
call fcn.004034d0
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x4283a8]
call fcn.00430310
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x48dd08
mov eax, dword [0x528e0c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004306e0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x48fa50
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x528e0c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040e658
test eax, eax
je 0x48dc76
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004098f0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e680
test eax, eax
je 0x48dc8a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004045c0
mov eax, dword [0x528b08]
cmp byte [eax], 0
jne 0x48dcbe
mov eax, ebx
call fcn.0048de30
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0048fc2c
mov eax, ebx
call fcn.00490640
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x48dcfe
call fcn.004038bc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48e0b0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x52ac18]
cmp dword [eax + 0x30], 0
je 0x48e15a
cmp dword [ebx + 0x94], 0
jne 0x48e154
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x48e040
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x48e154
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x48e11a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x48e154
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041d668
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x48e129
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x48ecbc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x48ecf1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404440
jmp 0x48ecfe
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004043a4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x48fe08
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x48fe49
mov eax, esi
call fcn.004755c0
test al, al
je 0x48fe49
mov eax, dword [ebx + 0x84]
call fcn.004752bc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x48fe49
push 0
mov eax, dword [ebx + 0x84]
call fcn.004752bc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x493560
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x49358e
mov eax, ebx
call fcn.00494014
cmp dword [ebx + 0x40], 0
je 0x493587
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4935ff
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4935f1
cmp dword [ebx + 8], 0
je 0x4935b0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4935c2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4935f1
cmp dword [ebx + 8], 0
je 0x4935a3
cmp eax, 3
je 0x4935d5
dec eax
jne 0x4935a3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4935a3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4935a3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x49361d
cmp dword [ebx + 0x14], 0xcc
je 0x49361d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00493628
pop ebx
ret
Function at 0x4a4b5c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 3
jl 0x4a4c24
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
sub eax, 2
test eax, eax
jl 0x4a4bd9
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + eax*8 + 8]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
sub eax, dword [ecx + edx*8]
cdq
xor eax, edx
sub eax, edx
mov ecx, eax
add ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + eax*8 + 0xc]
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x1c]
sub eax, dword [ebx + edx*8 + 4]
cdq
xor eax, edx
sub eax, edx
add ecx, eax
mov dword [ebp - 0x14], ecx
inc dword [ebp - 0x10]
dec dword [ebp - 0x20]
jne 0x4a4b96
mov eax, dword [ebp - 0x14]
shl eax, 3
call fcn.004a3d30
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x3a], eax
mov byte [ebp - 0x32], 0
lea eax, [ebp - 0x6a]
push eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, 0xffffff
call fcn.004a3d84
mov eax, dword [ebp - 0x3a]
sub eax, dword [ebp - 0x18]
shr eax, 3
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_Polyline
mov eax, dword [ebp - 0x18]
call fcn.004a3d54
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4aec10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x4aec48]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4aec26
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4aec35
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4aec44
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x4affe4
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x52919c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4b000a
push 0
mov eax, dword [0x52919c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x4b6d58
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x41a2ec]
call fcn.00404ce8
xor eax, eax
push ebp
push 0x4b6e9c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x526e50], 0
jne 0x4b6dab
mov ecx, dword [0x528b44]
mov dl, 1
mov eax, dword [0x407c5c]
call fcn.0040d780
call fcn.00403ccc
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402e50
mov eax, ebx
call fcn.00404bb8
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4b6eac
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405f60
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404bc8
test eax, eax
jle 0x4b6e43
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4b6e3c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004045d8
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004045c0
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408c04
test eax, eax
jne 0x4b6e3c
mov ebx, 0x15
jmp 0x4b6e48
mov ebx, 0x10
jmp 0x4b6e48
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x526e50]
call fcn.004b6cb0
mov eax, dword [ebp - 8]
call fcn.004b6cb0
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405f78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b6ea3
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404374
lea eax, [ebp - 0x10]
mov edx, dword [0x41a2ec]
call fcn.00404db8
ret

Function at 0x4dc107
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x52831e
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4dc15f
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x52833f
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4dc155
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4dc163
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4edc0c
Capabilities:
Suspend thread

Disassembly:
mov byte [eax + 0xd], 1
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
ret

Function at 0x4edc1c
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x4edc31
mov byte [ebx + 0xd], 0
pop ebx
ret
Function at 0x4edd34
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov ebx, eax
push 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, ebx
call fcn.004edca0
mov esi, eax
mov eax, ebx
call fcn.00403500
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4fa134
Capabilities:
Link many functions at runtime

Disassembly:
mov byte [0x528918], 0
mov eax, dword [0x5294ec]
cmp dword [eax], 2
jne 0x4fa30d
mov eax, dword [0x528e14]
cmp dword [eax], 5
jl 0x4fa30d
call fcn.004f72d0
test al, al
jne 0x4fa165
call fcn.004f72dc
call fcn.004f72c8
mov dword [0x528920], eax
push 0x4fa310
mov eax, dword [0x528920]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5288e4], eax
cmp dword [0x5288e4], 0
jne 0x4fa1c0
mov edx, 0x8000
mov eax, 0x4fa324
call fcn.0040f590
mov dword [0x52891c], eax
mov eax, dword [0x52891c]
mov dword [0x528920], eax
push 0x4fa310
mov eax, dword [0x528920]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5288e4], eax
cmp dword [0x5288e4], 0
je 0x4fa308
push 0x4fa330
mov eax, dword [0x528920]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5288e8], eax
cmp dword [0x5288e8], 0
je 0x4fa308
push 0x4fa33c
mov eax, dword [0x528920]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5288ec], eax
cmp dword [0x5288ec], 0
je 0x4fa308
mov byte [0x528918], 1
push 0x4fa34c
mov eax, dword [0x528920]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5288f0], eax
push 0x4fa358
mov eax, dword [0x528920]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5288f4], eax
push 0x4fa364
mov eax, dword [0x528920]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5288f8], eax
push 0x4fa374
mov eax, dword [0x528920]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5288fc], eax
push 0x4fa384
mov eax, dword [0x528920]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x528900], eax
mov edx, 0x8000
mov eax, 0x4fa39c
call fcn.0040f590
mov dword [0x528924], eax
cmp dword [0x528924], 0
je 0x4fa30d
push 0x4fa3ac
mov eax, dword [0x528924]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x528904], eax
push 0x4fa3c8
mov eax, dword [0x528924]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x528908], eax
push 0x4fa3e8
mov eax, dword [0x528924]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52890c], eax
push 0x4fa404
mov eax, dword [0x528924]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x528910], eax
push 0x4fa41c
mov eax, dword [0x528924]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x528914], eax
ret
call fcn.004fa0b4
ret
Function at 0x4fca40
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4fcb68
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.004fc92c
mov eax, dword [esi]
call fcn.004055cc
add eax, 0x28
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4f4da4]
call fcn.00405788
add esp, 4
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.00402a00
mov ebx, 0x1c
mov eax, dword [ebp - 8]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.00402a00
add ebx, 0x1c
mov eax, dword [esi]
call fcn.004055cc
mov dword [ebp - 0xc], eax
mov eax, dword [0x5293bc]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 8]
mov ecx, ebx
call fcn.004f5a80
add ebx, 4
mov eax, dword [ebp - 8]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.00402e50
add ebx, 3
mov eax, dword [ebp - 8]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.004055cc
push eax
lea ecx, [ebp - 8]
mov eax, dword [esi]
xor edx, edx
call fcn.004f59b0
mov edx, dword [ebp - 8]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov ebx, eax
mov eax, ebx
call fcn.004f5998
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.004f5a78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fcb6f
lea eax, [ebp - 8]
mov edx, dword [0x4f4da4]
call fcn.004058a8
ret

Function at 0x5175f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x51765f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.004045c0
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040e3f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517666
lea eax, [ebp - 0x10c]
call fcn.00404350
ret
Function at 0x518adc
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x518c1a
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x518bef
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x130], 0x128
lea eax, [ebp - 0x130]
push eax
push esi
call sub.kernel32.dll_Process32First
xor ebx, ebx
mov byte [ebp - 1], 0
jmp 0x518bd5
mov eax, dword [ebp - 0x128]
xor edx, edx
push edx
push eax
mov eax, edi
cdq
cmp edx, dword [esp + 4]
jne 0x518b54
cmp eax, dword [esp]
pop edx
pop eax
jne 0x518bc8
mov bl, 1
lea eax, [ebp - 0x134]
lea edx, [ebp - 0x10c]
mov ecx, 0x104
call fcn.004045c0
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 8]
call fcn.00408a60
mov eax, dword [ebp - 8]
mov edx, 0x518c34
call fcn.0040475c
je 0x518bba
mov eax, dword [ebp - 8]
mov edx, 0x518c4c
call fcn.0040475c
je 0x518bba
mov eax, dword [ebp - 8]
mov edx, 0x518c60
call fcn.0040475c
je 0x518bba
mov eax, dword [ebp - 8]
mov edx, 0x518c74
call fcn.0040475c
jne 0x518bc8
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x518bf9
lea eax, [ebp - 0x130]
push eax
push esi
call sub.kernel32.dll_Process32Next
test eax, eax
jne 0x518b3e
test bl, bl
jne 0x518be5
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x518bf9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x518c21
lea eax, [ebp - 0x134]
call fcn.00404350
lea eax, [ebp - 8]
call fcn.00404350
ret
Function at 0x518c84
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404800
lea esi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x518e03
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x518dd3
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [esi], 0x128
push esi
push ebx
call sub.kernel32.dll_Process32First
jmp 0x518dc1
lea eax, [ebp - 0x138]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.004045c0
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409768
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408a60
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408a60
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.0040475c
je 0x518da5
lea eax, [ebp - 0x144]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.004045c0
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408a60
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408a60
mov edx, dword [ebp - 0x148]
pop eax
call fcn.0040475c
jne 0x518dba
push 0
mov eax, dword [esi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
push esi
push ebx
call sub.kernel32.dll_Process32Next
test eax, eax
jne 0x518d06
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x518ddd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x518e0a
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404374
lea eax, [ebp - 4]
call fcn.00404350
ret