joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a004]
jne 0x40100a
repz ret
jmp fcn.004011bf

Function at 0x403143
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402024
and dword [ebp - 4], 0
cmp dword [0x40b668], 0
mov ebx, eax
jne 0x4031f4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4032a5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4032a5
push eax
call fcn.00401fb2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b668], eax
call esi
push eax
call fcn.00401fb2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b66c], eax
call esi
push eax
call fcn.00401fb2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b670], eax
call esi
push eax
call fcn.00401fb2
pop ecx
mov dword [0x40b678], eax
test eax, eax
je 0x4031f4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00401fb2
pop ecx
mov dword [0x40b674], eax
mov eax, dword [0x40b674]
cmp eax, ebx
je 0x40324c
cmp dword [0x40b678], ebx
je 0x40324c
push eax
call fcn.0040202d
push dword [0x40b678]
mov esi, eax
call fcn.0040202d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40324c
test edi, edi
je 0x40324c
call esi
test eax, eax
je 0x403243
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x403243
test byte [ebp - 0xc], 1
jne 0x40324c
or dword [ebp + 0x10], 0x200000
jmp 0x403285
mov eax, dword [0x40b66c]
cmp eax, ebx
je 0x403285
push eax
call fcn.0040202d
pop ecx
test eax, eax
je 0x403285
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x403285
mov eax, dword [0x40b670]
cmp eax, ebx
je 0x403285
push eax
call fcn.0040202d
pop ecx
test eax, eax
je 0x403285
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b668]
call fcn.0040202d
pop ecx
test eax, eax
je 0x4032a5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4032a7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4037c0
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x4037d6
sub ecx, 2
jne 0x4037f8
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x4037ff
cmp edx, dword [ebx + 8]
je 0x403809
mov eax, 0x64
jmp 0x403804
mov eax, 0x67
jmp 0x403804
call sub.kernel32.dll_GetLastError
call fcn.0040300c
pop ebx
ret

Function at 0x403d58
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45b020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403df0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403dd0
xor eax, eax
push ebp
push 0x403dc9
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 0x403e0c
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 0x403dd0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x45b020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45b020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404c74
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45d044], 0
je 0x404cd5
cmp word [0x45d218], 0xd7b2
jne 0x404c9d
cmp dword [0x45d220], 0
jbe 0x404c9d
mov eax, 0x45d214
call dword [0x45d230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404cfc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45b02c], 0
jne 0x404cf1
push 0
push 0x45b774
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406188
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4063b8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40620b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4063b8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40620b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4063d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406294
xor eax, eax
push ebp
push 0x40628d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405fc4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406272
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4063f4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406272
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406294
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4063ae
cmp byte [ebp - 0xd], 0
jne 0x4062db
cmp byte [ebp - 0x12], 0
je 0x4063ae
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4062f4
dec ebx
cmp byte [ebx], 0x2e
je 0x406303
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4062f3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4063ae
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406340
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4063ae
cmp byte [ebp - 0xd], 0
je 0x4063ae
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4063ae
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408858
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4088aa
test eax, edx
je 0x4088ad
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40886d
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x408893
add ecx, 4
js 0x408883
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408890
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4088b9
test edx, edx
jne 0x408860
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4091d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405284
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4091e9
test al, 0x10
je 0x4091ed
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40bbe4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bc1d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404ee4
jmp 0x40bc26
mov eax, ebx
mov edx, esi
call fcn.00404e48
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bc30
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bc52
movzx eax, byte [esp]
jmp 0x40bc54
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c2e4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c15c
mov eax, dword [0x45cad0]
cmp byte [eax], 0
je 0x40c360
mov eax, dword [0x45c8a0]
call fcn.004034f8
call fcn.00402fec
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409364
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c3a8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c396
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45c844]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45f7f0]
call fcn.00405f6c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40cc0c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cce2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404e8c
lea eax, [ebp - 4]
call fcn.004052dc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405284
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cccc
mov eax, ebx
call fcn.00402e90
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ccc5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405284
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ccaf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ccf4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ccaf
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cccc
mov eax, dword [ebp - 0x10]
call fcn.00402eac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cce9
lea eax, [ebp - 4]
call fcn.00404df4
ret

