joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439cb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00406790
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00434aa8
test ebx, ebx
jne 0x439d03
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.00439bec
mov ebx, eax
test ebx, ebx
je 0x439dee
cmp esi, ebx
je 0x439d2c
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x439d41
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x439d79
add eax, 0xffffff5f
sub eax, 2
jb 0x439d91
dec eax
sub eax, 2
jb 0x439da5
dec eax
sub eax, 2
jb 0x439d9b
jmp 0x439daf
add eax, 0xfffffdff
sub eax, 2
jb 0x439d91
dec eax
sub eax, 2
jb 0x439da5
dec eax
sub eax, 2
jb 0x439d9b
jmp 0x439daf
mov byte [esp + 0x120], 0
jmp 0x439db7
mov byte [esp + 0x120], 2
jmp 0x439db7
mov byte [esp + 0x120], 1
jmp 0x439db7
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004485cc
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00436218
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x439df0
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x441f40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x458af8]
cmp byte [eax + 0xc], 0
je 0x4420ad
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4420a6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45dc50], 0
jne 0x441f94
push 0x4420b4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4420bc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc50], eax
cmp dword [0x458544], 0
jne 0x44208f
push 0x4420cc
call sub.kernel32.dll_LoadLibraryA
mov dword [0x458544], eax
cmp dword [0x458544], 0
je 0x44208f
push 0x4420d8
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc54], eax
push 0x4420e8
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc58], eax
push 0x4420fc
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc5c], eax
push 0x442114
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc60], eax
push 0x44212c
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc64], eax
push 0x442140
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc68], eax
push 0x442158
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc6c], eax
push 0x442170
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc70], eax
push 0x44218c
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc74], eax
push 0x442198
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4420ad
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x4480f8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov edi, eax
push 0xffffffffffffffec
push edi
call sub.user32.dll_GetWindowLongA
mov esi, eax
test bl, bl
je 0x448119
test esi, 0x40000
je 0x448133
test bl, bl
jne 0x4481cd
mov eax, esi
and eax, 0x40000
cmp eax, 0x40000
jne 0x4481cd
push edi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push edi
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x448166
mov eax, dword [0x45dc94]
cmp edi, dword [eax + 0x30]
jne 0x448162
mov eax, dword [0x45dc94]
cmp byte [eax + 0x5b], 0
jne 0x448166
xor eax, eax
jmp 0x448168
mov al, 1
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x44817f
push 0
push edi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x448194
or esi, 0x40000
push esi
push 0xffffffffffffffec
push edi
call sub.user32.dll_SetWindowLongA
jmp 0x4481a3
and esi, 0xfffbffff
push esi
push 0xffffffffffffffec
push edi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x4481b4
cmp byte [esp + 2], 0
je 0x4481cd
cmp byte [esp + 2], 0
je 0x4481c5
push 6
push edi
call sub.user32.dll_ShowWindow
jmp 0x4481cd
push 5
push edi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x448470
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x448496
mov eax, esp
push eax
push 0x448438
call sub.user32.dll_EnumWindows
jmp 0x4484a9
mov eax, esp
push eax
push 0x448418
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x448534
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x448588]
test si, 4
je 0x448549
or bl, 1
test si, 8
je 0x448553
or bl, 4
test si, 1
je 0x44855d
or bl, 8
test si, 2
je 0x448567
or bl, 0x10
test si, 0x10
je 0x448571
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448580
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44858c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4485c8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4485a6
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4485b5
or bl, 4
test esi, 0x20000000
je 0x4485c0
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x450634
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x450646
add esp, 0xfffffff0
call fcn.00403e68
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a114
mov eax, dword [0x4587cc]
mov dword [eax + 4], ebx
mov dword [eax], 0x4509d8
mov eax, dword [0x4587d8]
mov dword [eax + 4], ebx
mov dword [eax], 0x4509e4
mov eax, ebx
call fcn.004509f0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411ec4]
call fcn.00403b2c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411ec4]
call fcn.00403b2c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411ec4]
call fcn.00403b2c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411ec4]
call fcn.00403b2c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411ec4]
call fcn.00403b2c
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, 0x44be98
push eax
push 0
push 0
mov eax, dword [0x45891c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41dca8]
call fcn.0041f1c8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41dca8]
call fcn.0041f1c8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41dca8]
call fcn.0041f1c8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00450e68
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450d38
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450d38
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450d38
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450783
call fcn.00403ec0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x450b1c
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 0x450cc7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x450ca8
mov dl, 1
mov eax, dword [0x4122e8]
call fcn.00403b2c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404970
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x450c97
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.0044229c
test al, al
je 0x450c8a
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, 0x450cd8
lea eax, [ebp - 0x254]
call fcn.004093b8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x450c8a
xor eax, eax
push ebp
push 0x450c83
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x450d10
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x450c6c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00404be0
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 0x450c6c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00404be0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450c8a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x450b8d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00415fc0
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 0x450cce
lea eax, [ebp - 0x260]
call fcn.00404970
ret

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

Disassembly:
push ecx
mov eax, dword [0x45dc94]
cmp byte [eax + 0xad], 0
jne 0x4516b1
cmp dword [0x45dcb0], 0
jne 0x451672
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4515fc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45dcb0], eax
cmp dword [0x45dcac], 0
jne 0x45168d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45dcac], eax
cmp dword [0x45dcb4], 0
jne 0x4516b1
push esp
push 0
push 0
push 0x4515a0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45dcb4], eax
pop edx
ret
Function at 0x4518b4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4518cb
add esp, 0xfffffff0
call fcn.00403e68
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a114
mov eax, dword [0x458908]
cmp word [eax + 2], 0
jne 0x4518f3
mov eax, dword [0x458908]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004535a4
mov eax, dword [0x4589ac]
cmp word [eax + 2], 0
jne 0x45190d
mov eax, dword [0x4589ac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004537b0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411ec4]
call fcn.00403b2c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411ec4]
call fcn.00403b2c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411ec4]
call fcn.00403b2c
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41e484]
call fcn.00424350
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x451ac4
mov eax, dword [0x458834]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424724
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x453e74
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x458834]
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.0040cae0
test eax, eax
je 0x451a14
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408d70
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cb14
test eax, eax
je 0x451a28
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.00404be0
mov byte [ebx + 0xd4], 0
push ebx
push 0x453030
call fcn.0041b290
mov dword [ebx + 0xc8], eax
mov eax, dword [0x45873c]
cmp byte [eax], 0
jne 0x451a79
mov eax, ebx
call fcn.00451c08
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00454058
mov eax, ebx
call fcn.00454bbc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x451ab9
call fcn.00403ec0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451e88
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x451f27
cmp dword [ebx + 0x94], 0
jne 0x451f21
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451e10
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451f21
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 0x451ee7
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451f21
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.00414268
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451ef6
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x452140
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x45dc94]
cmp dword [eax + 0x30], 0
je 0x45229d
test bl, bl
jne 0x4521ee
cmp dword [esi + 0x9c], 0
jne 0x4521e3
mov eax, esi
call fcn.00454a38
push eax
push 0x45206c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4521b4
mov eax, dword [0x45dc94]
call fcn.00455028
test al, al
je 0x4521b4
mov eax, dword [0x45dcb8]
call fcn.0040582c
mov edi, eax
cmp edi, 0
jl 0x4521b4
push 0
mov eax, dword [0x45dcb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45219e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4521e3
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00414268
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4521c3
inc dword [esi + 0x9c]
jmp 0x45229d
cmp dword [esi + 0x9c], 0
jle 0x45229d
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x45229d
cmp dword [esi + 0x44], 0
je 0x452249
mov eax, dword [0x45dc94]
call fcn.00455028
test al, al
je 0x452249
mov eax, dword [0x45dcb8]
call fcn.0040582c
mov edi, eax
cmp edi, 0
jl 0x452249
push 5
mov eax, dword [0x45dcb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x452233
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x452278
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00414268
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x452258
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x45dcb8
mov ecx, 1
mov edx, dword [0x45204c]
call fcn.004059e0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x452d84
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x452dee
mov eax, ebx
call fcn.00455028
test al, al
jne 0x452dee
push 0x100
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.00404a60
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x452ddb
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x452dfb
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004049c4
jmp 0x452dfb
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004049c4
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x45423c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4542aa
mov eax, esi
call fcn.0043d0d4
test al, al
je 0x4542aa
mov eax, dword [ebx + 0x84]
call fcn.0043cdd8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4542aa
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45429e
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043cdd8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00434e80
jmp 0x4542aa
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00454078
pop esi
pop ebx
ret
Function at 0x409094
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x409180
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00406a2c
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
mov edx, 0x409198
call fcn.00408944
push 0
mov eax, dword [ebp - 4]
call fcn.00403438
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x40914e
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x4090b4
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.0040873c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404c20
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00406e04
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x60
call fcn.0040870c
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x40459c
call fcn.00405838
call fcn.00402eb4
jmp 0x4090b4
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004031e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409187
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004031b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004031b8
ret

Function at 0x4091a8
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 0x40925c
jmp 0x409251
cmp dword [esi + 0x10], 0x1000
jne 0x40923d
test byte [esi + 0x15], 1
jne 0x40923d
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x4091fc
cmp eax, 2
je 0x4091fc
cmp eax, 0x10
je 0x4091fc
cmp eax, 0x20
jne 0x409211
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 0x409211
mov bl, 1
xor ebp, ebp
jmp 0x409222
mov eax, dword [esi]
add eax, ebp
call fcn.004091a0
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jl 0x409215
test bl, bl
je 0x40923d
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 0x40925c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4091d4
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x50459e
Capabilities:
Encode data using xor

Disassembly:
add al, byte [eax]
add esp, 4
jp 0x532cae
push ecx
repne scasb al, byte es:[edi]
call fcn.0053062f
pop ecx
outsd dx, dword [esi]
out dx, al
dec ebx
inc edx
jp 0x504583
pop di
sbb bh, cl
dec esi
push edx
dec ebx
retf
test bp, si
test ah, 0xe8
stc
repne scasb al, byte es:[edi]
pushfd
pushal
jmp fcn.00504a42
Function at 0x402a6c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404034
test esi, esi
jne 0x402aa2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404124
jmp 0x402ac0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402980
mov edi, eax
test esi, esi
je 0x402ac0
cmp dword [ebx], 0
je 0x402ac0
dec esi
jmp 0x402aa9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403154
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46f020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4031ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4031cc
xor eax, eax
push ebp
push 0x4031c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403208
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4031cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x46f020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46f020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403eb8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47104c], 0
je 0x403f19
cmp word [0x471220], 0xd7b2
jne 0x403ee1
cmp dword [0x471228], 0
jbe 0x403ee1
mov eax, 0x47121c
call dword [0x471238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46f06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403f40
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46f030], 0
jne 0x403f35
push 0
push 0x46f064
push 0x46f06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret