joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409070
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x4090a1
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x4090a8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x4090d9
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x40bb40
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40bb88
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.0040461c
jmp 0x40bb93
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.00404588
mov esp, ebp
pop ebp
ret 4

Function at 0x40bb9c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bbca
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xa], al
jmp 0x40bbd0
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret
Function at 0x413ea8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindResourceA
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x413ede
push ebp
call fcn.00413e38
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LoadResource
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x413f04
push ebp
call fcn.00413e38
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SizeofResource
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
push eax
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.00413ac4
mov esp, ebp
pop ebp
ret 4

Function at 0x4192dc
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 0x4192e2
ret

Function at 0x41c2e8
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 0x41c339
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41c320
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41c310
jmp 0x41c339
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 0x41c321
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ec20
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 [0x480778], 0
sete al
or al, byte [ebp - 0x1d]
jne 0x42ed6f
mov eax, dword [0x48077c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x480778]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x42ed3e
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x480778]
call fcn.00411440
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42ed32
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x42ed32
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x42ed32
mov eax, dword [ebp - 0x14]
call fcn.00439690
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42ed32
push ebp
call fcn.0042ebd4
pop ecx
test al, al
jne 0x42ed32
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x42ecee
mov eax, dword [ebp - 0x14]
call fcn.004378a8
dec eax
jle 0x42ed32
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.00403998
cmp byte [ebp - 1], 0
je 0x42ed32
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x34]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42ed32
mov edx, dword [ebp - 0x14]
mov eax, dword [0x48077c]
call fcn.0042e148
inc dword [ebp - 0x1c]
dec dword [ebp - 0x24]
jne 0x42ec80
mov eax, dword [0x48077c]
cmp dword [eax + 8], 0
jle 0x42ed56
mov eax, dword [0x48077c]
call fcn.0042e1f4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42ed6f
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042ea10
pop ecx
test al, al
jne 0x42ed6f
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 0x436404
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 0x436438
je 0x43649b
sub eax, 7
je 0x436459
dec eax
je 0x436489
sub eax, 0x17
je 0x43655d
jmp 0x4365a7
add eax, 0xffffff00
sub eax, 9
jb 0x436548
add eax, 0xffffff09
sub eax, 0xb
jb 0x436501
jmp 0x4365a7
mov eax, dword [ebp - 0x14]
call fcn.0044b8f4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x436614
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x43661f
jmp 0x436614
mov eax, dword [ebp - 0x14]
test byte [eax + 0x44], 0x20
jne 0x43661f
jmp 0x436614
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.00432ec0
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xc], 0xffffffff
jne 0x43661f
push 0
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
call fcn.004079b4
lea edx, [ebp - 0x12c]
lea ecx, [ebp - 0x124]
mov eax, dword [ebp - 0x14]
call fcn.004311fc
lea edx, [ebp - 0x124]
xor ecx, ecx
mov eax, dword [ebp - 0x14]
call fcn.00436288
test eax, eax
je 0x43661f
mov eax, dword [ebp - 0x18]
mov dword [eax + 0xc], 1
jmp 0x43661f
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.00436344
test al, al
je 0x436614
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xc], 0
jne 0x43661f
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.00439690
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x43661f
mov eax, dword [ebp - 0x14]
call fcn.00432250
test al, al
jne 0x43661f
jmp 0x436614
mov eax, dword [ebp - 0x14]
call fcn.00439690
mov ebx, eax
call sub.user32.dll_GetCapture
cmp ebx, eax
jne 0x436614
cmp dword [0x47e794], 0
je 0x436614
mov eax, dword [0x47e794]
mov eax, dword [eax + 0x24]
cmp eax, dword [ebp - 0x14]
jne 0x436614
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x47e794]
call fcn.00432d74
jmp 0x436614
mov eax, dword [0x480740]
cmp byte [eax + 0x20], 0
je 0x436614
mov eax, dword [0x480740]
cmp dword [eax + 0x1c], 0
je 0x436614
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [0x480740]
cmp eax, dword [edx + 0x1c]
jne 0x436614
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.0044b810
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.00403998
jmp 0x43661f
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.00432ec0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x436c60
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 0x436c81
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x436cb6
mov eax, dword [ebp - 4]
test byte [eax + 0x45], 1
jne 0x436ca6
mov eax, dword [ebp - 4]
call fcn.00435718
test eax, eax
jne 0x436ca6
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x436de0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004367dc
jmp 0x436de0
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 0x436dd9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 4]
call fcn.00439690
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.00432d74
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.00436c60
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.00439690
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x436de0
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 0x43eb04
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [0x47f8f4]
cmp byte [eax + 8], 0
je 0x43ec76
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x43ec6f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x480784], 0
jne 0x43eb5d
push 0x43ec7c
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [ebp - 4], eax
push 0x43ec84
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x480784], eax
cmp dword [0x47e7f4], 0
jne 0x43ec58
push 0x43ec94
call sub.kernel32.dll_LoadLibraryA
mov dword [0x47e7f4], eax
cmp dword [0x47e7f4], 0
je 0x43ec58
push 0x43eca0
mov eax, dword [0x47e7f4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x480788], eax
push 0x43ecb0
mov eax, dword [0x47e7f4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48078c], eax
push 0x43ecc4
mov eax, dword [0x47e7f4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x480790], eax
push 0x43ecdc
mov eax, dword [0x47e7f4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x480794], eax
push 0x43ecf4
mov eax, dword [0x47e7f4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x480798], eax
push 0x43ed08
mov eax, dword [0x47e7f4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48079c], eax
push 0x43ed20
mov eax, dword [0x47e7f4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4807a0], eax
push 0x43ed38
mov eax, dword [0x47e7f4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4807a4], eax
push 0x43ed54
mov eax, dword [0x47e7f4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4807a8], eax
push 0x43ed60
mov eax, dword [0x47e7f4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4807ac], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ec76
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ecx
pop ecx
pop ebp
ret

Function at 0x442774
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.00404534
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 0x4427cd
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.0040478c
mov esp, ebp
pop ebp
ret
Function at 0x44b564
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
cmp dword [0x4807d8], 0
jne 0x44b611
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [0x4807d4]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x47e928
mov ecx, 2
call fcn.00403110
mov edx, 0x44b520
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0044b540
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.0044b540
mov edx, dword [ebp - 0xc]
mov dword [edx + 1], eax
mov eax, dword [0x4807d8]
mov edx, dword [ebp - 0xc]
mov dword [edx + 5], eax
mov eax, dword [ebp - 0xc]
mov dword [0x4807d8], eax
add dword [ebp - 0xc], 0xd
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x44b5cb
mov eax, dword [ebp - 8]
mov dword [0x4807d4], eax
mov eax, dword [0x4807d8]
mov dword [ebp - 4], eax
mov eax, dword [0x4807d8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 5]
mov dword [0x4807d8], 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 0x44b76c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov word [ebp - 2], ax
mov al, byte [0x44b7c4]
mov byte [ebp - 3], al
test byte [ebp - 2], 4
je 0x44b786
or byte [ebp - 3], 1
test byte [ebp - 2], 8
je 0x44b790
or byte [ebp - 3], 4
test byte [ebp - 2], 1
je 0x44b79a
or byte [ebp - 3], 8
test byte [ebp - 2], 2
je 0x44b7a4
or byte [ebp - 3], 0x10
test byte [ebp - 2], 0x10
je 0x44b7ae
or byte [ebp - 3], 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b7be
or byte [ebp - 3], 2
mov al, byte [ebp - 3]
pop ecx
pop ebp
ret

Function at 0x44b7c8
Capabilities:
Log keystrokes via polling

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
test dl, dl
je 0x45316e
add esp, 0xfffffff0
call fcn.00403af0
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.00416d20
mov eax, dword [ebp - 4]
call fcn.00453670
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
mov dl, 1
mov eax, dword [0x40fb24]
call fcn.00403738
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov dl, 1
mov eax, dword [0x40fb24]
call fcn.00403738
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov dl, 1
mov eax, dword [0x40fb24]
call fcn.00403738
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], eax
mov dl, 1
mov eax, dword [0x40fb24]
call fcn.00403738
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40fb24]
call fcn.00403738
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, 0x453114
push eax
push 0
push 0
mov eax, dword [0x47f74c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41886c]
call fcn.00419ee0
mov edx, dword [ebp - 4]
mov dword [edx + 0x78], eax
mov dl, 1
mov eax, dword [0x41886c]
call fcn.00419ee0
mov edx, dword [ebp - 4]
mov dword [edx + 0x7c], eax
mov dl, 1
mov eax, dword [0x41886c]
call fcn.00419ee0
mov edx, dword [ebp - 4]
mov dword [edx + 0x74], eax
mov eax, dword [ebp - 4]
call fcn.00453b80
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x453a08
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x453a08
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x453a08
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x4532c2
call fcn.00403b48
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4537c0
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 0x45398b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x453969
mov dl, 1
mov eax, dword [0x40fe24]
call fcn.00403738
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00404534
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 0x453952
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.0043eea4
test al, al
je 0x453946
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, 0x45399c
lea eax, [ebp - 0x25c]
call fcn.00409d50
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x453946
xor eax, eax
push ebp
push 0x45393f
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 0x4539d4
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x453928
lea eax, [ebp - 0x268]
lea edx, [ebp - 0x21c]
mov ecx, pe_nt_image_headers32
call fcn.0040478c
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 0x453928
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x21c]
mov ecx, pe_nt_image_headers32
call fcn.0040478c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453946
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x453835
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.004135a8
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 0x453992
lea eax, [ebp - 0x268]
call fcn.00404534
ret