joyce8/EMBER2024-capa huggingface dataset:
Function at 0x482a00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x482a19
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x482a12
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
movzx edx, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x482a2d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004823cc
test bl, bl
jne 0x482b07
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x48ebc4
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x482a65
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x482a7a
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004828d4
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
movzx ebx, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x482aad
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x482a5a
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x482ad1
mov eax, 4
mov edx, dword [ebp + 0xc]
movzx ecx, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x482ae3
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x482af8
jmp 0x482bc8
cmp bl, 1
jne 0x482bc8
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x48ec1e
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x482b27
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x482b3c
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004828d4
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x482b6f
sub ebx, 6
inc dword [ebp - 8]
jne 0x482b1c
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x482b97
mov eax, 4
mov ebx, dword [ebp + 0xc]
movzx edx, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x482ba9
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x482bbe
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0048244c
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x482f2c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x483062
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x483074
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
jne 0x482f6a
push 0x48307c
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
jne 0x483047
push 0x104
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea edx, [ebp - 4]
lea eax, [ebp - 0x110]
call fcn.0040972c
mov eax, dword [ebp - 4]
test eax, eax
je 0x482f9d
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x482fb4
lea eax, [ebp - 4]
mov edx, 0x483094
call fcn.00404c3c
lea eax, [ebp - 8]
mov ecx, 0x4830a0
mov edx, dword [ebp - 4]
call fcn.00404c88
xor eax, eax
push ebp
push 0x483031
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4830b0
push 0x4830b4
mov ecx, dword [0x48b7f4]
mov dl, 1
mov eax, dword [0x413c08]
call fcn.00418ce8
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x483020
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004189b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483027
mov eax, dword [ebp - 0xc]
call fcn.00403a88
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483069
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404994
ret

Function at 0x483284
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
test dl, dl
je 0x483293
add esp, 0xfffffff0
call fcn.00403d94
mov ebx, edx
mov edi, eax
mov eax, edi
call fcn.00483440
xor eax, eax
mov dword [edi + 8], eax
call fcn.00482f2c
mov esi, eax
mov dword [edi + 4], esi
test esi, esi
jne 0x4832b6
call fcn.0040e3a0
push 0x48337c
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0xc], eax
push 0x48338c
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x10], eax
push 0x48339c
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x14], eax
push 0x4833ac
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x18], eax
push 0x4833b8
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x20], eax
push 0x4833c4
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x1c], eax
push 0x4833cc
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x24], eax
push 0x4833d8
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x28], eax
push 0x4833e4
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x2c], eax
push 0x4833f0
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x30], eax
mov eax, edi
test bl, bl
je 0x483375
call fcn.00403dec
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x40281c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402859
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x108]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402879
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.00403dd4
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x4029f8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402a27
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403c8c
jmp 0x402a45
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402980
mov edi, eax
test ebx, ebx
je 0x402a45
cmp dword [esi], 0
je 0x402a45
dec ebx
jmp 0x402a2e
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402d94
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402e2c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402e0c
xor eax, eax
push ebp
push 0x402e05
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 0x402e48
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 0x402e0c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x405510
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 0xf003f
push 0
push 0x4056cc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405571
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4056e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4055e3
xor eax, eax
push ebp
push 0x4055dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00405368
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4055c5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405708
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4055e3
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
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 0x4056c4
cmp byte [ebp - 0xd], 0
jne 0x405625
cmp byte [ebp - 0x12], 0
je 0x4056c4
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40563e
dec ebx
cmp byte [ebx], 0x2e
je 0x40564d
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40563d
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4056c4
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40567a
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4056c4
cmp byte [ebp - 0xd], 0
je 0x4056c4
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4056c4
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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 0x405cb4
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x405ce4
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x405cda
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.004027f4
or eax, 0xffffffff
jmp 0x405cd8
mov eax, 0x67
call fcn.004027e4
or eax, 0xffffffff
jmp 0x405cd8
Function at 0x4087a4
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.00403fe8
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4087c6
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40a3f8
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 0x40a431
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403c8c
jmp 0x40a43a
mov eax, ebx
mov edx, esi
call fcn.00403bf8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x415d2c
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 0x415d32
ret

Function at 0x418614
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 0x418665
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41864c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41863c
jmp 0x418665
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 0x41864d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4286ec
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 - 0xc]
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
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x46177c], 0
sete dl
or al, dl
jne 0x42882c
mov eax, dword [0x461780]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x46177c]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x4287fb
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x46177c]
call fcn.0040f560
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4287f3
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x4287f3
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x4287f3
mov eax, dword [ebp - 0x14]
call fcn.004309fc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4287f3
push ebp
call fcn.004286a8
pop ecx
test al, al
jne 0x4287f3
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x4287af
mov eax, dword [ebp - 0x14]
call fcn.0042f388
dec eax
jle 0x4287f3
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.004030f8
cmp byte [ebp - 1], 0
je 0x4287f3
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x4287f3
mov edx, dword [ebp - 0x14]
mov eax, dword [0x461780]
call fcn.00427ef4
inc edi
dec esi
jne 0x428742
mov eax, dword [0x461780]
cmp dword [eax + 8], 0
jle 0x428813
mov eax, dword [0x461780]
call fcn.00427f84
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42882c
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00428510
pop ecx
test al, al
jne 0x42882c
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 0x42e394
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x42e3c5
je 0x42e41f
sub eax, 7
je 0x42e3e6
dec eax
je 0x42e410
sub eax, 0x17
je 0x42e4c4
jmp 0x42e502
add eax, 0xffffff00
sub eax, 9
jb 0x42e4b0
add eax, 0xffffff09
sub eax, 0xb
jb 0x42e478
jmp 0x42e502
mov eax, ebx
call fcn.00440064
mov edi, eax
test edi, edi
je 0x42e562
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x42e56b
jmp 0x42e562
test byte [ebx + 0x44], 0x20
jne 0x42e56b
jmp 0x42e562
mov edx, esi
mov eax, ebx
call fcn.0042b994
cmp dword [esi + 0xc], 0xffffffff
jne 0x42e56b
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.0040722c
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0042a4c8
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.0042e26c
test eax, eax
je 0x42e56b
mov dword [esi + 0xc], 1
jmp 0x42e56b
mov edx, esi
mov eax, ebx
call fcn.0042e300
test al, al
je 0x42e562
cmp dword [esi + 0xc], 0
jne 0x42e56b
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.004309fc
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x42e56b
mov eax, ebx
call fcn.0042b030
test al, al
jne 0x42e56b
jmp 0x42e562
mov eax, ebx
call fcn.004309fc
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x42e562
cmp dword [0x45f808], 0
je 0x42e562
mov eax, dword [0x45f808]
cmp ebx, dword [eax + 0x24]
jne 0x42e562
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x45f808]
call fcn.0042b8c8
jmp 0x42e562
mov eax, dword [0x461744]
cmp byte [eax + 0x20], 0
je 0x42e562
mov eax, dword [0x461744]
cmp dword [eax + 0x1c], 0
je 0x42e562
mov eax, dword [esi]
mov edx, dword [0x461744]
cmp eax, dword [edx + 0x1c]
jne 0x42e562
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.0043ffa8
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.004030f8
jmp 0x42e56b
mov edx, esi
mov eax, ebx
call fcn.0042b994
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x438368
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.00403ba4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4383b7
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.00403dd4
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43fd80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4617dc
cmp dword [edi], 0
jne 0x43fdfc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4617d8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45f99c
mov ecx, 2
call fcn.00402940
mov edx, 0x43fd58
lea eax, [esi + 5]
call fcn.0043fd78
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0043fd78
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 0x43fdd1
mov dword [0x4617d8], 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 0x43ff18
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43ff68]
test si, 4
je 0x43ff2c
or bl, 1
test si, 8
je 0x43ff36
or bl, 4
test si, 1
je 0x43ff40
or bl, 8
test si, 2
je 0x43ff4a
or bl, 0x10
test si, 0x10
je 0x43ff54
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43ff63
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x43ff6c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43ffa4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43ff85
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43ff94
or bl, 4
test esi, 0x20000000
je 0x43ff9f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4461d4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4461e6
add esp, 0xfffffff0
call fcn.0040321c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00413d8c
mov eax, ebx
call fcn.00446520
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x40de9c]
call fcn.00402eec
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x40de9c]
call fcn.00402eec
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x40de9c]
call fcn.00402eec
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x40de9c]
call fcn.00402eec
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40de9c]
call fcn.00402eec
mov dword [ebx + 0x70], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x442cc4
push eax
push 0
push 0
mov eax, dword [0x46014c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x415254]
call fcn.0041678c
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x415254]
call fcn.0041678c
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x415254]
call fcn.0041678c
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.00446900
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44681c
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44681c
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44681c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4462f5
call fcn.00403274
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret