joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d30
Capabilities:
Get geographical location

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 0x405e54
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ca7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e54
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ca7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405d30
xor eax, eax
push ebp
push 0x405d29
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405a6c
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 0x405d0e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405e90
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405d0e
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 0x405d30
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 0x405e4a
cmp byte [ebp - 0xd], 0
jne 0x405d77
cmp byte [ebp - 0x12], 0
je 0x405e4a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405d90
dec ebx
cmp byte [ebx], 0x2e
je 0x405d9f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405d8f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405e4a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405ddc
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 0x405e4a
cmp byte [ebp - 0xd], 0
je 0x405e4a
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 0x405e4a
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 0x40651c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406582
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404a2c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403240
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40656c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406589
lea eax, [ebp - 0x10]
call fcn.004047bc
ret

Function at 0x40c9bc
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 0x40c9f5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004048ac
jmp 0x40c9fe
mov eax, ebx
mov edx, esi
call fcn.00404810
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ca08
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 0x40ca29
mov al, byte [esp]
jmp 0x40ca2b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d0b0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cf28
mov eax, dword [0x4883c0]
cmp byte [eax], 0
je 0x40d12c
mov eax, dword [0x4881b0]
call fcn.00402e98
call fcn.0040289c
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.00409fe4
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 0x40d174
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d162
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x488154]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x489660]
call fcn.00405a30
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 0x40d9c8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40da9e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404854
lea eax, [ebp - 8]
call fcn.00404ccc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404c7c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40da88
mov eax, ebx
call fcn.00402734
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40da81
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 - 8]
call fcn.00404c7c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40da6b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40dab0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40da6b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40da88
mov eax, dword [ebp - 0x10]
call fcn.00402754
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40daa5
lea eax, [ebp - 8]
call fcn.004047bc
ret

Function at 0x40e028
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40e08c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404a2c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409af8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e093
lea eax, [ebp - 0xc]
call fcn.004047bc
ret

Function at 0x41c19c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041bff4
dec esi
jne 0x41c1be
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41d314
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x489888
cmp dword [edi], 0
jne 0x41d390
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x489884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4874dc
mov ecx, 2
call fcn.00402930
mov edx, 0x41d2ec
lea eax, [esi + 5]
call fcn.0041d30c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041d30c
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 0x41d365
mov dword [0x489884], 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 0x41e94c
Capabilities:
Encode data using xor

Disassembly:
add byte [eax + 0x5d], cl
inc edx
add byte [edx + 0x41], ch
add byte [esp + ebx + 0x42], dl
add byte [eax + 0x5d], bh
inc edx
add byte [ebx + 0x1be40041], bh
inc edx
add al, bl
pop ebp
inc edx
add byte [eax + 0x1800421c], ah
pop esi
inc edx
add byte [esi + ebx*2 + 0x42], al
add al, ch
sbb eax, 0x1dec0042
inc edx
add byte [eax + 0x5e], bl
inc edx
add byte [esi + ebx + 0x42], ch
add ah, bl
pushal
inc edx
add al, dl
push ds
inc edx
add ah, dh
pushal
inc edx
add al, bh
pushal
inc edx
add ah, ah
push ds
inc edx
add ah, dh
pop esp
inc edx
add al, dh
sbb eax, 0x1e780042
inc edx
add byte [eax + 0x1000425f], bl
popal
inc edx
add byte [eax], bh
popal
inc edx
add byte [ecx + 0x42], cl
add byte [0x6f634954], al
outsb dx, byte [esi]
mov eax, eax
mov esp, 0x70041e8
add eax, 0x6f634954
outsb dx, byte [esi]
dec esp
call 0xe3c1e90a
inc ecx
add byte [eax], al
add byte [eax], cl
inc edi
jb 0x41e932
jo 0x41e93b
imul esp, dword [ebx + 0x73], 0xc0850000
add byte [ebp + 0x3b0e74c0], al
add eax, 0x489890
je 0x41e8ea
cmp eax, dword [0x489890]
je 0x41e8ea
push eax
call sub.gdi32.dll_DeleteObject
ret
inc eax
add byte [ecx + ebp*8 + 0x54100041], bl
push edx
jae 0x41e9ad
jne 0x41e9b2
arpl word [ebp + 0x4d], sp
popal
outsb dx, byte [esi]
popal
jb 0x41e8d7
inc eax
add byte [ecx + 0x31c289d1], cl
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41e952
ret
cmp dh, 0xff
test bl, bl
jle 0x41e9bb
mov eax, esi
call fcn.00403cd4
pop esi
pop ebx
ret
Function at 0x420f14
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x420f65
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x420f4c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x420f3c
jmp 0x420f65
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x420f4d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42abb8
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404c6c
xor eax, eax
push ebp
push 0x42ace6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42acb9
xor eax, eax
push ebp
push 0x42acb2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404a7c
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42ac87
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x42ac76
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404a7c
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404c7c
mov edx, ebx
pop ecx
call fcn.00402930
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ac7d
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4880f4]
mov dl, 1
mov eax, dword [0x4089cc]
call fcn.0040d234
call fcn.004040ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42aced
lea eax, [ebp - 4]
call fcn.004047bc
ret
Function at 0x42acf4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42aea5
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00404e6c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x42aebc
call fcn.00404ac8
mov eax, ebx
call fcn.0041c894
mov edi, eax
dec edi
test edi, edi
jl 0x42adac
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0041c868
mov edx, dword [0x43ca5c]
call fcn.00403aec
test al, al
je 0x42ada8
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.0041c868
lea edx, [ebp - 0x14]
call fcn.00460e74
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00404e6c
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404b3c
inc esi
dec edi
jne 0x42ad5a
mov al, byte [0x42aec0]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x42aecc
mov eax, dword [ebp - 0xc]
call fcn.0040e600
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00404854
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.00460e74
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x42aebc
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f8]
call fcn.00460e74
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x42aebc
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x42aebc
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x42aed8
call fcn.0040a6c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42aeac
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.004047e0
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004047e0
lea eax, [ebp - 0x14]
call fcn.004047bc
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004047e0
ret

