joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b950
Capabilities:
Get disk information
Get disk size
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
xor eax, eax
push ebp
push 0x41ba40
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x34]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x30]
mov dword [0x46c3bc], eax
mov eax, dword [ebp - 0x18]
mov dword [0x46c3c4], eax
xor eax, eax
mov dword [0x46c3c0], eax
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
xor esi, esi
mov eax, esi
cmp eax, 0x1f
ja 0x41b9a2
bt edi, eax
jae 0x41ba1b
mov ebx, esi
add bl, 0x61
lea eax, [ebp - 0x38]
mov edx, ebx
call fcn.00404598
lea eax, [ebp - 0x38]
mov edx, 0x41ba58
call fcn.00404678
mov eax, dword [ebp - 0x38]
call fcn.00404834
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x41ba1b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x3c]
mov edx, ebx
call fcn.00404598
lea eax, [ebp - 0x3c]
mov edx, 0x41ba58
call fcn.00404678
mov eax, dword [ebp - 0x3c]
call fcn.00404834
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
mov eax, dword [ebp - 4]
cmp eax, dword [0x46c3c0]
jle 0x41ba1b
mov eax, dword [ebp - 4]
mov dword [0x46c3c0], eax
inc esi
cmp esi, 0x1a
jne 0x41b998
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ba47
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004043ec
ret
Function at 0x41bc74
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov byte [ebp - 1], cl
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41bdbb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00403238
mov dword [ebp - 0x50], 0x44
cmp byte [ebp - 1], 0
je 0x41bcb9
mov word [ebp - 0x20], 6
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x10
call fcn.00403238
test ebx, ebx
jne 0x41bcd0
xor esi, esi
jmp 0x41bcd9
mov eax, ebx
call fcn.00404834
mov esi, eax
test edi, edi
jne 0x41bce1
xor edi, edi
jmp 0x41bcea
mov eax, edi
call fcn.00404834
mov edi, eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push edi
push esi
call sub.kernel32.dll_CreateProcessA
neg eax
sbb eax, eax
neg eax
mov edx, 0x41bdd4
call fcn.0041babc
xor eax, eax
push ebp
push 0x41bd9e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0xffffffffffffffff
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0xffffffff
jne 0x41bd67
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, 0x41bdec
call fcn.0040a240
mov eax, dword [ebp - 0x64]
call fcn.0041bb98
jmp 0x41bd67
push 1
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
je 0x41bd81
cmp dword [ebp - 0xc], 0x103
je 0x41bd60
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41bda5
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_CloseHandle_1
ret

Function at 0x41cb1c
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 0x41cb22
ret

