joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b450
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0x10325476
pop ebp
ret

Function at 0x41f8dc
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov eax, 0x4a408c
call fcn.0048a884
push 1
call fcn.00407c90
pop ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x41f90e
mov eax, 0xfffffffe
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x41f959
push dword [ebp + 0xc]
mov word [ebp - 0x18], 0x18
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
call fcn.00499714
inc dword [ebp - 0xc]
push dword [eax]
mov ecx, dword [ebp - 0x2c]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x30]
add esp, 0xc
mov dword [ebp - 0x30], eax
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00499788
mov word [ebp - 0x18], 0xc
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x42c7b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4ae9b0
cmp dword [edi], 0
jne 0x42c82c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4ae9ac]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4a41c8
mov ecx, 2
call fcn.0043a820
mov edx, 0x42c788
lea eax, [esi + 5]
call fcn.0042c7a8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042c7a8
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 0x42c801
mov dword [0x4ae9ac], 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 0x42d848
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.0043c254
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x42d8a0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4acc8c]
mov dl, 1
mov eax, dword [0x42d354]
call fcn.00433100
call fcn.0043ba14
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042d45c
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 0x42ec34
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x42ec86
test eax, edx
je 0x42ec89
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x42ec49
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 0x42ec6f
add ecx, 4
js 0x42ec5f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x42ec6c
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 0x42ec95
test edx, edx
jne 0x42ec3c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0043c254
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42f586
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x42f5a7
cmp ebx, 3
je 0x42f5a7
cmp ebx, 0x7b
je 0x42f5a7
mov eax, esi
call fcn.0042f528
test al, al
jne 0x42f5ab
xor eax, eax
jmp 0x42f5ad
mov al, 1
pop esi
pop ebx
ret

Function at 0x4326f4
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x43272d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0043beb4
jmp 0x432736
mov eax, ebx
mov edx, esi
call fcn.0043be18
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x432740
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
test eax, eax
jle 0x432762
movzx eax, byte [esp]
jmp 0x432764
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x432f40
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x432db8
mov eax, dword [0x4acaac]
cmp byte [eax], 0
je 0x432fbc
mov eax, dword [0x4acab0]
call fcn.0043a9a8
call fcn.0043a78c
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.0042f7b4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x433004
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x432ff2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4ac95c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4acc98]
call fcn.0043cf64
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret
Function at 0x43387c
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 0x433952
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0043be5c
lea eax, [ebp - 4]
call fcn.0043c2ac
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0043c254
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x43393c
mov eax, ebx
call fcn.0043a5c0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x433935
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.0043c254
push eax
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x43391f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x433964
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x43391f
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 0x43393c
mov eax, dword [ebp - 0x10]
call fcn.0043a5dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433959
lea eax, [ebp - 4]
call fcn.0043bdc4
ret

Function at 0x43afd8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4a4520]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x43b070
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x43b050
xor eax, eax
push ebp
push 0x43b049
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 0x43b08c
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 0x43b050
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
movzx eax, word [0x4a4520]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4a4520], ax
mov esp, ebp
pop ebp
ret

Function at 0x43bc44
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b0bdc], 0
je 0x43bca5
cmp word [0x4b0db0], 0xd7b2
jne 0x43bc6d
cmp dword [0x4b0db8], 0
jbe 0x43bc6d
mov eax, 0x4b0dac
call dword [fcn.004b0dc8]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a4c58
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 0x43bccc
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4a452c], 0
jne 0x43bcc1
push 0
push 0x4a4c50
push 0x4a4c58
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x43d180
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 0x43d3b0
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x43d203
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x43d3b0
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x43d203
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x43d3cc
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x43d28c
xor eax, eax
push ebp
push 0x43d285
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0043cfbc
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 0x43d26a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x43d3ec
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x43d26a
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 0x43d28c
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 0x43d3a6
cmp byte [ebp - 0xd], 0
jne 0x43d2d3
cmp byte [ebp - 0x12], 0
je 0x43d3a6
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x43d2ec
dec ebx
cmp byte [ebx], 0x2e
je 0x43d2fb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x43d2eb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x43d3a6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x43d338
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 0x43d3a6
cmp byte [ebp - 0xd], 0
je 0x43d3a6
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 0x43d3a6
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 0x43daf8
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x4b1154], 1
jae 0x43db8c
call fcn.0043a39c
mov byte [0x4a451c], 2
mov dword [fcn.004b0ba0], sub.KERNEL32.DLL_RaiseException
mov dword [0x4b0ba4], 0x499d10
mov byte [0x4b0bde], 2
mov dword [0x4b0b8c], 0x43cc94
call fcn.0043afa8
test al, al
je 0x43db44
call fcn.0043afd8
call fcn.0043b09c
mov word [0x4b0be4], 0xd7b0
mov word [0x4b0db0], 0xd7b0
mov word [0x4b0f7c], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4b0bd0], eax
call fcn.00438a9c
mov dword [0x4b0bcc], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x4b1158], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4b0bc4], eax
ret

Function at 0x443390
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.0043bdc4
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4433de
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.0043c034
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4484c0
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 0x4485f3
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 [0x42d3b4]
call fcn.0042d484
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4485c9
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, SysStringLen
mov eax, dword [ebp - 0xc]
call fcn.0042d524
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.0043c034
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x448608
call fcn.0043c0dc
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0042d588
lea ecx, [ebp - 4]
mov edx, 0x448644
mov eax, dword [ebp - 0xc]
call fcn.0042d7d0
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00434df8
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4485ac
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x448650
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4a527c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4485b3
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeLibrary
ret
Function at 0x4486a0
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 0x4486e7
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4486ca
add bx, 0x2000
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4486db
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4486e7
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x44ad10
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 0x44ad16
ret
Function at 0x4542a8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_GetWindowLongA
mov edi, eax
test bl, bl
je 0x4542c9
test edi, 0x40000
je 0x4542e3
test bl, bl
jne 0x454364
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x454364
push esi
call sub.USER32.DLL_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.USER32.DLL_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x454316
push 0
push esi
call sub.USER32.DLL_ShowWindow
test bl, bl
je 0x45432b
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongA
jmp 0x45433a
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongA
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x45434b
cmp byte [esp + 2], 0
je 0x454364
cmp byte [esp + 2], 0
je 0x45435c
push 6
push esi
call sub.USER32.DLL_ShowWindow
jmp 0x454364
push 5
push esi
call sub.USER32.DLL_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x454608
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 0x45462e
mov eax, esp
push eax
push 0x4545d0
call sub.USER32.DLL_EnumWindows
jmp 0x454641
mov eax, esp
push eax
push 0x4545b0
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
call sub.USER32.DLL_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x4546cc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x454720]
test si, 4
je 0x4546e1
or bl, 1
test si, 8
je 0x4546eb
or bl, 4
test si, 1
je 0x4546f5
or bl, 8
test si, 2
je 0x4546ff
or bl, 0x10
test si, 0x10
je 0x454709
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x454718
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x454724
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x454760]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x45473e
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x45474d
or bl, 4
test esi, 0x20000000
je 0x454758
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45c8d4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45c8e6
add esp, 0xfffffff0
call fcn.0043b4e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042b6f0
mov eax, dword [0x4acabc]
mov dword [eax + 4], ebx
mov dword [eax], 0x45cc78
mov eax, dword [0x4acac0]
mov dword [eax + 4], ebx
mov dword [eax], 0x45cc84
mov eax, ebx
call fcn.0045cc90
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4234a0]
call fcn.0043b1a8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4234a0]
call fcn.0043b1a8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4234a0]
call fcn.0043b1a8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4234a0]
call fcn.0043b1a8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4234a0]
call fcn.0043b1a8
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, 0x458138
push eax
push 0
push 0
mov eax, dword [0x4acb30]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x44a370]
call fcn.0044b890
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x44a370]
call fcn.0044b890
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x44a370]
call fcn.0044b890
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045d108
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45cfd8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45cfd8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45cfd8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45ca23
call fcn.0043b53c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45cdbc
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 0x45cf67
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45cf48
mov dl, 1
mov eax, dword [0x4238c4]
call fcn.0043b1a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0043bdc4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45cf37
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.00474e7c
test al, al
je 0x45cf2a
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, 0x45cf78
lea eax, [ebp - 0x254]
call fcn.0042fe50
push eax
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x45cf2a
xor eax, eax
push ebp
push 0x45cf23
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 0x45cfb0
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x45cf0c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.0043c034
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 0x45cf0c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.0043c034
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45cf2a
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45ce2d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0042759c
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 0x45cf6e
lea eax, [ebp - 0x260]
call fcn.0043bdc4
ret

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

Disassembly:
push ecx
mov eax, dword [0x4b343c]
cmp byte [eax + 0xad], 0
jne 0x45d951
cmp dword [0x4b3458], 0
jne 0x45d912
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x45d89c
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x4b3458], eax
cmp dword [0x4b3454], 0
jne 0x45d92d
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x4b3454], eax
cmp dword [0x4b345c], 0
jne 0x45d951
push esp
push 0
push 0
push 0x45d840
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x4b345c], eax
pop edx
ret