joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e024
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x5568b0]
cmp byte [eax + 0xc], 0
je 0x43e191
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43e18a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x557b24], 0
jne 0x43e078
push 0x43e198
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43e1a0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x557b24], eax
cmp dword [0x459b34], 0
jne 0x43e173
push 0x43e1b0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x459b34], eax
cmp dword [0x459b34], 0
je 0x43e173
push 0x43e1bc
mov eax, dword [0x459b34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x557b28], eax
push 0x43e1cc
mov eax, dword [0x459b34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x557b2c], eax
push 0x43e1e0
mov eax, dword [0x459b34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x557b30], eax
push 0x43e1f8
mov eax, dword [0x459b34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x557b34], eax
push 0x43e210
mov eax, dword [0x459b34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x557b38], eax
push 0x43e224
mov eax, dword [0x459b34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x557b3c], eax
push 0x43e23c
mov eax, dword [0x459b34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x557b40], eax
push 0x43e254
mov eax, dword [0x459b34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x557b44], eax
push 0x43e270
mov eax, dword [0x459b34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x557b48], eax
push 0x43e27c
mov eax, dword [0x459b34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x557b4c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e191
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x442044
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404258
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x442093
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004044c8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x449864
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4498b4]
test si, 4
je 0x449878
or bl, 1
test si, 8
je 0x449882
or bl, 4
test si, 1
je 0x44988c
or bl, 8
test si, 2
je 0x449896
or bl, 0x10
test si, 0x10
je 0x4498a0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4498af
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4498b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4498f0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4498d1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4498e0
or bl, 4
test esi, 0x20000000
je 0x4498eb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44ffb4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44ffc6
add esp, 0xfffffff0
call fcn.004037e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419b0c
mov eax, dword [0x55658c]
mov dword [eax + 4], ebx
mov dword [eax], 0x450358
mov eax, dword [0x556598]
mov dword [eax + 4], ebx
mov dword [eax], 0x450364
mov eax, ebx
call fcn.00450370
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411d24]
call fcn.0040347c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411d24]
call fcn.0040347c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411d24]
call fcn.0040347c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411d24]
call fcn.0040347c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411d24]
call fcn.0040347c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44c788
push eax
push 0
push 0
mov eax, dword [0x5566d4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b564]
call fcn.0041ccfc
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b564]
call fcn.0041ccfc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b564]
call fcn.0041ccfc
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004507c0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450688
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450688
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450688
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450103
call fcn.0040383c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45046c
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 0x450617
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4505f8
mov dl, 1
mov eax, dword [0x412140]
call fcn.0040347c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404258
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4505e7
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.0043e384
test al, al
je 0x4505da
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, 0x450628
lea eax, [ebp - 0x254]
call fcn.00408ee8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4505da
xor eax, eax
push ebp
push 0x4505d3
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 0x450660
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4505bc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044c8
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 0x4505bc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4505da
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4504dd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415ca4
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 0x45061e
lea eax, [ebp - 0x260]
call fcn.00404258
ret

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

Disassembly:
push ecx
mov eax, dword [0x557b70]
cmp byte [eax + 0xa5], 0
jne 0x450fd1
cmp dword [0x557b88], 0
jne 0x450f92
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x450f1c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x557b88], eax
cmp dword [0x557b84], 0
jne 0x450fad
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x557b84], eax
cmp dword [0x557b8c], 0
jne 0x450fd1
push esp
push 0
push 0
push 0x450ec0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x557b8c], eax
pop edx
ret
Function at 0x451664
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x557b70]
cmp dword [eax + 0x30], 0
je 0x45170e
cmp dword [ebx + 0x94], 0
jne 0x451708
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4515f4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451708
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 0x4516ce
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451708
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.004140a0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4516dd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45226c
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 0x4522a1
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.00404348
jmp 0x4522ae
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042ac
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4533c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x453401
mov eax, esi
call fcn.00439960
test al, al
je 0x453401
mov eax, dword [ebx + 0x84]
call fcn.0043965c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x453401
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043965c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x453ca0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
je 0x453cbc
push esi
mov esi, edx
mov edx, eax
lodsb al, byte [esi]
xor edx, eax
shr eax, 8
shl edx, 2
xor eax, dword [edx + 0x459d68]
dec ecx
jne 0x453ca7
pop esi
ret
Function at 0x454198
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404708
mov eax, dword [ebp - 8]
call fcn.00404708
xor eax, eax
push ebp
push 0x4543a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040c510
test eax, eax
jne 0x4541ea
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004042f0
jmp 0x45420b
push 0
mov eax, dword [ebp - 8]
call fcn.00404718
push eax
mov eax, dword [ebp - 4]
call fcn.00404718
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x45437e
xor eax, eax
push ebp
push 0x454237
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x22
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x412340]
call fcn.00416214
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45424b
xor edx, edx
push ebp
push 0x45435b
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00453cc0
mov ebx, eax
mov dword [ebp - 0x14], 0x45a168
push 8
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00454028
test al, al
je 0x454351
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 8
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00453cc0
mov esi, eax
mov ecx, dword [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 0x10]
call fcn.00454158
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 4
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00453cc0
push esi
mov edx, dword [ebp - 0x18]
add edx, 4
mov ecx, eax
mov eax, dword [ebp - 0x10]
call fcn.00453f44
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 8
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00453cc0
cmp esi, eax
je 0x454300
mov ecx, 0x156
mov edx, 0x4543bc
mov eax, 0x45440c
call fcn.00404238
push 0
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00453cc0
mov esi, eax
cmp esi, ebx
je 0x454351
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x2c]
mov ecx, 1
mov eax, 0x45443c
call fcn.00408f80
mov eax, dword [ebp - 0x1c]
mov ecx, 0x15a
mov edx, 0x4543bc
call fcn.00404238
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x454372
mov eax, dword [ebp - 0x10]
call fcn.004034ac
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4543a8
lea eax, [ebp - 0x1c]
call fcn.00404258
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040427c
ret
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x40596d
pop dword [ebp - 0x1c]
mov eax, 0x40596d
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x40450ce4
sub dword [ebp - 0x2c], 0xf1f2c799
mov dword [ebp - 0x28], 0x19e98af0
add dword [ebp - 0x28], 0x1849c155
mov dword [ebp - 0x24], 0x1037e4b
sub dword [ebp - 0x24], 0xb4b73a1d
mov dword [ebp - 0x20], 0xb9d1a2d2
sub dword [ebp - 0x20], 0xb9d1a2d2
lea eax, [ebp - 0x2c]
push eax
mov eax, 0xb7d4edd5
sub eax, 0xb7947d75
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x965beb23
sub dword [ebp - 0x2c], 0x21e981cd
mov dword [ebp - 0x28], 0x6c52cc5f
sub dword [ebp - 0x28], 0x2ae66aea
mov dword [ebp - 0x24], 0x16b4fe03
sub dword [ebp - 0x24], 0xb3459197
mov dword [ebp - 0x20], 0xcbf3680
sub dword [ebp - 0x20], 0xcbf3680
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xa184bc56
add eax, 0x5ebbb4aa
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x35ed3
push 0
call eax
mov ecx, 0x911e69a4
sub ecx, 0x911e24cd
xor esi, esi
add esi, eax
mov edx, 0x9c1d8744
add edx, 0x642378bc
add edx, dword [ebp - 0x1c]
mov edi, 0x36839ffe
add edi, 0xdcdd9284
xor dword [ebp - 8], ebx
mov ebx, dword [edx]
xor dword [ebp - 0x18], 0x6e5ce5ad
add ebx, edi
mov dword [esi], ebx
xor dword [ebp - 0x14], 0xe0ea36d8
add esi, 0xcd2f2451
sub esi, 0xcd2f244d
add edx, 4
loop 0x405a8c
add eax, 0xebda3833
add eax, 0x1426cdfc
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x63b98174
add ecx, 0x9c867e8c
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x4011fe
Capabilities:
Check for time delay via gettickcount

Disassembly:
jmp 0x408672
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
je 0x40119e
push str.Sleep
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x40119e
jmp 0x401043
ret
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
push 0x38
call dword [sym.imp.KERNEL32.DLL_Sleep]
call esi
sub eax, 0x38
cmp eax, 0x38
pop esi
jb 0x4011c0
jmp 0x40117a
ret
push str.crypt32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
je 0x4011d5
jmp 0x40119f
ret
push str.CFxconkWrvWniqcdvUuXVrzNuywcUyxjtHTUPQrfXd
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
test eax, eax
je 0x4011fd
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x4011fd
jmp 0x4011c1
ret
push str.dxdoGDMSDhDUbWPQOcLHATgmmjrIvNifWgJtRDUJXCOySBnhVuRsHOYI
push 1
push 0x1f0003
call dword [sym.imp.KERNEL32.DLL_OpenEventA]
test eax, eax
jne 0x401219
jmp 0x4011d6
ret
test al, dh
test bl, dl
push 0xe11af451
test bx, 0x99b2
mov dword [esp], ebp
clc
mov ebp, esp
test sp, 0x4f13
sub esp, 0x1c
call fcn.0040833f
Function at 0x403341
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040226d
xor ebx, ebx
cmp dword [0x588dd4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x403416
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x403381
xor eax, eax
jmp 0x4034da
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40337a
push eax
call fcn.0040220a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x588dd4], eax
call esi
push eax
call fcn.0040220a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x588dd8], eax
call esi
push eax
call fcn.0040220a
mov dword [0x588ddc], eax
lea eax, [ebp - 8]
push eax
call fcn.0040151c
test eax, eax
pop ecx
pop ecx
je 0x4033e4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402c2b
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x403416
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040220a
cmp eax, ebx
pop ecx
mov dword [0x588de4], eax
je 0x403416
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040220a
pop ecx
mov dword [0x588de0], eax
mov eax, dword [0x588de0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40348f
cmp dword [0x588de4], esi
je 0x40348f
push eax
call fcn.00402276
pop ecx
call eax
cmp eax, ebx
je 0x40345c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x588de4]
call fcn.00402276
pop ecx
call eax
test eax, eax
je 0x40345c
test byte [ebp - 0x18], 1
jne 0x40348f
lea eax, [ebp - 0xc]
push eax
call fcn.00401553
test eax, eax
pop ecx
je 0x403477
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402c2b
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x403486
or dword [ebp + 0x10], 0x200000
jmp 0x4034c0
or dword [ebp + 0x10], 0x40000
jmp 0x4034c0
mov eax, dword [0x588dd8]
cmp eax, esi
je 0x4034c0
push eax
call fcn.00402276
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4034c0
mov eax, dword [0x588ddc]
cmp eax, esi
je 0x4034c0
push dword [ebp - 4]
push eax
call fcn.00402276
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x588dd4]
call fcn.00402276
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40518a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x588568]
jne 0x405194
repz ret
jmp fcn.004067c5
Function at 0x4099a4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a77
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a90
push ebx
push 0x409a9c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a24
mov al, 0x69
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409978
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a2d
call fcn.00409978
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a7e
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b30
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
jmp 0x409bd9
cmp dword [esi + 0x10], 0x1000
jne 0x409bc5
test byte [esi + 0x15], 1
jne 0x409bc5
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b84
cmp eax, 2
je 0x409b84
cmp eax, 0x10
je 0x409b84
cmp eax, 0x20
jne 0x409b99
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b99
mov bl, 1
xor ebp, ebp
jmp 0x409baa
mov eax, dword [esi]
add eax, ebp
call fcn.00409b28
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b9d
test bl, bl
je 0x409bc5
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b5c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219