Function at 0x41f6a0
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 0x41f6f1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41f6d8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41f6c8
jmp 0x41f6f1
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 0x41f6d9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c224
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
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 byte [ebp - 0x1d]
cmp dword [0x46e7cc], 0
sete al
or al, byte [ebp - 0x1d]
jne 0x42c373
mov eax, dword [0x46e7d0]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x46e7cc]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x42c342
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x46e7cc]
call fcn.00411a60
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42c336
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x42c336
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x42c336
mov eax, dword [ebp - 0x14]
call fcn.00436c94
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42c336
push ebp
call fcn.0042c1d8
pop ecx
test al, al
jne 0x42c336
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x42c2f2
mov eax, dword [ebp - 0x14]
call fcn.00434eac
dec eax
jle 0x42c336
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.0040377c
cmp byte [ebp - 1], 0
je 0x42c336
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x34]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42c336
mov edx, dword [ebp - 0x14]
mov eax, dword [0x46e7d0]
call fcn.0042b74c
inc dword [ebp - 0x1c]
dec dword [ebp - 0x24]
jne 0x42c284
mov eax, dword [0x46e7d0]
cmp dword [eax + 8], 0
jle 0x42c35a
mov eax, dword [0x46e7d0]
call fcn.0042b7f8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42c373
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042c014
pop ecx
test al, al
jne 0x42c373
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 0x433a08
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp eax, 0x84
jg 0x433a3c
je 0x433a9f
sub eax, 7
je 0x433a5d
dec eax
je 0x433a8d
sub eax, 0x17
je 0x433b61
jmp 0x433bab
add eax, 0xffffff00
sub eax, 9
jb 0x433b4c
add eax, 0xffffff09
sub eax, 0xb
jb 0x433b05
jmp 0x433bab
mov eax, dword [ebp - 0x14]
call fcn.00448ec8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x433c18
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x433c23
jmp 0x433c18
mov eax, dword [ebp - 0x14]
test byte [eax + 0x44], 0x20
jne 0x433c23
jmp 0x433c18
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.004304c4
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xc], 0xffffffff
jne 0x433c23
push 0
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
call fcn.00407b80
lea edx, [ebp - 0x12c]
lea ecx, [ebp - 0x124]
mov eax, dword [ebp - 0x14]
call fcn.0042e800
lea edx, [ebp - 0x124]
xor ecx, ecx
mov eax, dword [ebp - 0x14]
call fcn.0043388c
test eax, eax
je 0x433c23
mov eax, dword [ebp - 0x18]
mov dword [eax + 0xc], 1
jmp 0x433c23
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.00433948
test al, al
je 0x433c18
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xc], 0
jne 0x433c23
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00436c94
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x433c23
mov eax, dword [ebp - 0x14]
call fcn.0042f854
test al, al
jne 0x433c23
jmp 0x433c18
mov eax, dword [ebp - 0x14]
call fcn.00436c94
mov ebx, eax
call sub.user32.dll_GetCapture
cmp ebx, eax
jne 0x433c18
cmp dword [0x46c7c0], 0
je 0x433c18
mov eax, dword [0x46c7c0]
mov eax, dword [eax + 0x24]
cmp eax, dword [ebp - 0x14]
jne 0x433c18
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x46c7c0]
call fcn.00430378
jmp 0x433c18
mov eax, dword [0x46e794]
cmp byte [eax + 0x20], 0
je 0x433c18
mov eax, dword [0x46e794]
cmp dword [eax + 0x1c], 0
je 0x433c18
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [0x46e794]
cmp eax, dword [edx + 0x1c]
jne 0x433c18
lea eax, [ebp - 0x11c]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x11c]
call fcn.00448de4
mov byte [ebp - 0xc], al
mov eax, dword [ebp - 0x18]
mov ax, word [eax + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffb7
call fcn.0040377c
jmp 0x433c23
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.004304c4
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x434264
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1e8], 0
je 0x434285
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x4342ba
mov eax, dword [ebp - 4]
test byte [eax + 0x45], 1
jne 0x4342aa
mov eax, dword [ebp - 4]
call fcn.00432d1c
test eax, eax
jne 0x4342aa
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4343e4
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00433de0
jmp 0x4343e4
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x5c]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4343dd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 4]
call fcn.00436c94
push eax
call sub.user32.dll_BeginPaint
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.00430378
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00434264
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 4], edx
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x5c]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x70]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 4]
call fcn.00436c94
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4343e4
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_DeleteObject
ret
mov esp, ebp
pop ebp
ret
Function at 0x43c0ac
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [0x46dac8]
cmp byte [eax + 8], 0
je 0x43c21e
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x43c217
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x46e7d8], 0
jne 0x43c105
push 0x43c224
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [ebp - 4], eax
push 0x43c22c
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46e7d8], eax
cmp dword [0x46c820], 0
jne 0x43c200
push 0x43c23c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x46c820], eax
cmp dword [0x46c820], 0
je 0x43c200
push 0x43c248
mov eax, dword [0x46c820]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46e7dc], eax
push 0x43c258
mov eax, dword [0x46c820]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46e7e0], eax
push 0x43c26c
mov eax, dword [0x46c820]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46e7e4], eax
push 0x43c284
mov eax, dword [0x46c820]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46e7e8], eax
push 0x43c29c
mov eax, dword [0x46c820]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46e7ec], eax
push 0x43c2b0
mov eax, dword [0x46c820]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46e7f0], eax
push 0x43c2c8
mov eax, dword [0x46c820]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46e7f4], eax
push 0x43c2e0
mov eax, dword [0x46c820]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46e7f8], eax
push 0x43c2fc
mov eax, dword [0x46c820]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46e7fc], eax
push 0x43c308
mov eax, dword [0x46c820]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46e800], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c21e
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ecx
pop ecx
pop ebp
ret

Function at 0x43fd20
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
mov dword [ebp - 8], edx
mov word [ebp - 2], ax
mov eax, dword [ebp - 8]
call fcn.004043c8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x43fd79
push pe_nt_image_headers32
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10c]
mov ecx, pe_nt_image_headers32
call fcn.00404620
mov esp, ebp
pop ebp
ret
Function at 0x448b38
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
cmp dword [0x46e82c], 0
jne 0x448be5
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [0x46e828]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x46c954
mov ecx, 2
call fcn.00402fd8
mov edx, 0x448af4
mov eax, dword [ebp - 8]
add eax, 5
call fcn.00448b14
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebp - 0xc]
call fcn.00448b14
mov edx, dword [ebp - 0xc]
mov dword [edx + 1], eax
mov eax, dword [0x46e82c]
mov edx, dword [ebp - 0xc]
mov dword [edx + 5], eax
mov eax, dword [ebp - 0xc]
mov dword [0x46e82c], eax
add dword [ebp - 0xc], 0xd
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x448b9f
mov eax, dword [ebp - 8]
mov dword [0x46e828], eax
mov eax, dword [0x46e82c]
mov dword [ebp - 4], eax
mov eax, dword [0x46e82c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 5]
mov dword [0x46e82c], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x448d40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov word [ebp - 2], ax
mov al, byte [0x448d98]
mov byte [ebp - 3], al
test byte [ebp - 2], 4
je 0x448d5a
or byte [ebp - 3], 1
test byte [ebp - 2], 8
je 0x448d64
or byte [ebp - 3], 4
test byte [ebp - 2], 1
je 0x448d6e
or byte [ebp - 3], 8
test byte [ebp - 2], 2
je 0x448d78
or byte [ebp - 3], 0x10
test byte [ebp - 2], 0x10
je 0x448d82
or byte [ebp - 3], 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448d92
or byte [ebp - 3], 2
mov al, byte [ebp - 3]
pop ecx
pop ebp
ret

Function at 0x448d9c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov al, byte [0x448de0]
mov byte [ebp - 5], al
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448dbd
or byte [ebp - 5], 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448dcd
or byte [ebp - 5], 4
test byte [ebp - 1], 0x20
je 0x448dd7
or byte [ebp - 5], 2
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x4507dc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
test dl, dl
je 0x4507ee
add esp, 0xfffffff0
call fcn.004038bc
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004173d0
mov eax, dword [ebp - 4]
call fcn.00450cf0
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
mov dl, 1
mov eax, dword [0x410144]
call fcn.0040351c
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov dl, 1
mov eax, dword [0x410144]
call fcn.0040351c
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov dl, 1
mov eax, dword [0x410144]
call fcn.0040351c
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], eax
mov dl, 1
mov eax, dword [0x410144]
call fcn.0040351c
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], eax
mov dl, 1
mov eax, dword [0x410144]
call fcn.0040351c
mov edx, dword [ebp - 4]
mov dword [edx + 0x70], eax
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x10], eax
push 0x5a
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_GetDeviceCaps
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
mov eax, 0x44c608
push eax
push 0
push 0
mov eax, dword [0x46d910]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c290]
call fcn.0041d720
mov edx, dword [ebp - 4]
mov dword [edx + 0x78], eax
mov dl, 1
mov eax, dword [0x41c290]
call fcn.0041d720
mov edx, dword [ebp - 4]
mov dword [edx + 0x7c], eax
mov dl, 1
mov eax, dword [0x41c290]
call fcn.0041d720
mov edx, dword [ebp - 4]
mov dword [edx + 0x74], eax
mov eax, dword [ebp - 4]
call fcn.00451200
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x451088
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x451088
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x451088
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x450942
call fcn.00403914
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x450e40
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd98
push ebx
xor edx, edx
mov dword [ebp - 0x268], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45100b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x450fe9
mov dl, 1
mov eax, dword [0x410444]
call fcn.0040351c
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004043c8
lea eax, [ebp - 0x11c]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x450fd2
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
call fcn.0043c44c
test al, al
je 0x450fc6
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
mov dword [ebp - 0x264], eax
mov byte [ebp - 0x260], 0
lea ecx, [ebp - 0x264]
mov edx, 0x45101c
lea eax, [ebp - 0x25c]
call fcn.0040a1b4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x450fc6
xor eax, eax
push ebp
push 0x450fbf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], pe_nt_image_headers32
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x451054
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x450fa8
lea eax, [ebp - 0x268]
lea edx, [ebp - 0x21c]
mov ecx, pe_nt_image_headers32
call fcn.00404620
mov edx, dword [ebp - 0x268]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + eax*4 - 0x11c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x450fa8
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x21c]
mov ecx, pe_nt_image_headers32
call fcn.00404620
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450fc6
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x450eb5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov dl, 1
call fcn.00413bc8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451012
lea eax, [ebp - 0x268]
call fcn.004043c8
ret