joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4604bc
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4604f4
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045e573
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045e54b
jmp 0x460500
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x461baa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x461bec
call fcn.0046792c
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x461bec
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x461be3
xor eax, eax
jmp 0x461bf4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00461bfa
pop edi
pop esi
pop ebx
ret 4

Function at 0x467e5c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x467e8a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x467ea8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00467dc2
jmp 0x467ea8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x467ea8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00467dc2
test edi, edi
mov eax, edi
jne 0x467e92
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5154e4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4ff222
xor ecx, ecx
cmp dword [esp + 8], ecx
jbe 0x4ff23e
mov edx, dword [esp + 4]
movzx edx, byte [ecx + edx]
rol eax, 7
xor eax, edx
inc ecx
cmp ecx, dword [esp + 8]
jb 0x4ff22a
jmp 0x4ff249
ret
push esp
push dword [esp]
lea esp, [esp + 8]
jmp 0x51554c
pushal
push word [esp + 0xb]
lea esp, [esp + 2]
lea esp, [esp + 0x20]
jmp 0x4ff217

Function at 0x5263f4
Capabilities:
Encode data using xor

Disassembly:
mov byte [esp + 3], bh
push dword [esp + 6]
cmp ecx, ebx
call fcn.005263cf
rcl dword [edx + ecx*8 - 0x53]
pop esp
jmp 0x526453
adc dword [eax], eax
or byte [ecx + 0x4b279aa7], dl
in al, 0xca
or eax, 0xd141d96d
inc ecx
sal dword [eax + reloc.RASAPI32.dll_RasHangUpA], 1
nop
test dword [edx], reloc.RASAPI32.dll_RasHangUpA
mov al, 0x43
sbb byte [ecx + 0x2f79002], 0xc6
pop ecx
invalid
push edi
xor al, cl
jno 0x526446
loope 0x5264de
js 0x526455
out dx, al
mov dword [eax - 0x33], edi
leave
push ebp
lds ebp, [edi + ebx*2 + 0x54c6599c]
xor ecx, esi
jle 0x526460
jnp 0x526464
invalid
pushfd
sti
push ss
aad 0x1a
mov dword [reloc.RASAPI32.dll_RasHangUpA], eax
pushal
in al, 0x7a
sbb eax, 0x11962eec
and eax, 0x9218a613
add byte [edi - 0x6e], ah
and byte [edx + 0x11e28717], bl
lodsd eax, dword [esi]
add byte [eax + 0x3d88791e], cl
scasb al, byte es:[edi]
and eax, 0xec2fdcb5
fcom dword [esi - 0x3c]
mov dword [reloc.RASAPI32.dll_RasHangUpA], eax
pop ebx
int 0x78
loopne 0x52654a
loop 0x526465
je 0x5264a2
idiv byte [ecx - 0x17]
mov byte [ebx - 0x35], bh
enter 0xffffffffffffc85a, 0xffffffffffffffaf
pop edx
jmp 0x4a82241c
js 0x52656b
ljmp 0x9fa:0x9f0f8b6d
add byte [ebx + 0xcfd9a04], 0xb9
aaa
mov cl, 0x21
inc eax
mov bl, 0x73
aaa
mov dl, 0x20
inc edi
mov dl, 5
cmp esi, dword [edi + reloc.RASAPI32.dll_RasHangUpA]
and ebp, dword [eax + reloc.RASAPI32.dll_RasHangUpA]
dec edi
lds edx, [ebp + 0x3c]
iretd

Function at 0x52b123
Capabilities:
Encrypt data using aes

Disassembly:
sete al
jmp 0x52b115
bswap edi
mov edi, dword [ecx + 4]
call 0x52b123
jge fcn.0052b0ee
jg 0x52b11b
jmp 0x9653464c
mov eax, dword [esp + 3]
setb al
mov eax, dword [edx + 4]
mov dword [edx], edi
jmp 0x52b0f3
ror byte [ebx + 0x3a890442], 0xeb
shl byte [esi - 0x77], 1
cmp al, 0x24
jmp 0x52b1a7
mov word [esp + 0x12], dx
pop word [esp + 5]
lea esp, [esp + 0x18]
cmp dword [ebp - 4], ebx
pushal
jmp 0x52b242
add ecx, 0x10
clc
sub edx, 0x10
sub esp, 0x1a
jmp 0x52b146
mov word [esp + 0x14], di
lea esp, [esp + 2]
lea esp, [esp + 0x4c]
sub ebx, 4
jmp 0x52b16a
mov dword [ecx + 4], eax
mov dword [edx + 4], edi
pushal
push word [esp + 0x13]
jmp 0x52b188
mov eax, dword [esi]
pop esi
jmp fcn.004fd33a
push esi
mov esi, ebp
lea esi, [esi - 8]
jmp 0x52b1b5
pop dword [esp + 8]
lea esp, [esp + 0x1c]
jl 0x4fd421
jge 0x52b1cc
xchg byte [edx + eax*4], cl
in eax, 0x14
cmpsb byte [esi], byte es:[edi]
adc byte [ecx + 0x2b9b6809], bl
js fcn.0052b263
invalid
je 0x52b28a
add ch, al
int 0xfe
invalid
invalid
Function at 0x52b4c6
Capabilities:
Encrypt data using aes

Disassembly:
and edx, ecx
mov edx, dword [edx*4 + reloc.RASAPI32.dll_RasHangUpA]
push esp
stc
jmp 0x52b529
sub esp, 0
add esp, 1
add esp, 0
lea esp, [esp + 3]
jmp 0x52b4a5
mov dword [esp + 0xf], eax
lea esp, [esp + 0x28]
xor edi, dword [edx*4 + reloc.RASAPI32.dll_RasHangUpA]
jmp 0x52b4ee
push dword [esp + 2]
and edx, ecx
sub esp, 0x1e
push dword [esp + 0x12]
pop word [esp + 0x17]
jmp 0x52b508

Function at 0x52b5e2
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
and ebx, ecx
lea esp, [esp + 0x30]
xor edi, dword [ebx*4 + reloc.RASAPI32.dll_RasHangUpA]
lea ebx, reloc.RASAPI32.dll_RasHangUpA
jmp 0x52b61f
pop dword [esp]
mov edi, dword [edi*4 + reloc.RASAPI32.dll_RasHangUpA]
jmp 0x52b5c6
mov bx, word [esp]
mov ebx, dword [esp]
btr ebx, edi
jmp 0x52b608

Function at 0x52ba7b
Capabilities:
Encrypt data using aes

Disassembly:
pop word [esp + 1]
lea esp, [esp + 4]
dec dword [ebp - 4]
call fcn.0052b89d
cmc
popal
int1
nop
arpl word [edi + 0x5730a235], sp
mov byte [0xf59a6361], al
in al, 0x17
and edx, ecx
lea esp, [esp + 4]
xor edi, dword [edx*4 + reloc.RASAPI32.dll_RasHangUpA]
push edx
push word [esp + 1]
jmp 0x52b8bd
add esp, 1
push word [esp + 2]
lea esp, [esp + 1]
jmp 0x52b8df

Function at 0x52bdcb
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, edi
lea eax, [eax*4]
lea eax, reloc.RASAPI32.dll_RasHangUpA
mov edi, dword [eax]
stc
push esp
add esp, 1
lea esp, [esp + 3]
push eax
jmp 0x52b83e
sub esp, 2
lea esp, [esp + 2]
shr edi, 0x18
jmp 0x52bc2a

Function at 0x5db8a9
Capabilities:
Parse pe header

Disassembly:
push eax
jmp 0x5d605b
call int.005d6060
call 0x5da1cb
jmp 0x5db923
movzx ebx, word [eax + 0x3c]
jmp 0x5db932
jmp 0x5db8f3
mov eax, dword fs:[0x30]
jmp 0x5db8cd
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
jmp 0x5db8db
mov eax, dword [eax + 8]
jmp 0x5db94a
push word [esp + 3]
lea esp, [esp]
lea esp, [esp + 3]
mov dword [esp + 0x3c], edi
lea esp, [esp + 0x3c]
jmp 0x5db8ab
pop eax
xor ax, ax
cmp word [eax], 0x5a4d
jmp 0x5db970
add ebx, eax
cmp word [ebx], 0x4550
jmp 0x5db950
push eax
jmp 0x5da1c6
je 0x5d5ff8
jne 0x5db976
cmp dword [edi + reloc.RASAPI32.dll_RasHangUpA], esp
inc ecx
fmul dword [esi + 0x29]
fcomp dword [edi - 0x57]
xor eax, 0xba3fcca5
movsb byte es:[edi], byte [esi]
xlatb
or dword ds:[eax + reloc.RASAPI32.dll_RasHangUpA], ebp
call 0x8bb977
add byte [ecx], al
add bl, ch
stosb byte es:[edi], al
invalid
je 0x5da1e8
sub eax, 0x10000
jmp 0x5db927
Function at 0x40837c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4083ce
test eax, edx
je 0x4083d1
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408391
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 0x4083b7
add ecx, 4
js 0x4083a7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4083b4
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 0x4083dd
test edx, edx
jne 0x408384
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404e00
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408bcd
test al, 0x10
je 0x408bd1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b5fc
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 0x40b635
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404a60
jmp 0x40b63e
mov eax, ebx
mov edx, esi
call fcn.004049c4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b648
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 0x40b66a
movzx eax, byte [esp]
jmp 0x40b66c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bcfc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bb74
mov eax, dword [0x4589e4]
cmp byte [eax], 0
je 0x40bd78
mov eax, dword [0x458814]
call fcn.00403324
call fcn.00402fac
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.00408d7c
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 0x40bdc0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bdae
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4587c0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45b7f4]
call fcn.00405ac8
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 0x40c638
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 0x40c70e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404a08
lea eax, [ebp - 4]
call fcn.00404e58
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404e00
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c6f8
mov eax, ebx
call fcn.00402e50
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c6f1
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.00404e00
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c6db
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c720
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c6db
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 0x40c6f8
mov eax, dword [ebp - 0x10]
call fcn.00402e6c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c715
lea eax, [ebp - 4]
call fcn.00404970
ret

Function at 0x41b248
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45d9e8
cmp dword [edi], 0
jne 0x41b2c4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45d9e4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x457ad4
mov ecx, 2
call fcn.00403040
mov edx, 0x41b220
lea eax, [esi + 5]
call fcn.0041b240
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b240
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 0x41b299
mov dword [0x45d9e4], 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 0x41d808
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.00404e00
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41d860
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x458afc]
mov dl, 1
mov eax, dword [0x41d314]
call fcn.0040bebc
call fcn.004043b8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d41c
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 0x41e6bc
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 0x41e6c2
ret
Function at 0x428984
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.00404970
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4289d2
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.00404be0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42dab4
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 0x42dbe7
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 [0x41d374]
call fcn.0041d444
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x42dbbd
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041d4e4
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404be0
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x42dbfc
call fcn.00404c88
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041d548
lea ecx, [ebp - 4]
mov edx, 0x42dc38
mov eax, dword [ebp - 0xc]
call fcn.0041d790
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040d858
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x42dba0
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x42dc44
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 [0x4583fc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42dba7
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x42dc94
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 0x42dcdb
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42dcbe
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42dccf
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x42dcdb
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4327cc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x45dc40], 0
je 0x432915
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x458988]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x432915
mov eax, dword [0x45dc44]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x45dc40]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4328e4
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x45dc40]
call fcn.004142dc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4328dc
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x4328dc
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4328dc
mov eax, dword [ebp - 0x14]
call fcn.0043ce88
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4328dc
push ebp
call fcn.00432788
pop ecx
test al, al
jne 0x4328dc
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403d58
test al, al
je 0x4328dc
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00403d58
cmp byte [ebp - 1], 0
je 0x4328dc
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x4328dc
mov edx, dword [ebp - 0x14]
mov eax, dword [0x45dc44]
call fcn.00431ef8
inc edi
dec ebx
jne 0x432831
mov eax, dword [0x45dc44]
cmp dword [eax + 8], 0
jle 0x4328fc
mov eax, dword [0x45dc44]
call fcn.00431fb0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x432915
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004325ec
pop ecx
test al, al
jne 0x432915
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x439d5c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00406790
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00434b54
test ebx, ebx
jne 0x439daf
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.00439c98
mov ebx, eax
test ebx, ebx
je 0x439e9a
cmp esi, ebx
je 0x439dd8
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x439ded
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x439e25
add eax, 0xffffff5f
sub eax, 2
jb 0x439e3d
dec eax
sub eax, 2
jb 0x439e51
dec eax
sub eax, 2
jb 0x439e47
jmp 0x439e5b
add eax, 0xfffffdff
sub eax, 2
jb 0x439e3d
dec eax
sub eax, 2
jb 0x439e51
dec eax
sub eax, 2
jb 0x439e47
jmp 0x439e5b
mov byte [esp + 0x120], 0
jmp 0x439e63
mov byte [esp + 0x120], 2
jmp 0x439e63
mov byte [esp + 0x120], 1
jmp 0x439e63
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.00448664
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.004362c4
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x439e9c
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x441ff0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x458af0]
cmp byte [eax + 0xc], 0
je 0x44215d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x442156
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45dc50], 0
jne 0x442044
push 0x442164
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44216c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc50], eax
cmp dword [0x458544], 0
jne 0x44213f
push 0x44217c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x458544], eax
cmp dword [0x458544], 0
je 0x44213f
push 0x442188
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc54], eax
push 0x442198
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc58], eax
push 0x4421ac
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc5c], eax
push 0x4421c4
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc60], eax
push 0x4421dc
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc64], eax
push 0x4421f0
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc68], eax
push 0x442208
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc6c], eax
push 0x442220
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc70], eax
push 0x44223c
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc74], eax
push 0x442248
mov eax, dword [0x458544]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dc78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44215d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x4506cc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4506de
add esp, 0xfffffff0
call fcn.00403e68
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a188
mov eax, dword [0x4587c8]
mov dword [eax + 4], ebx
mov dword [eax], 0x450a70
mov eax, dword [0x4587d4]
mov dword [eax + 4], ebx
mov dword [eax], 0x450a7c
mov eax, ebx
call fcn.00450a88
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411f38]
call fcn.00403b2c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411f38]
call fcn.00403b2c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411f38]
call fcn.00403b2c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411f38]
call fcn.00403b2c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411f38]
call fcn.00403b2c
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, 0x44bf30
push eax
push 0
push 0
mov eax, dword [0x458914]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41dd1c]
call fcn.0041f23c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41dd1c]
call fcn.0041f23c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41dd1c]
call fcn.0041f23c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00450f00
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450dd0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450dd0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450dd0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45081b
call fcn.00403ec0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret