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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4f3fa0]
cmp byte [eax + 0xc], 0
je 0x44c2a5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44c29e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4f4bf4], 0
jne 0x44c18c
push 0x44c2ac
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44c2b4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f4bf4], eax
cmp dword [0x4f1ba4], 0
jne 0x44c287
push 0x44c2c4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4f1ba4], eax
cmp dword [0x4f1ba4], 0
je 0x44c287
push 0x44c2d0
mov eax, dword [0x4f1ba4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f4bf8], eax
push 0x44c2e0
mov eax, dword [0x4f1ba4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f4bfc], eax
push 0x44c2f4
mov eax, dword [0x4f1ba4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f4c00], eax
push 0x44c30c
mov eax, dword [0x4f1ba4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f4c04], eax
push 0x44c324
mov eax, dword [0x4f1ba4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f4c08], eax
push 0x44c338
mov eax, dword [0x4f1ba4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f4c0c], eax
push 0x44c350
mov eax, dword [0x4f1ba4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f4c10], eax
push 0x44c368
mov eax, dword [0x4f1ba4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f4c14], eax
push 0x44c384
mov eax, dword [0x4f1ba4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f4c18], eax
push 0x44c390
mov eax, dword [0x4f1ba4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f4c1c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c2a5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x450490
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.00404638
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4504df
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.004048a0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4583c8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x458418]
test si, 4
je 0x4583dc
or bl, 1
test si, 8
je 0x4583e6
or bl, 4
test si, 1
je 0x4583f0
or bl, 8
test si, 2
je 0x4583fa
or bl, 0x10
test si, 0x10
je 0x458404
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x458413
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45841c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x458454]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x458435
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x458444
or bl, 4
test esi, 0x20000000
je 0x45844f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45ea58
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45ea6a
add esp, 0xfffffff0
call fcn.00403b50
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420a28
mov eax, dword [0x4f38d4]
mov dword [eax + 4], ebx
mov dword [eax], 0x45edfc
mov eax, dword [0x4f38ec]
mov dword [eax + 4], ebx
mov dword [eax], 0x45ee08
mov eax, ebx
call fcn.0045ee14
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x416350]
call fcn.004037bc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x416350]
call fcn.004037bc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x416350]
call fcn.004037bc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416350]
call fcn.004037bc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x416350]
call fcn.004037bc
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, 0x45b2dc
push eax
push 0
push 0
mov eax, dword [0x4f3ba4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4224c8]
call fcn.00423c3c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4224c8]
call fcn.00423c3c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4224c8]
call fcn.00423c3c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045f27c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45f158
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45f158
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45f158
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45eba7
call fcn.00403ba8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45ef3c
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 0x45f0e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45f0c8
mov dl, 1
mov eax, dword [0x4169b4]
call fcn.004037bc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404638
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45f0b7
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.0044c59c
test al, al
je 0x45f0aa
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, 0x45f0f8
lea eax, [ebp - 0x254]
call fcn.00409bdc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45f0aa
xor eax, eax
push ebp
push 0x45f0a3
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 0x45f130
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45f08c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004048a0
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 0x45f08c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004048a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f0aa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45efad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b0a8
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 0x45f0ee
lea eax, [ebp - 0x260]
call fcn.00404638
ret

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

Disassembly:
push ecx
mov eax, dword [0x4f4c38]
cmp byte [eax + 0xa5], 0
jne 0x45fa8d
cmp dword [0x4f4c50], 0
jne 0x45fa4e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45f9d8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4f4c50], eax
cmp dword [0x4f4c4c], 0
jne 0x45fa69
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4f4c4c], eax
cmp dword [0x4f4c54], 0
jne 0x45fa8d
push esp
push 0
push 0
push 0x45f97c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4f4c54], eax
pop edx
ret
Function at 0x45fbb4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45fbcb
add esp, 0xfffffff0
call fcn.00403b50
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420a28
mov eax, dword [0x4f3b90]
cmp word [eax + 2], 0
jne 0x45fbf3
mov eax, dword [0x4f3b90]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00461290
mov eax, dword [0x4f3cd8]
cmp word [eax + 2], 0
jne 0x45fc0d
mov eax, dword [0x4f3cd8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00461488
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416350]
call fcn.004037bc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416350]
call fcn.004037bc
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], 0x80000018
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 [0x422fe8]
call fcn.0042ad14
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45fd94
mov eax, dword [0x4f3994]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042b0e4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4619f8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4f3994]
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.0040d9d4
test eax, eax
je 0x45fd02
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409508
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d9fc
test eax, eax
je 0x45fd16
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.004048a0
mov eax, dword [0x4f36f8]
cmp byte [eax], 0
jne 0x45fd4a
mov eax, ebx
call fcn.0045febc
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.00461bd4
mov eax, ebx
call fcn.00462514
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45fd8a
call fcn.00403ba8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x460130
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4f4c38]
cmp dword [eax + 0x30], 0
je 0x4601da
cmp dword [ebx + 0x94], 0
jne 0x4601d4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4600c0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4601d4
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 0x46019a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4601d4
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.00418b98
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4601a9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x460cb8
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 0x460ced
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.00404728
jmp 0x460cfa
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040468c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x461db0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x461df1
mov eax, esi
call fcn.00447b8c
test al, al
je 0x461df1
mov eax, dword [ebx + 0x84]
call fcn.00447888
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x461df1
push 0
mov eax, dword [ebx + 0x84]
call fcn.00447888
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x464358
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4645b8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4643bb
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00463e20
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d4bc
cmp al, 1
jne 0x4643bb
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00464138
test al, al
je 0x464547
cmp dword [ebp - 8], 0
jge 0x4643d9
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00463e20
mov eax, dword [ebp - 0x210]
call fcn.004048f0
cmp ebx, eax
jge 0x464423
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00463e20
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4f3f7c]
and eax, 0xff
bt dword [edx], eax
jae 0x464423
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x464437
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00464334
cmp ebx, dword [ebp - 8]
je 0x464539
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x464463
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004039e8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4f1df8]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x464526
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004039e8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4f1df8]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00447888
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004039e8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4f1df8]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00447888
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46452d
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x46459a
cmp dword [ebp - 8], 0
jge 0x464552
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00463e20
mov eax, dword [ebp - 0x218]
call fcn.004048f0
cmp eax, dword [ebp - 8]
jg 0x46458c
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00463e20
mov eax, dword [ebp - 0x21c]
call fcn.004048f0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00464334
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4645bf
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.0040465c
ret
Function at 0x4734a8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x473580
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4f4cc4], 0
jne 0x473564
lea eax, [ebp - 4]
mov edx, 0x473598
call fcn.004046d0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ae8
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x473564
mov eax, ebx
call fcn.00402808
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47355d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x473547
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4735a8
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x473547
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4f4cc4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473564
mov eax, dword [ebp - 0xc]
call fcn.00402828
ret
mov ebx, dword [0x4f4cc4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473587
lea eax, [ebp - 4]
call fcn.00404638
ret

Function at 0x479328
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4f4ce8], 0
jne 0x47934b
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x47929c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4f4ce8], eax
ret

Function at 0x4a8f38
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x4a8f5d
cmp dword [esp + 4], 5
jb 0x4a8f5d
mov al, 1
jmp 0x4a8f5f
xor eax, eax
add esp, 0x94
ret
Function at 0x4bc66f
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 0x4f3122
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4bc6c7
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 0x4f3143
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4bc6bd
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4bc6cb
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4dcd10
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x40]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x4dcd4b
inc edi
xor ebx, ebx
mov edx, ebx
mov eax, dword [esi + 0x40]
call fcn.00418b98
mov al, byte [eax + 0x2a0]
xor al, 1
push eax
mov edx, ebx
mov eax, dword [esi + 0x40]
call fcn.00418b98
pop edx
mov byte [eax + 0x2a0], dl
inc ebx
dec edi
jne 0x4dcd23
pop edi
pop esi
pop ebx
ret

Function at 0x4e68a0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
lea eax, [esp + 0x100]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
push esp
push 0
push 0x4e68e4
lea eax, [esp + 0x10c]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
mov eax, esp
call fcn.004096e0
add esp, 0x200
pop ebx
ret
Function at 0x40117c
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x40118e
mov eax, dword [0x42108b]
shl eax, 2
mov dword [0x42108f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00414f74
pop edx
call fcn.00414ed8
call fcn.00414fb4
push 0
call fcn.004163c0
pop ecx
push 0x421034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x421093], eax
push 0
jmp fcn.0041b7d4

Function at 0x401410
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.00420000
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.00420000
push 0
cmp dword [ebp + 0xc], 0
je 0x401436
mov ecx, dword [ebp + 0xc]
jmp 0x40143b
mov ecx, 0x4210c5
push ecx
cmp dword [ebp + 8], 0
je 0x401447
mov eax, dword [ebp + 8]
jmp 0x40144c
mov eax, 0x4210c4
push eax
call sub.KERNEL32.DLL_CopyFileA
test eax, eax
setne al
and eax, 1
push eax
lea eax, [ebp + 8]
mov edx, 2
call fcn.00420080
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00420080
pop eax
pop ebp
ret

Function at 0x401478
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
call sub.KERNEL32.DLL_GetCurrentProcessId
mov ebx, eax
push ebx
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x128
push eax
push esi
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x4014c8
cmp ebx, dword [ebp - 0x124]
je 0x4014c8
lea edx, [ebp - 0x12c]
push edx
push esi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x4014af
push esi
call sub.KERNEL32.DLL_CloseHandle
cmp ebx, dword [ebp - 0x124]
jne 0x4014ff
lea edx, [ebp - 0x108]
lea eax, [ebp - 4]
call fcn.0041ffc8
mov edx, eax
mov eax, dword [ebp + 8]
call fcn.004200b0
lea eax, [ebp - 4]
mov edx, 2
call fcn.00420080
mov al, 1
jmp 0x401501
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401508
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.00420000
push 2
push 0
cmp dword [ebp + 8], 0
je 0x40152a
mov ecx, dword [ebp + 8]
jmp 0x40152f
mov ecx, 0x4210c6
push ecx
call sub.KERNEL32.DLL_LoadLibraryExA
mov ebx, eax
test ebx, ebx
je 0x40157e
push 0xa
push 0x20f
push ebx
call sub.KERNEL32.DLL_FindResourceA
test eax, eax
je 0x401578
push eax
push ebx
call sub.KERNEL32.DLL_SizeofResource
mov esi, eax
push 0xa
push 0x210
push ebx
call sub.KERNEL32.DLL_FindResourceA
test eax, eax
je 0x401578
push eax
push ebx
call sub.KERNEL32.DLL_LoadResource
push eax
call sub.KERNEL32.DLL_LockResource
mov eax, dword [eax]
mov dword [ebp - 4], eax
push ebx
call sub.KERNEL32.DLL_FreeLibrary
test ebx, ebx
je 0x40158d
cmp dword [ebp - 8], 0
je 0x40158d
cmp esi, dword [ebp - 4]
je 0x401591
xor eax, eax
jmp 0x401596
mov eax, 1
push eax
lea eax, [ebp + 8]
mov edx, 2
call fcn.00420080
pop eax
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret