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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10156440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10107634
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10107634
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1011162e
cmp word [ecx], dx
je 0x1011162e
mov eax, dword [0x10139b94]
push edi
dec eax
push eax
push 0x10139a80
call fcn.10111556
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x101116a1
cmp word [eax], dx
je 0x101116a1
mov eax, dword [edi]
test eax, eax
je 0x10111652
cmp word [eax], dx
je 0x10111652
lea eax, [ebp - 0x10]
push eax
call fcn.10110f39
jmp 0x1011165b
lea eax, [ebp - 0x10]
push eax
call fcn.10110fd4
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x101116cb
mov eax, dword [0x10139a7c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10139770
call fcn.10111556
add esp, 0xc
test al, al
je 0x101116cb
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10111696
cmp word [eax], di
je 0x10111696
lea eax, [ebp - 0x10]
push eax
call fcn.10110f39
pop ecx
jmp 0x101116cd
lea eax, [ebp - 0x10]
push eax
call fcn.10110fd4
jmp 0x10111693
mov eax, dword [edi]
test eax, eax
je 0x101116b8
cmp word [eax], dx
je 0x101116b8
lea eax, [ebp - 0x10]
push eax
call fcn.10110eee
pop ecx
jmp 0x101116cb
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10111796
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.101113db
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10111796
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10111796
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10111796
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10111723
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1010802d
test ebx, ebx
je 0x10111791
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1010802d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10111796
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10111796
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10114547
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10111798
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100f4277
leave
ret
Function at 0x10115b90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10115bbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10115bbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404a80
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 0x404c38
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404ae1
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404c54
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404b4e
xor eax, eax
push ebp
push 0x404b47
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]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404b30
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404c74
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 0x404b4e
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 0x404c2f
cmp byte [ebp - 0xd], 0
jne 0x404b90
cmp byte [ebp - 0x12], 0
je 0x404c2f
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404ba9
dec ebx
cmp byte [ebx], 0x2e
je 0x404bb8
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404ba8
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404c2f
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404be5
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 0x404c2f
cmp byte [ebp - 0xd], 0
je 0x404c2f
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 0x404c2f
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 0x404b4e
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 0xf003f
push 0
push 0x404c38
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404ae1
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404c54
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404b4e
xor eax, eax
push ebp
push 0x404b47
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]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404b30
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404c74
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 0x404b4e
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 0x404c2f
cmp byte [ebp - 0xd], 0
jne 0x404b90
cmp byte [ebp - 0x12], 0
je 0x404c2f
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404ba9
dec ebx
cmp byte [ebx], 0x2e
je 0x404bb8
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404ba8
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404c2f
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404be5
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 0x404c2f
cmp byte [ebp - 0xd], 0
je 0x404c2f
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 0x404c2f
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 0x407ff8
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 0x408031
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403870
jmp 0x40803a
mov eax, ebx
mov edx, esi
call fcn.00403824
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408044
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 0x408065
mov al, byte [esp]
jmp 0x408067
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x412e94
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 0x412e9a
ret

Function at 0x4152b8
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 0x415309
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4152f0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4152e0
jmp 0x415309
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 0x4152f1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41c4d4
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 - 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], edx
xor eax, eax
mov dword [ebp - 0x14], eax
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x43d758], 0
sete dl
or al, dl
jne 0x41c618
mov eax, dword [0x43d75c]
mov bx, 0xffff
call fcn.00402de0
mov eax, dword [0x43d758]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x41c5e7
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x43d758]
call fcn.0040c8d4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x41c5df
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x16c], 0
je 0x41c5df
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x41c5df
mov eax, dword [ebp - 0x10]
call fcn.00424310
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x41c5df
push ebp
call fcn.0041c490
pop ecx
test al, al
jne 0x41c5df
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x8c]
cmp eax, dword [ebp - 0x10]
jne 0x41c59b
mov eax, dword [ebp - 0x10]
call fcn.00422c58
dec eax
jle 0x41c5df
mov byte [ebp - 0x15], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x15]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov bx, 0xffc2
call fcn.00402de0
cmp byte [ebp - 0x15], 0
je 0x41c5df
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x41c5df
mov edx, dword [ebp - 0x10]
mov eax, dword [0x43d75c]
call fcn.0041bd40
inc edi
dec esi
jne 0x41c52e
mov eax, dword [0x43d75c]
cmp dword [eax + 8], 0
jle 0x41c5ff
mov eax, dword [0x43d75c]
call fcn.0041bdd0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41c618
push ebp
mov eax, dword [ebp - 0x14]
call fcn.0041c348
pop ecx
test al, al
jne 0x41c618
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421de4
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 0x421e15
je 0x421e6f
sub eax, 7
je 0x421e36
dec eax
je 0x421e60
sub eax, 0x17
je 0x421ef0
jmp 0x421f2e
add eax, 0xffffff00
sub eax, 9
jb 0x421edc
add eax, 0xffffff09
sub eax, 0xb
jb 0x421ec6
jmp 0x421f2e
mov eax, ebx
call fcn.00431ecc
mov edi, eax
test edi, edi
je 0x421f8e
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xc8]
test al, al
je 0x421f97
jmp 0x421f8e
test byte [ebx + 0x44], 0x20
jne 0x421f97
jmp 0x421f8e
mov edx, esi
mov eax, ebx
call fcn.0041f758
cmp dword [esi + 0xc], 0xffffffff
jne 0x421f97
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.0040644c
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0041e1e4
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00421c94
test eax, eax
je 0x421f97
mov dword [esi + 0xc], 1
jmp 0x421f97
mov edx, esi
mov eax, ebx
call fcn.00421d58
test al, al
jne 0x421f97
jmp 0x421f8e
mov eax, ebx
call fcn.0041edc4
test al, al
jne 0x421f97
jmp 0x421f8e
mov eax, ebx
call fcn.00424310
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x421f8e
cmp dword [0x43c678], 0
je 0x421f8e
mov eax, dword [0x43c678]
cmp ebx, dword [eax + 0x24]
jne 0x421f8e
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x43c678]
call fcn.0041f674
jmp 0x421f8e
mov eax, dword [0x43d720]
cmp byte [eax + 0x20], 0
je 0x421f8e
mov eax, dword [0x43d720]
cmp dword [eax + 0x1c], 0
je 0x421f8e
mov eax, dword [esi]
mov edx, dword [0x43d720]
cmp eax, dword [edx + 0x1c]
jne 0x421f8e
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.00431de0
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, 0xffb9
call fcn.00402de0
jmp 0x421f97
mov edx, esi
mov eax, ebx
call fcn.0041f758
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422428
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x422444
cmp dword [esi + 4], 0
je 0x422471
test byte [ebx + 0x45], 1
jne 0x422463
mov eax, ebx
call fcn.00421508
test eax, eax
jne 0x422463
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x422581
mov edx, esi
mov eax, ebx
call fcn.004220a0
jmp 0x422581
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x42257a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00424310
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0041f674
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00422428
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00424310
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422581
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42b940
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.0040378c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42b9a1
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x42b9a1
cmp byte [ebp - 0x102], 0
je 0x42b9a1
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004039b8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431bb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x43d7d4
cmp dword [edi], 0
jne 0x431c2c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x43d7d0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x43c804
mov ecx, 2
call fcn.00402798
mov edx, 0x431b88
lea eax, [esi + 5]
call fcn.00431ba8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00431ba8
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 0x431c01
mov dword [0x43d7d0], 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 0x431d50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x431da0]
test si, 4
je 0x431d64
or bl, 1
test si, 8
je 0x431d6e
or bl, 4
test si, 1
je 0x431d78
or bl, 8
test si, 2
je 0x431d82
or bl, 0x10
test si, 0x10
je 0x431d8c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x431d9b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x431da4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x431ddc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x431dbd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x431dcc
or bl, 4
test esi, 0x20000000
je 0x431dd7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4382c4
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 0x438469
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40b5b0]
call fcn.00402bdc
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.0040378c
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x43843f
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.004286c0
test al, al
je 0x438432
lea eax, [ebp - 0xc]
push eax
push 0xf003f
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, 0x438478
lea eax, [ebp - 0x254]
call fcn.00407e68
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x438432
xor eax, eax
push ebp
push 0x43842b
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 0x4384b0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x438414
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004039b8
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x438414
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004039b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438432
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x438335
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040e440
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438470
lea eax, [ebp - 0x260]
call fcn.0040378c
ret

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

Disassembly:
push ecx
mov eax, dword [0x43d7a4]
cmp byte [eax + 0x8d], 0
jne 0x438c3d
cmp dword [0x43d7e0], 0
jne 0x438bfe
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x438b88
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x43d7e0], eax
cmp dword [0x43d7dc], 0
jne 0x438c19
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x43d7dc], eax
cmp dword [0x43d7e4], 0
jne 0x438c3d
push esp
push 0
push 0
push 0x438b2c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x43d7e4], eax
pop edx
ret