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

Disassembly:
cmp eax, edx
je 0x408746
test eax, edx
je 0x408749
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408709
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 0x40872f
add ecx, 4
js 0x40871f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40872c
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 0x408755
test edx, edx
jne 0x4086fc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00404e7c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40921e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x40923f
cmp ebx, 3
je 0x40923f
cmp ebx, 0x7b
je 0x40923f
mov eax, esi
call fcn.004091c0
test al, al
jne 0x409243
xor eax, eax
jmp 0x409245
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404e7c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409261
test al, 0x10
jne 0x409265
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40940c
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404e7c
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x409420
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404e7c
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x409442
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40c3d4
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 0x40c40d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404adc
jmp 0x40c416
mov eax, ebx
mov edx, esi
call fcn.00404a40
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c420
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 0x40c442
movzx eax, byte [esp]
jmp 0x40c444
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40cad4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c94c
mov eax, dword [0x48e324]
cmp byte [eax], 0
je 0x40cb50
mov eax, dword [0x48e0fc]
call fcn.0040334c
call fcn.00402fd0
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.00409970
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 0x40cb98
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cb86
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48e094]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4917f0]
call fcn.00405b9c
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 0x40d410
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 0x40d4e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404a84
lea eax, [ebp - 4]
call fcn.00404ed4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404e7c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d4d0
mov eax, ebx
call fcn.00402e74
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d4c9
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.00404e7c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d4b3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d4f8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d4b3
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 0x40d4d0
mov eax, dword [ebp - 0x10]
call fcn.00402e90
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d4ed
lea eax, [ebp - 4]
call fcn.004049ec
ret

Function at 0x40ea64
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.004049ec
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00404e7c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x40eaa9
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00404adc
jmp 0x40eac2
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040510c
push ebx
mov eax, dword [esi]
call fcn.00404e7c
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41cee8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4939e4
cmp dword [edi], 0
jne 0x41cf64
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4939e0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x486b54
mov ecx, 2
call fcn.00403184
mov edx, 0x41cec0
lea eax, [esi + 5]
call fcn.0041cee0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041cee0
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 0x41cf39
mov dword [0x4939e0], 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 0x41ee60
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.00404e7c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41eeb8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x48e474]
mov dl, 1
mov eax, dword [0x41e96c]
call fcn.0040cc94
call fcn.00404434
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041ea74
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 0x420048
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 0x42004e
ret
Function at 0x433388
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 0x43355c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [esi]
call fcn.00462b00
mov eax, dword [esi]
cmp byte [eax + 0x258], 0
je 0x433541
call sub.kernel32.dll_GetTickCount
mov edx, dword [esi]
sub eax, dword [edx + 0x268]
mov edx, dword [esi]
cmp eax, dword [edx + 0x2c0]
jb 0x4333ee
mov eax, dword [esi]
add eax, 0x264
call fcn.004049ec
call sub.kernel32.dll_GetTickCount
mov edx, dword [esi]
mov dword [edx + 0x268], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
cmp al, 8
je 0x4334c8
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
mov edx, dword [0x48e448]
movzx eax, al
bt dword [edx], eax
jae 0x433485
push 1
push 0x102
push 0x102
mov eax, dword [esi]
call fcn.00463c2c
push eax
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x43350c
mov eax, dword [esi]
push dword [eax + 0x264]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
movzx edx, byte [edx]
call fcn.00404bd4
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
call fcn.00404bd4
push dword [ebp - 0x2c]
mov eax, dword [esi]
add eax, 0x264
mov edx, 3
call fcn.00404d80
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x43350c
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
movzx edx, byte [edx]
call fcn.00404bd4
mov edx, dword [ebp - 0x30]
mov eax, dword [esi]
add eax, 0x264
call fcn.00404cb8
jmp 0x43350c
mov eax, dword [esi]
mov ebx, dword [eax + 0x264]
test ebx, ebx
je 0x4334b5
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esi]
add eax, 0x264
mov ecx, 1
mov edx, ebx
call fcn.00404f24
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
call fcn.00404cac
mov edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
call fcn.0040d578
cmp al, 2
je 0x4334a4
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
test eax, eax
je 0x4334f9
sub eax, 4
mov eax, dword [eax]
mov edx, dword [esi]
add edx, 0x264
mov ecx, 1
xchg edx, eax
call fcn.00404f24
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
test eax, eax
je 0x43351d
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x43352a
push ebp
call fcn.004332a0
pop ecx
jmp 0x433541
xor edx, edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, dword [esi]
mov si, 0xffeb
call fcn.00403dbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433563
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404a10
ret
Function at 0x439ee0
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.00404e6c
xor eax, eax
push ebp
push 0x43a015
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x439fe8
xor edx, edx
push ebp
push 0x439fe1
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x439f2d
sub eax, 4
mov eax, dword [eax]
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x439fb6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x439fa5
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x439f6c
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.00404e7c
lea ecx, [ebx + 1]
mov edx, esi
call fcn.00403184
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 0x439fac
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x48e020]
mov dl, 1
mov eax, dword [0x407910]
call fcn.0040cc58
call fcn.00404434
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a01c
lea eax, [ebp - 4]
call fcn.004049ec
ret
Function at 0x43a024
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 - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x43a1df
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00405170
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0x43a1f8
call fcn.00404d04
mov eax, ebx
call fcn.0041c468
mov edi, eax
dec edi
test edi, edi
jl 0x43a0dc
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0041c43c
mov edx, dword [0x42cc34]
call fcn.00403d4c
test al, al
je 0x43a0d8
push dword [ebp - 8]
mov edx, esi
mov eax, ebx
call fcn.0041c43c
lea edx, [ebp - 0x14]
call fcn.0045bad4
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00405170
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404d80
inc esi
dec edi
jne 0x43a08a
movzx eax, byte [0x43a1fc]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x43a208
mov eax, dword [ebp - 8]
call fcn.0040e05c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.00404a84
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.0045bad4
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x43a1f8
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x360]
call fcn.0045bad4
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x43a1f8
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x43a1f8
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x43a214
call fcn.0040a0a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a1e6
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00404a10
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404a10
lea eax, [ebp - 0x14]
call fcn.004049ec
lea eax, [ebp - 0x10]
call fcn.004049ec
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404a10
ret
Function at 0x43d990
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 0x43d9b1
test edi, 0x40000
je 0x43d9cb
test bl, bl
jne 0x43da4c
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x43da4c
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 0x43d9fe
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x43da13
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x43da22
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x43da33
cmp byte [esp + 2], 0
je 0x43da4c
cmp byte [esp + 2], 0
je 0x43da44
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x43da4c
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x43dcf0
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 0x43dd16
mov eax, esp
push eax
push 0x43dcb8
call sub.user32.dll_EnumWindows
jmp 0x43dd29
mov eax, esp
push eax
push 0x43dc98
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 0x43ddb4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x43de08]
test si, 4
je 0x43ddc9
or bl, 1
test si, 8
je 0x43ddd3
or bl, 4
test si, 1
je 0x43dddd
or bl, 8
test si, 2
je 0x43dde7
or bl, 0x10
test si, 0x10
je 0x43ddf1
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43de00
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x43de0c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x43de48]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43de26
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43de35
or bl, 4
test esi, 0x20000000
je 0x43de40
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x445eb4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x445ec6
add esp, 0xfffffff0
call fcn.00403ee4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041be28
mov eax, dword [0x48e0a0]
mov dword [eax + 4], ebx
mov dword [eax], 0x446258
mov eax, dword [0x48e0ac]
mov dword [eax + 4], ebx
mov dword [eax], 0x446264
mov eax, ebx
call fcn.00446270
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x413208]
call fcn.00403b90
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x413208]
call fcn.00403b90
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x413208]
call fcn.00403b90
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x413208]
call fcn.00403b90
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x413208]
call fcn.00403b90
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, 0x441718
push eax
push 0
push 0
mov eax, dword [0x48e230]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41f374]
call fcn.00420bc8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41f374]
call fcn.00420bc8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41f374]
call fcn.00420bc8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004466e8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4465b8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4465b8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4465b8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x446003
call fcn.00403f3c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44639c
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 0x446547
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x446528
mov dl, 1
mov eax, dword [0x4137b8]
call fcn.00403b90
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004049ec
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x446517
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.0046939c
test al, al
je 0x44650a
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, 0x446558
lea eax, [ebp - 0x254]
call fcn.0040a020
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44650a
xor eax, eax
push ebp
push 0x446503
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 0x446590
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4464ec
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404c5c
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 0x4464ec
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404c5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44650a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44640d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00417c40
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 0x44654e
lea eax, [ebp - 0x260]
call fcn.004049ec
ret

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

Disassembly:
push ecx
mov eax, dword [0x493c20]
cmp byte [eax + 0xad], 0
jne 0x446f31
cmp dword [0x493c3c], 0
jne 0x446ef2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x446e7c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x493c3c], eax
cmp dword [0x493c38], 0
jne 0x446f0d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x493c38], eax
cmp dword [0x493c40], 0
jne 0x446f31
push esp
push 0
push 0
push 0x446e20
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x493c40], eax
pop edx
ret