joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426b4c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x426bf5
test eax, edx
je 0x426bf8
push 0
push 0
cmp word [eax - 0xa], 2
je 0x426b75
push edx
mov edx, eax
mov eax, esp
call fcn.004381cc
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x426b8b
push eax
lea eax, [esp + 8]
call fcn.004381cc
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x426b9a
movzx eax, word [eax]
sub eax, ecx
jmp 0x426bc1
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]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x426bdb
add ecx, 4
js 0x426bb2
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x426bd8
push eax
mov eax, ecx
mov edx, 2
call fcn.004377c4
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x426bbf
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x426bc1
xor eax, eax
ret
test eax, eax
je 0x426c08
test edx, edx
jne 0x426b5c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00438054
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x427bb5
test al, 0x10
jne 0x427bb9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x42af58
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x42af91
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00438104
jmp 0x42af9a
mov eax, ebx
mov edx, esi
call fcn.00437fc8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42afa4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x42afc6
movzx eax, word [esp]
jmp 0x42afc8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42b72c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.0042b564
mov eax, dword [0x4edfa0]
cmp byte [eax], 0
je 0x42b7be
mov eax, dword [0x4edfa4]
call fcn.00435ee0
call fcn.00435ce4
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.USER32.DLL_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.00427e40
push eax
lea eax, [esp + 0x890]
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 0x42b80c
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x42b7f7
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4ede28]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ee274]
call fcn.0043921c
push eax
call sub.USER32.DLL_LoadStringW
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.USER32.DLL_MessageBoxW
add esp, 0x1084
ret

Function at 0x42c3d4
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 0x42c4aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0043801c
lea eax, [ebp - 4]
call fcn.004388c8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00438054
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42c494
mov eax, ebx
call fcn.00435af4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42c48d
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.00438054
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
test eax, eax
je 0x42c477
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42c4bc
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueW
test eax, eax
je 0x42c477
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 0x42c494
mov eax, dword [ebp - 0x10]
call fcn.00435b10
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c4b1
lea eax, [ebp - 4]
call fcn.00437fb8
ret
Function at 0x42d447
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00437a94
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
mov edi, eax
cmp edi, 0x104
jbe 0x42d46a
mov eax, edi
add eax, eax
call fcn.00435af4
mov esi, eax
jmp 0x42d46c
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
push edi
push esi
call sub.USER32.DLL_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42d4a5
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x42d48f
mov eax, esp
cmp esi, eax
je 0x42d4b2
mov eax, esi
call fcn.00435b10
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x42d4ec
cmp bl, 0
je 0x42d4e8
cmp bl, 0x41
jl 0x42d4e3
cmp bl, 0x5a
jg 0x42d4e3
or bl, 0x20
xor al, bl
inc esi
jmp 0x42d4c7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42d42c

Function at 0x43646c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4e60a0]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x436504
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x4364e4
xor eax, eax
push ebp
push 0x4364dd
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 0x43653c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4364e4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
movzx eax, word [0x4e60a0]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4e60a0], ax
mov esp, ebp
pop ebp
ret

Function at 0x437544
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x7cd0e8], 0
je 0x4375a5
cmp word [0x7cd3c4], 0xd7b2
jne 0x43756d
cmp dword [0x7cd3cc], 0
jbe 0x43756d
mov eax, 0x7cd3c0
call dword [0x7cd3dc]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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 0x4375d0
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4e60ac], 0
jne 0x4375c1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x437724
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4e608c], 0
je 0x43774a
mov edx, esi
mov eax, ebx
call dword [0x4e608c]
jmp 0x437759
mov eax, 8
call fcn.00435af4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x7cd0e9], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4376ec
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x439ecc
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.KERNEL32.DLL_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x439f84
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x7cd980], 1
jae 0x43a031
call fcn.004358d0
mov byte [0x4e609c], 2
mov dword [0x7cd0a4], 0x4db868
mov dword [0x7cd0a8], 0x4db880
mov byte [0x7cd0ea], 2
call fcn.00439ecc
mov dword [0x7cd0ec], eax
mov dword [0x7cd090], 0x438e40
call fcn.0043643c
test al, al
je 0x439fda
call fcn.0043646c
call fcn.00436558
mov word [0x7cd0f4], 0xd7b0
mov word [0x7cd3c4], 0xd7b0
mov word [0x7cd694], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x7cd0dc], eax
call fcn.00433ec8
mov dword [0x7cd0d8], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x7cd968], eax
mov dword [0x7cd96c], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x7cd0d0], eax
call fcn.00439ee0
ret
Function at 0x451348
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
xor eax, eax
push ebp
push 0x45152a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [esi]
call fcn.0049bb18
mov eax, dword [esi]
cmp byte [eax + 0x268], 0
je 0x45150f
call sub.KERNEL32.DLL_GetTickCount
mov edx, dword [esi]
sub eax, dword [edx + 0x278]
mov edx, dword [esi]
cmp eax, dword [edx + 0x2d0]
jb 0x4513b0
mov eax, dword [esi]
add eax, 0x274
xor edx, edx
call fcn.00437fc8
call sub.KERNEL32.DLL_GetTickCount
mov edx, dword [esi]
mov dword [edx + 0x278], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp ax, 8
je 0x451496
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp ax, 0xd800
jb 0x4513df
cmp ax, 0xdfff
jbe 0x4513e3
xor eax, eax
jmp 0x4513e5
mov al, 1
test al, al
je 0x451453
push 1
push 0x102
push 0x102
mov eax, dword [esi]
call fcn.0049cc94
push eax
lea eax, [ebp - 0x24]
push eax
call sub.USER32.DLL_PeekMessageW
test eax, eax
je 0x4514da
mov eax, dword [esi]
push dword [eax + 0x274]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
movzx edx, word [edx]
call fcn.00438134
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
call fcn.00438134
push dword [ebp - 0x2c]
mov eax, dword [esi]
add eax, 0x274
mov edx, 3
call fcn.00438454
mov eax, dword [ebp - 8]
mov word [eax], 0
jmp 0x4514da
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
movzx edx, word [edx]
call fcn.00438134
mov edx, dword [ebp - 0x30]
mov eax, dword [esi]
add eax, 0x274
call fcn.00438304
jmp 0x4514da
mov eax, dword [esi]
mov ebx, dword [eax + 0x274]
test ebx, ebx
je 0x451483
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esi]
add eax, 0x274
mov ecx, 1
mov edx, ebx
call fcn.004386d4
mov eax, dword [esi]
mov eax, dword [eax + 0x274]
call fcn.00438260
mov edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x274]
call fcn.0042c4c8
cmp al, 2
je 0x451472
mov eax, dword [esi]
mov eax, dword [eax + 0x274]
test eax, eax
je 0x4514c7
sub eax, 4
mov eax, dword [eax]
mov edx, dword [esi]
add edx, 0x274
mov ecx, 1
xchg edx, eax
call fcn.004386d4
mov eax, dword [esi]
mov eax, dword [eax + 0x274]
test eax, eax
je 0x4514eb
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x4514f8
push ebp
call fcn.00451260
pop ecx
jmp 0x45150f
xor edx, edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, dword [esi]
mov si, 0xffeb
call fcn.004368ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451531
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00437fc0
ret
Function at 0x4527bc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00437fc8
push 0
mov eax, esi
movzx eax, al
push eax
call sub.USER32.DLL_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x452803
push 0x100
lea edx, [esp + 4]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, 0x100
call fcn.004381b0
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x457168
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x45768a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x25], 0
inc ebp
fild dword [eax]

Function at 0x457c1c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x457d55
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.USER32.DLL_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x423be8]
call fcn.00423d24
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x457d2b
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, SysReAllocStringLen
mov eax, dword [ebp - 0xc]
call fcn.00423dc4
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.004381b0
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x457d70
call fcn.00438384
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00423e28
test al, al
je 0x457d15
lea ecx, [ebp - 4]
mov edx, 0x457de4
mov eax, dword [ebp - 0xc]
call fcn.00424074
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0042dc8c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x457d0e
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x457dfc
mov eax, dword [ebp - 8]
push eax
call fcn.00411f60
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4e70bc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457d15
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeLibrary
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457d32
mov eax, dword [ebp - 0xc]
call fcn.0043669c
ret
Function at 0x457e60
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 0x457ea7
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x457e8a
add bx, 0x2000
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x457e9b
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x457ea7
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x469560
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 0x469566
ret
Function at 0x475a84
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_GetWindowLongW
mov edi, eax
test bl, bl
je 0x475aa5
test edi, 0x40000
je 0x475abf
test bl, bl
jne 0x475b40
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x475b40
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 0x475af2
push 0
push esi
call sub.USER32.DLL_ShowWindow
test bl, bl
je 0x475b07
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongW
jmp 0x475b16
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x475b27
cmp byte [esp + 2], 0
je 0x475b40
cmp byte [esp + 2], 0
je 0x475b38
push 6
push esi
call sub.USER32.DLL_ShowWindow
jmp 0x475b40
push 5
push esi
call sub.USER32.DLL_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x475de8
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 0x475e0e
mov eax, esp
push eax
push 0x475db0
call sub.USER32.DLL_EnumWindows
jmp 0x475e21
mov eax, esp
push eax
push 0x475d90
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 0x475ee4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x475f38]
test si, 4
je 0x475ef9
or bl, 1
test si, 8
je 0x475f03
or bl, 4
test si, 1
je 0x475f0d
or bl, 8
test si, 2
je 0x475f17
or bl, 0x10
test si, 0x10
je 0x475f21
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x475f30
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x475f3c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x475f78]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x475f56
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x475f65
or bl, 4
test esi, 0x20000000
je 0x475f70
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x47e3bc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x47e3ce
add esp, 0xfffffff0
call fcn.00436aec
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421b04
mov eax, dword [0x4edfd0]
mov dword [eax + 4], ebx
mov dword [eax], 0x47e7d0
mov eax, dword [0x4edfd4]
mov dword [eax + 4], ebx
mov dword [eax], 0x47e7dc
mov eax, ebx
call fcn.0047e7e8
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x417898]
call fcn.0043666c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x417898]
call fcn.0043666c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x417898]
call fcn.0043666c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x417898]
call fcn.0043666c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x417898]
call fcn.0043666c
mov dword [ebx + 0x74], 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, 0x47980c
push eax
push 0
push 0
mov eax, dword [0x4ee038]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x468794]
call fcn.0046a620
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x468794]
call fcn.0046a620
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x468794]
call fcn.0046a620
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x468794]
call fcn.0046a620
mov dword [ebx + 0x84], eax
mov eax, ebx
call fcn.0047ece0
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47ebb8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47ebb8
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47ebb8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47ebb8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x47e521
call fcn.00436b44
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x47e958
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47eb05
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x47eae6
mov dl, 1
mov eax, dword [0x417f7c]
call fcn.0041cf50
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
xor edx, edx
call fcn.00437fc8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x47ead5
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.004a27f4
test al, al
je 0x47eac8
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x47eb14
lea eax, [ebp - 0x394]
call fcn.00428270
push eax
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x47eac8
xor eax, eax
push ebp
push 0x47eac1
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 - 0x314]
push eax
push 0
push 0
push 0x47eb84
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x47eaaa
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.004381b0
mov edx, dword [ebp - 0x3a0]
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 0x47eaaa
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.004381b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47eac8
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x47e9cb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.0041cd3c
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 0x47eb0c
lea eax, [ebp - 0x3a0]
call fcn.00437fb8
ret

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

Disassembly:
push ecx
mov eax, dword [0x7cfcc0]
cmp byte [eax + 0xa9], 0
jne 0x47f566
cmp dword [0x7cfcd8], 0
jne 0x47f526
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x4e74a4]
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExW
mov dword [0x7cfcd8], eax
cmp dword [0x7cfcd4], 0
jne 0x47f541
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventW
mov dword [0x7cfcd4], eax
cmp dword [0x7cfcdc], 0
jne 0x47f566
push esp
push 0
push 0
mov eax, dword [0x4e75a8]
push eax
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x7cfcdc], eax
pop edx
ret