Function at 0x445ad4
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x445a20
call sub.user32.dll_EnumWindows
ret
Function at 0x445bf4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x445c71
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00445654
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x445c19
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00445254
cmp dword [ebp - 4], 0
je 0x445c5b
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404c7c
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445c78
lea eax, [ebp - 4]
call fcn.004047bc
ret

Function at 0x449174
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4491c4]
test si, 4
je 0x449188
or bl, 1
test si, 8
je 0x449192
or bl, 4
test si, 1
je 0x44919c
or bl, 8
test si, 2
je 0x4491a6
or bl, 0x10
test si, 0x10
je 0x4491b0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4491bf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4491c8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x449200]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4491e1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4491f0
or bl, 4
test esi, 0x20000000
je 0x4491fb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44f8a8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44f8ba
add esp, 0xfffffff0
call fcn.00403c84
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041c270
mov eax, dword [0x48815c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44fc4c
mov eax, dword [0x488168]
mov dword [eax + 4], ebx
mov dword [eax], 0x44fc58
mov eax, ebx
call fcn.0044fc64
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x413624]
call fcn.00403930
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x413624]
call fcn.00403930
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x413624]
call fcn.00403930
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x413624]
call fcn.00403930
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x413624]
call fcn.00403930
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, 0x44c080
push eax
push 0
push 0
mov eax, dword [0x4882d4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41dd20]
call fcn.0041f494
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41dd20]
call fcn.0041f494
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41dd20]
call fcn.0041f494
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00450084
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44ff60
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44ff60
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44ff60
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f9f7
call fcn.00403cdc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44fd44
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 0x44feef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44fed0
mov dl, 1
mov eax, dword [0x413bcc]
call fcn.00403930
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004047bc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44febf
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.0046c4d0
test al, al
je 0x44feb2
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, 0x44ff00
lea eax, [ebp - 0x254]
call fcn.0040a640
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44feb2
xor eax, eax
push ebp
push 0x44feab
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 0x44ff38
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44fe94
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a2c
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 0x44fe94
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44feb2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44fdb5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00417ec4
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 0x44fef6
lea eax, [ebp - 0x260]
call fcn.004047bc
ret

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

Disassembly:
push ecx
mov eax, dword [0x489b4c]
cmp byte [eax + 0xa5], 0
jne 0x450895
cmp dword [0x489b64], 0
jne 0x450856
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4507e0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x489b64], eax
cmp dword [0x489b60], 0
jne 0x450871
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x489b60], eax
cmp dword [0x489b68], 0
jne 0x450895
push esp
push 0
push 0
push 0x450784
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x489b68], eax
pop edx
ret