Function at 0x41ba54
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4619e8
cmp dword [edi], 0
jne 0x41bad0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4619e4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45bb04
mov ecx, 2
call fcn.0040308c
mov edx, 0x41ba2c
lea eax, [esi + 5]
call fcn.0041ba4c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041ba4c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41baa5
mov dword [0x4619e4], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41da90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405284
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41dae8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45cc14]
mov dl, 1
mov eax, dword [0x41d59c]
call fcn.0040c4a4
call fcn.004047b4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d6a4
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41e944
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41e94a
ret
Function at 0x42b22c
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.00404df4
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42b27a
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.00405064
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42f2fc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42f42f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x41d5fc]
call fcn.0041d6cc
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x42f405
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041d76c
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00405064
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x42f444
call fcn.0040510c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041d7d0
lea ecx, [ebp - 4]
mov edx, 0x42f480
mov eax, dword [ebp - 0xc]
call fcn.0041da18
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040de2c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x42f3e8
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x42f48c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x45c494]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f3ef
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x42f4dc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x42f523
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42f506
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42f517
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x42f523
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x432f18
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp + 1], cl
mov byte [esp], dl
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
mov eax, dword [0x47e21c]
cmp esi, dword [eax + 0x30]
jne 0x432f3f
or edi, 0x8000000
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x432f6e
mov eax, dword [0x47e21c]
cmp esi, dword [eax + 0x30]
jne 0x432f6a
mov eax, dword [0x47e21c]
cmp byte [eax + 0x5b], 0
jne 0x432f6e
xor eax, eax
jmp 0x432f70
mov al, 1
mov byte [esp + 2], al
movzx eax, byte [esp + 2]
or al, bl
je 0x432f85
push 0
push esi
call sub.user32.dll_ShowWindow
cmp byte [esp], 0
je 0x432f9c
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x432fab
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp + 1]
and al, byte [esp + 2]
jne 0x432fba
test bl, bl
je 0x432fd0
test bl, bl
je 0x432fc8
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x432fd0
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x433274
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 0x43329a
mov eax, esp
push eax
push 0x43323c
call sub.user32.dll_EnumWindows
jmp 0x4332ad
mov eax, esp
push eax
push 0x43321c
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 0x433338
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x43338c]
test si, 4
je 0x43334d
or bl, 1
test si, 8
je 0x433357
or bl, 4
test si, 1
je 0x433361
or bl, 8
test si, 2
je 0x43336b
or bl, 0x10
test si, 0x10
je 0x433375
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x433384
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x433390
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4333cc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4333aa
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4333b9
or bl, 4
test esi, 0x20000000
je 0x4333c4
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x43b298
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x43b2aa
add esp, 0xfffffff0
call fcn.00404264
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a994
mov eax, dword [0x45c84c]
mov dword [eax + 4], ebx
mov dword [eax], 0x43b63c
mov eax, dword [0x45c858]
mov dword [eax + 4], ebx
mov dword [eax], 0x43b648
mov eax, ebx
call fcn.0043b654
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41250c]
call fcn.00403f28
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41250c]
call fcn.00403f28
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41250c]
call fcn.00403f28
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41250c]
call fcn.00403f28
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41250c]
call fcn.00403f28
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, 0x436d04
push eax
push 0
push 0
mov eax, dword [0x45c9d0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41dfa4]
call fcn.0041f4c4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41dfa4]
call fcn.0041f4c4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41dfa4]
call fcn.0041f4c4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0043ba84
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43b954
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43b954
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43b954
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43b3e7
call fcn.004042bc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x43b738
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 0x43b8e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x43b8c4
mov dl, 1
mov eax, dword [0x412930]
call fcn.00403f28
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404df4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x43b8b3
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.00455184
test al, al
je 0x43b8a6
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, 0x43b8f4
lea eax, [ebp - 0x254]
call fcn.00409a00
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43b8a6
xor eax, eax
push ebp
push 0x43b89f
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 0x43b92c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x43b888
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405064
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 0x43b888
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405064
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43b8a6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x43b7a9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00416840
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 0x43b8ea
lea eax, [ebp - 0x260]
call fcn.00404df4
ret

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

Disassembly:
push ecx
mov eax, dword [0x47e21c]
cmp byte [eax + 0xad], 0
jne 0x43c2cd
cmp dword [0x47e238], 0
jne 0x43c28e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x43c218
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x47e238], eax
cmp dword [0x47e234], 0
jne 0x43c2a9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x47e234], eax
cmp dword [0x47e23c], 0
jne 0x43c2cd
push esp
push 0
push 0
push 0x43c1bc
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x47e23c], eax
pop edx
ret