joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4331ec
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4333d5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, 0x4333ec
call fcn.004150d4
test eax, eax
jl 0x43322a
neg eax
mov edx, dword [0x437050]
mov dword [edx], eax
call sub.comctl32.dll_InitCommonControls
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x28
call fcn.00402f60
mov dword [ebp - 0x50], 0x433070
mov eax, dword [0x438660]
mov dword [ebp - 0x44], eax
mov eax, dword [0x436ebc]
call fcn.00404b5c
mov dword [ebp - 0x30], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x3c], eax
push 0x4333f8
mov eax, dword [0x438660]
push eax
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x54], 8
lea eax, [ebp - 0x54]
push eax
call sub.user32.dll_RegisterClassA
mov esi, 0x1ec
mov edi, 0x6e
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
mov edx, edi
mov eax, esi
call fcn.004161d8
mov dword [ebp - 0xc], 0x2c80000
lea edx, [ebp - 0x58]
xor eax, eax
call fcn.00414864
mov ecx, dword [ebp - 0x58]
mov dl, 1
mov eax, dword [0x425350]
call fcn.00425b34
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x43340c
mov edx, 0x433430
mov eax, ebx
call fcn.004261e4
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
push esi
push edi
push 0
push 0
mov eax, dword [0x438660]
push eax
push 0
mov eax, dword [ebp - 0x10]
call fcn.00404b5c
push eax
mov eax, dword [0x436ebc]
call fcn.00404b5c
mov edx, eax
xor eax, eax
pop ecx
call fcn.00406e74
mov edx, dword [0x436f38]
mov dword [edx], eax
lea edx, [ebp - 0x5c]
mov eax, ebx
call fcn.004263e8
mov eax, dword [ebp - 0x5c]
push eax
mov eax, ebx
call fcn.004262f0
push eax
mov eax, ebx
call fcn.00426368
mov edx, eax
pop ecx
pop eax
call fcn.004198f4
mov eax, dword [0x436f38]
cmp dword [eax], 0
je 0x43338b
push 0
mov eax, dword [0x436f38]
mov eax, dword [eax]
push eax
call sub.user32.dll_ShowWindow
jmp 0x433378
lea eax, [ebp - 0x2c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x2c]
push eax
call sub.user32.dll_DispatchMessageA
cmp byte [0x436ec4], 0
jne 0x43338b
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call sub.user32.dll_GetMessageA
test eax, eax
jne 0x43335d
push 1
mov eax, dword [0x436f38]
mov eax, dword [eax]
push eax
call sub.user32.dll_KillTimer
mov al, 1
call fcn.00420ff8
call fcn.00420ebc
xor edx, edx
mov eax, 0x2b
call fcn.00421ce8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4333dc
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.004046c0
lea eax, [ebp - 0x10]
call fcn.0040469c
ret
Function at 0x433668
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x433670
xor eax, eax
push ebp
push 0x43377c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
xor eax, eax
call fcn.004029a4
lea eax, [ebp - 0x10]
call fcn.0042b460
push dword [ebp - 0x10]
push 0x433790
push 0x43379c
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00408a9c
push dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 4
call fcn.00404a1c
push 0
mov eax, dword [ebp - 8]
call fcn.00404b5c
push eax
mov eax, dword [ebp - 4]
call fcn.00404b5c
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x18]
call fcn.00414d08
push dword [ebp - 0x18]
push 0x4337a8
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.004029a4
push dword [ebp - 0x1c]
push 0x4337d0
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00404a1c
push dword [ebp - 0xc]
push 0x4337e0
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.004029a4
push dword [ebp - 0x20]
push 0x4337f8
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00404a1c
push 0
push dword [ebp - 8]
push 0x433804
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00408110
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404a1c
mov eax, dword [ebp - 0x24]
call fcn.00404b5c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433783
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.004046c0
ret
Function at 0x4029d0
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 0x4029ff
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.00403cdc
jmp 0x402a1d
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402958
mov edi, eax
test ebx, ebx
je 0x402a1d
cmp dword [esi], 0
je 0x402a1d
dec ebx
jmp 0x402a06
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402c88
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x4e7044], 0x8088405
inc edx
mov dword [0x4e7044], edx
mul edx
mov eax, edx
ret

Function at 0x402de0
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 0x402e78
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402e58
xor eax, eax
push ebp
push 0x402e51
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 0x402e94
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 0x402e58
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 0x42c9a8
Capabilities:
Open clipboard

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 4], 0
jne 0x42c9fc
mov eax, dword [0x4e6268]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebx + 8], eax
test eax, eax
jne 0x42c9d4
push ebx
push 0x42ca04
call fcn.00447b34
mov dword [ebx + 8], eax
mov byte [ebx + 0xc], 1
mov eax, dword [ebx + 8]
push eax
call sub.user32.dll_OpenClipboard
test eax, eax
jne 0x42c9f8
mov ecx, dword [0x4e5fec]
mov dl, 1
mov eax, dword [0x4082ac]
call fcn.0040c23c
call fcn.004036c4
mov byte [ebx + 0xd], 0
inc dword [ebx + 4]
pop ebx
ret

Function at 0x42ca24
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0042c9a8
xor edx, edx
push ebp
push 0x42caf6
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x42cac8
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
xor edx, edx
push ebp
push 0x42cab7
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.00402918
mov eax, dword [ebp - 4]
call fcn.0042c960
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cabe
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret

Function at 0x42cb08
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042c9a8
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42cb7a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x42cb4e
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.00403dac
jmp 0x42cb55
mov eax, ebx
call fcn.00403bf4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cb81
cmp dword [ebp - 8], 0
je 0x42cb71
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 4]
call fcn.0042c97c
ret
Function at 0x42cbb0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042c9a8
xor edx, edx
push ebp
push 0x42cc52
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x42cc25
mov edx, ebx
mov eax, dword [0x4174f8]
call fcn.0041bd78
test al, al
je 0x42cc15
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.0041bc88
call fcn.00403764
jmp 0x42cc59
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x42cbe0
mov ecx, dword [0x4e6060]
mov dl, 1
mov eax, dword [0x4082ac]
call fcn.0040c23c
call fcn.004036c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cc59
mov eax, dword [ebp - 4]
call fcn.0042c97c
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x42cc60
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042c9a8
xor eax, eax
push ebp
push 0x42ccb8
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ccbf
mov eax, dword [ebp - 4]
call fcn.0042c97c
ret

Function at 0x42ccc8
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042c9a8
xor edx, edx
push ebp
push 0x42cd1d
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cd24
mov eax, dword [ebp - 4]
call fcn.0042c97c
ret

Function at 0x42cd94
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042c9a8
xor eax, eax
push ebp
push 0x42ce09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0042c960
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.0041bd4c
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x42cdf3
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ce10
mov eax, dword [ebp - 4]
call fcn.0042c97c
ret
Function at 0x42ce18
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042c9a8
xor eax, eax
push ebp
push 0x42ce8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0042c960
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x5c]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x42ce77
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ce94
mov eax, dword [ebp - 4]
call fcn.0042c97c
ret

Function at 0x42fc08
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 [0x4e7784], 0
sete dl
or al, dl
jne 0x42fd48
mov eax, dword [0x4e7788]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4e7784]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x42fd17
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x4e7784]
call fcn.00410ef8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42fd0f
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x42fd0f
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x42fd0f
mov eax, dword [ebp - 0x14]
call fcn.00437f60
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42fd0f
push ebp
call fcn.0042fbc4
pop ecx
test al, al
jne 0x42fd0f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x42fccb
mov eax, dword [ebp - 0x14]
call fcn.004368b4
dec eax
jle 0x42fd0f
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.00403148
cmp byte [ebp - 1], 0
je 0x42fd0f
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42fd0f
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4e7788]
call fcn.0042f410
inc edi
dec esi
jne 0x42fc5e
mov eax, dword [0x4e7788]
cmp dword [eax + 8], 0
jle 0x42fd2f
mov eax, dword [0x4e7788]
call fcn.0042f4a0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42fd48
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042fa2c
pop ecx
test al, al
jne 0x42fd48
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 0x4358c0
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 0x4358f1
je 0x43594b
sub eax, 7
je 0x435912
dec eax
je 0x43593c
sub eax, 0x17
je 0x4359f0
jmp 0x435a2e
add eax, 0xffffff00
sub eax, 9
jb 0x4359dc
add eax, 0xffffff09
sub eax, 0xb
jb 0x4359a4
jmp 0x435a2e
mov eax, ebx
call fcn.00447d5c
mov edi, eax
test edi, edi
je 0x435a8e
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x435a97
jmp 0x435a8e
test byte [ebx + 0x44], 0x20
jne 0x435a97
jmp 0x435a8e
mov edx, esi
mov eax, ebx
call fcn.00432ec0
cmp dword [esi + 0xc], 0xffffffff
jne 0x435a97
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00407dec
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.004319e4
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00435798
test eax, eax
je 0x435a97
mov dword [esi + 0xc], 1
jmp 0x435a97
mov edx, esi
mov eax, ebx
call fcn.0043582c
test al, al
je 0x435a8e
cmp dword [esi + 0xc], 0
jne 0x435a97
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.00437f60
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x435a97
mov eax, ebx
call fcn.0043255c
test al, al
jne 0x435a97
jmp 0x435a8e
mov eax, ebx
call fcn.00437f60
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x435a8e
cmp dword [0x4e4858], 0
je 0x435a8e
mov eax, dword [0x4e4858]
cmp ebx, dword [eax + 0x24]
jne 0x435a8e
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x4e4858]
call fcn.00432df4
jmp 0x435a8e
mov eax, dword [0x4e774c]
cmp byte [eax + 0x20], 0
je 0x435a8e
mov eax, dword [0x4e774c]
cmp dword [eax + 0x1c], 0
je 0x435a8e
mov eax, dword [esi]
mov edx, dword [0x4e774c]
cmp eax, dword [edx + 0x1c]
jne 0x435a8e
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.00447ca0
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.00403148
jmp 0x435a97
mov edx, esi
mov eax, ebx
call fcn.00432ec0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x447a78
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4e77e4
cmp dword [edi], 0
jne 0x447af4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4e77e0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4e49ec
mov ecx, 2
call fcn.00402918
mov edx, 0x447a50
lea eax, [esi + 5]
call fcn.00447a70
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00447a70
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 0x447ac9
mov dword [0x4e77e0], 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 0x447c10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x447c60]
test si, 4
je 0x447c24
or bl, 1
test si, 8
je 0x447c2e
or bl, 4
test si, 1
je 0x447c38
or bl, 8
test si, 2
je 0x447c42
or bl, 0x10
test si, 0x10
je 0x447c4c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447c5b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x447c64
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x447c9c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447c7d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447c8c
or bl, 4
test esi, 0x20000000
je 0x447c97
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44decc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44dede
add esp, 0xfffffff0
call fcn.0040326c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00415a84
mov eax, ebx
call fcn.0044e218
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x40f834]
call fcn.00402f3c
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x40f834]
call fcn.00402f3c
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x40f834]
call fcn.00402f3c
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x40f834]
call fcn.00402f3c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40f834]
call fcn.00402f3c
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, 0x44a9bc
push eax
push 0
push 0
mov eax, dword [0x4e61e4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x416f4c]
call fcn.00418524
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x416f4c]
call fcn.00418524
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x416f4c]
call fcn.00418524
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.0044e688
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e55c
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e55c
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e55c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44dfed
call fcn.004032c4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44e340
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 0x44e4eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x44e4cc
mov dl, 1
mov eax, dword [0x40fb34]
call fcn.00402f3c
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403bf4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44e4bb
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.0043c52c
test al, al
je 0x44e4ae
lea eax, [ebp - 0xc]
push eax
push 0x20019
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, 0x44e4fc
lea eax, [ebp - 0x254]
call fcn.00409e78
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44e4ae
xor eax, eax
push ebp
push 0x44e4a7
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 0x44e534
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44e490
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403e24
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 0x44e490
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403e24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e4ae
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44e3b1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.00412a1c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e4f2
lea eax, [ebp - 0x260]
call fcn.00403bf4
ret

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

Disassembly:
push ecx
mov eax, dword [0x4e77d4]
cmp byte [eax + 0x95], 0
jne 0x44edf1
cmp dword [0x4e77f0], 0
jne 0x44edb2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44ed3c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4e77f0], eax
cmp dword [0x4e77ec], 0
jne 0x44edcd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4e77ec], eax
cmp dword [0x4e77f4], 0
jne 0x44edf1
push esp
push 0
push 0
push 0x44ece0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4e77f4], eax
pop edx
ret