joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100935b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
call fcn.01001396
push 0
push 1
mov ecx, ebx
call fcn.0100151e
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push dword [ebp + 0x1c]
lea edi, [ebx + 0x20]
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x18], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x30]
movsd dword es:[edi], dword [esi]
call fcn.0100142d
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
jne 0x100c3bb
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
and byte [ebx + 0x44], 0
and byte [ebx + 0x38], 0
push esi
push 1
push esi
push esi
call edi
cmp eax, esi
mov dword [ebx + 0x3c], eax
je 0x1009401
push esi
push esi
push esi
push esi
call edi
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x1009401
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x1008637
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
mov dword [ebx + 0x34], eax
je 0x1009401
mov byte [ebx + 0x38], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
jmp 0x100c3c6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10093a7
test eax, eax
jg 0x100c3d3
call esi
mov esi, eax
jmp 0x10093f1
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10093f1

Function at 0x1009ab1
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov eax, 0x10137f9
call fcn.010012e0
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x64]
mov dword [ebp - 4], 0xa
call fcn.01009b41
mov eax, dword [esi + 0x60]
test eax, eax
mov byte [ebp - 4], 9
je 0x1009ae3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
lea ecx, [esi + 0x4c]
call fcn.0100132c
mov eax, dword [esi + 0x48]
test eax, eax
mov byte [ebp - 4], 7
je 0x1009afe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [esi + 0x40]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push dword [esi + 0x3c]
call edi
push dword [esi + 0x38]
call edi
push dword [esi + 0x34]
call edi
push dword [esi + 0x30]
call edi
push dword [esi + 0x2c]
call edi
push dword [esi + 0x28]
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
call fcn.010012b5
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x1010292
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
call fcn.01001396
push 0
push 1
mov ecx, ebx
call fcn.0100151e
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push dword [ebp + 0x1c]
lea edi, [ebx + 0x20]
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x18], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x30]
movsd dword es:[edi], dword [esi]
call fcn.0100142d
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x10102e0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
and byte [ebx + 0x44], 0
and byte [ebx + 0x38], 0
push esi
push 1
push esi
push esi
call edi
cmp eax, esi
mov dword [ebx + 0x3c], eax
je 0x1010326
push esi
push esi
push esi
push esi
call edi
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x1010326
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x1010088
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
mov dword [ebx + 0x34], eax
jne 0x101034a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1010338
call esi
mov esi, eax
jmp 0x101034e
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x101034e
mov byte [ebx + 0x38], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x31236917
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x6d283ec9
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x1c251c9a
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x24951d11
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x403b70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45b020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403c08
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403be8
xor eax, eax
push ebp
push 0x403be1
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 0x403c24
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 0x403be8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x45b020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45b020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4049fc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45d048], 0
je 0x404a5d
cmp word [0x45d21c], 0xd7b2
jne 0x404a25
cmp dword [0x45d224], 0
jbe 0x404a25
mov eax, 0x45d218
call dword [0x45d234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x404a84
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45b02c], 0
jne 0x404a79
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405f18
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 0x406148
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405f9b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406148
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405f9b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406164
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406024
xor eax, eax
push ebp
push 0x40601d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405d54
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 0x406002
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406184
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406002
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 0x406024
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 0x40613e
cmp byte [ebp - 0xd], 0
jne 0x40606b
cmp byte [ebp - 0x12], 0
je 0x40613e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406084
dec ebx
cmp byte [ebx], 0x2e
je 0x406093
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406083
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40613e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4060d0
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 0x40613e
cmp byte [ebp - 0xd], 0
je 0x40613e
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 0x40613e
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 0x408520
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4085b0
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4085b0
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408563
test edx, 3
jne 0x408552
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40855d
jmp 0x408563
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408563
cmp dword [ecx - 8], 1
je 0x40856d
mov edx, ebx
or edx, 3
call fcn.004052c8
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40857f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404b7c

Function at 0x4085bc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40864c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40864c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4085ff
test edx, 3
jne 0x4085ee
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4085f9
jmp 0x4085ff
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4085ff
cmp dword [ecx - 8], 1
je 0x408609
mov edx, ebx
or edx, 3
call fcn.004052c8
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40861b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404b7c

Function at 0x40b9a8
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 0x40b9e1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404c6c
jmp 0x40b9ea
mov eax, ebx
mov edx, esi
call fcn.00404bd0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bf20
mov eax, dword [0x45ca44]
cmp byte [eax], 0
je 0x40c124
mov eax, dword [0x45c878]
call fcn.00403310
call fcn.00402e28
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.00409140
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 0x40c16c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c15a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45c824]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45f7f4]
call fcn.00405cfc
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 0x40c9b8
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 0x40ca8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404c14
lea eax, [ebp - 4]
call fcn.00405090
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405040
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ca78
mov eax, ebx
call fcn.00402ccc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ca71
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.00405040
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ca5b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40caa0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ca5b
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 0x40ca78
mov eax, dword [ebp - 0x10]
call fcn.00402ce8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca95
lea eax, [ebp - 4]
call fcn.00404b7c
ret
Function at 0x41b634
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x460300
cmp dword [edi], 0
jne 0x41b6b0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4602fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45baf8
mov ecx, 2
call fcn.00402ec8
mov edx, 0x41b60c
lea eax, [esi + 5]
call fcn.0041b62c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b62c
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 0x41b685
mov dword [0x4602fc], 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 0x41ea10
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 0x41ea16
ret
Function at 0x42ebb8
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.00404b7c
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42ec06
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.00404dec
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x432c88
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 0x432dbb
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 [0x41d6e0]
call fcn.0041d7b0
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x432d91
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041d850
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404dec
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x432dd0
call fcn.00404e8c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041d8b4
lea ecx, [ebp - 4]
mov edx, 0x432e0c
mov eax, dword [ebp - 0xc]
call fcn.0041dae4
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040dc70
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x432d74
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x432e18
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 [0x45c4e0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x432d7b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x432e68
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 0x432eaf
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x432e92
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x432ea3
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x432eaf
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x437ce8
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 [0x460534], 0
je 0x437e31
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x45c9e4]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x437e31
mov eax, dword [0x460538]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x460534]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x437e00
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x460534]
call fcn.00414710
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x437df8
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x437df8
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x437df8
mov eax, dword [ebp - 0x14]
call fcn.00442040
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x437df8
push ebp
call fcn.00437ca4
pop ecx
test al, al
jne 0x437df8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403f64
test al, al
je 0x437df8
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.00403f64
cmp byte [ebp - 1], 0
je 0x437df8
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x437df8
mov edx, dword [ebp - 0x14]
mov eax, dword [0x460538]
call fcn.00437414
inc edi
dec ebx
jne 0x437d4d
mov eax, dword [0x460538]
cmp dword [eax + 8], 0
jle 0x437e18
mov eax, dword [0x460538]
call fcn.004374cc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x437e31
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00437b08
pop ecx
test al, al
jne 0x437e31
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 0x43f23c
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.004069f0
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.0043a070
test ebx, ebx
jne 0x43f28f
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0043f178
mov ebx, eax
test ebx, ebx
je 0x43f37a
cmp esi, ebx
je 0x43f2b8
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 0x43f2cd
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 0x43f305
add eax, 0xffffff5f
sub eax, 2
jb 0x43f31d
dec eax
sub eax, 2
jb 0x43f331
dec eax
sub eax, 2
jb 0x43f327
jmp 0x43f33b
add eax, 0xfffffdff
sub eax, 2
jb 0x43f31d
dec eax
sub eax, 2
jb 0x43f331
dec eax
sub eax, 2
jb 0x43f327
jmp 0x43f33b
mov byte [esp + 0x120], 0
jmp 0x43f343
mov byte [esp + 0x120], 2
jmp 0x43f343
mov byte [esp + 0x120], 1
jmp 0x43f343
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0044cc38
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0043b7f8
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x43f37c
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret