joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f4eb
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea edi, [ecx + 4]
mov dword [ebp - 0xc], ecx
mov dword [ecx], 0x4160d4
xor edx, edx
xor eax, eax
mov ecx, edi
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x40f506
mov byte [edi + 0x100], dl
mov byte [edi + 0x101], dl
xor ebx, ebx
mov ecx, edi
mov dword [ebp - 8], 0x100
mov al, byte [ecx]
movzx esi, dl
mov edx, dword [ebp + 8]
mov byte [ebp - 1], al
movzx eax, al
movzx edx, byte [esi + edx]
add ebx, edx
add eax, ebx
mov ebx, 0x100
cdq
idiv ebx
movzx ebx, dl
mov al, byte [ebx + edi]
mov byte [ecx], al
mov al, byte [ebp - 1]
mov byte [ebx + edi], al
lea eax, [esi + 1]
cdq
idiv dword [ebp + 0xc]
inc ecx
dec dword [ebp - 8]
jne 0x40f527
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40f58d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
mov al, byte [ecx + 0x104]
mov dl, byte [ecx + 0x105]
jbe 0x40f631
push ebx
push esi
push edi
movzx edi, al
movzx ebx, dl
jmp 0x40f5bb
mov ebx, dword [ebp - 0xc]
lea eax, [edi + 1]
mov esi, 0x100
cdq
idiv esi
movzx edi, dl
mov al, byte [edi + ecx + 4]
mov byte [ebp - 2], dl
lea esi, [edi + ecx + 4]
mov byte [ebp - 1], al
movzx eax, al
add eax, ebx
mov ebx, 0x100
cdq
idiv ebx
mov ebx, dword [ebp - 8]
movzx eax, dl
mov dword [ebp - 0xc], eax
mov byte [ebp - 3], dl
mov dl, byte [eax + ecx + 4]
lea eax, [eax + ecx + 4]
mov byte [esi], dl
mov dl, byte [ebp - 1]
mov byte [eax], dl
mov eax, dword [ebp + 8]
add ebx, eax
movzx eax, byte [esi]
movzx edx, dl
add eax, edx
mov esi, 0x100
cdq
idiv esi
movzx eax, dl
mov al, byte [eax + ecx + 4]
xor byte [ebx], al
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jb 0x40f5b8
mov al, byte [ebp - 2]
mov dl, byte [ebp - 3]
pop edi
pop esi
pop ebx
push 1
mov byte [ecx + 0x104], al
mov byte [ecx + 0x105], dl
pop eax
leave
ret 8
Function at 0x403c94
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4296ac
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x403d14
arpl word [edx + esi], si
test byte [ecx], al
xchg edi, eax
or al, 0xf6
fistp dword [0xb9fde87b]
pushfd
test byte [edi + 0x19], bl
mov byte [0x1222ac06], al
loope 0x403ccb
cli
cli
cmpsd dword [esi], dword es:[edi]
adc esp, ecx
out dx, al
add al, 4
adc al, 0xe8
cli
sbb byte [edx + 0x79ea8f41], cl
push eax
sahf
pop esi
dec eax
inc ebx
sbb dword [esi + 0x73af585], 0x42298342
ljmp 0xe733
fbstp tbyte [edx + 0x1ddc782c]
movsd dword es:[edi], dword [esi]
mov al, byte [0x1f6835f6]
js 0x403d6b
adc byte [eax + 0x74], bl
test dword [edi + 0x48], esp
jl 0x403d81
cdq
arpl word [0xf6cead4c], cx
xchg ebp, eax
insb byte es:[edi], dx
mov edx, 0xc445e286
pop ebp
xor eax, 0x31c89cf3
mov al, byte [0x26279d13]
pop ss
pop ss
jg 0x403cd7
int3
pop edi
popal
popal
in eax, 0x88
les ecx, [ecx + 0x3bef6091]
inc eax
dec byte [edx + 0x62f739de]
adc edi, dword [ebx - 0x42]
sub edx, dword [esi]
push ss
cli
xor al, 0x48
sub al, 0x82
movsb byte es:[di], byte [si]
and eax, 0x4b770a8a
mov ebp, 0xdbbf42ec
pop esp
js 0x403dc3
in eax, 0x60
je 0x403d43
aad 0xbe
adc eax, 0xc5011cab
and dword [eax], ecx
push 0x30
loop 0x403de5
mov eax, dword [0x57fa4451]
cli
push edi
push ecx
adc eax, 0x74dbed4a
invalid
std
fisttp qword [esi + 0x1527cb59]
mov eax, dword [0xa218f28a]
movsb byte es:[edi], byte [esi]
jae 0x403daa
pop ecx
retf
sbb byte [edx + 0x56db73a4], ah
fist dword [esi + 0x63]
std
push esi
arpl bp, di
hlt
sub dword [esi], ebx
pop ebx
lock sbb byte [eax + 0xf], ah
mov cl, 0x9a
xchg ebp, eax
dec edx
dec ebp
sub edi, ebx
cmp dh, byte [edi - 0x2c]
jp 0x403d6d
js 0x403e0f
cdq
adc esp, ecx
mov esi, 0x560896a0
cmp dword [esi - 0x62552d82], edx
mov al, byte [0x39560896]
xchg esi, eax
jle 0x403dce
stosb byte es:[edi], al
popfd
add eax, 0x932c2c9a
and ebx, dword [esi + 0x3924d0ea]
rcl dword [ebx + ecx*8 - 0x40], cl
pop ebp
ja 0x403df4
in al, 0xb0
jo 0x403e25
mov al, 0x70
adc bl, byte [esi + 0x7422fb31]
push edx
cmp ch, byte [edx - 0x4d548713]
pop esi
sahf
xor ebx, edi
and dh, byte [edx + edx*2 + 0x3a]
stosb byte es:[edi], al
in eax, dx
js 0x403dc9
mov dl, 0x5e
scasb al, byte es:[edi]
or al, 0x2c
jnp 0x403dda
loopne 0x403dc0
push ecx
ljmp 0xd235
Function at 0x407dfc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x407e43
cmp edx, 0x10
jl 0x407e2f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x407e1c
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x407e43
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x407e3b
and edx, 3
cmp edx, 3
jne 0x407e57
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x407e5c
cmp edx, 2
jne 0x407e68
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x407e6d
cmp edx, 1
jne 0x407e73
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x4029ec
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 0x402a1b
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.00403e14
jmp 0x402a39
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402974
mov edi, eax
test ebx, ebx
je 0x402a39
cmp dword [esi], 0
je 0x402a39
dec ebx
jmp 0x402a22
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402dd8
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 0x402e70
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402e50
xor eax, eax
push ebp
push 0x402e49
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 0x402e8c
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 0x402e50
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 0x403ce0
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.004027d8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4b4049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403ca8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40621c
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 0x4063d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40627d
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4063f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4062ef
xor eax, eax
push ebp
push 0x4062e8
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]
call fcn.00406074
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4062d1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406414
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 0x4062ef
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 0x4063d0
cmp byte [ebp - 0xd], 0
jne 0x406331
cmp byte [ebp - 0x12], 0
je 0x4063d0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40634a
dec ebx
cmp byte [ebx], 0x2e
je 0x406359
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406349
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4063d0
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406386
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 0x4063d0
cmp byte [ebp - 0xd], 0
je 0x4063d0
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 0x4063d0
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 0x40be54
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 0x40be8d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403e14
jmp 0x40be96
mov eax, ebx
mov edx, esi
call fcn.00403d80
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40bea0
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 0x40bec1
mov al, byte [esp]
jmp 0x40bec3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x418c14
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 0x418c1a
ret

Function at 0x41b004
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 0x41b055
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41b03c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41b02c
jmp 0x41b055
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 0x41b03d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a2e0
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 [0x4b4788], 0
sete dl
or al, dl
jne 0x42a420
mov eax, dword [0x4b478c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4b4788]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x42a3ef
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x4b4788]
call fcn.00411400
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42a3e7
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x42a3e7
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x42a3e7
mov eax, dword [ebp - 0x14]
call fcn.004325f0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42a3e7
push ebp
call fcn.0042a29c
pop ecx
test al, al
jne 0x42a3e7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x42a3a3
mov eax, dword [ebp - 0x14]
call fcn.00430f7c
dec eax
jle 0x42a3e7
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.0040313c
cmp byte [ebp - 1], 0
je 0x42a3e7
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42a3e7
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4b478c]
call fcn.00429ae8
inc edi
dec esi
jne 0x42a336
mov eax, dword [0x4b478c]
cmp dword [eax + 8], 0
jle 0x42a407
mov eax, dword [0x4b478c]
call fcn.00429b78
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42a420
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042a104
pop ecx
test al, al
jne 0x42a420
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 0x42ff88
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 0x42ffb9
je 0x430013
sub eax, 7
je 0x42ffda
dec eax
je 0x430004
sub eax, 0x17
je 0x4300b8
jmp 0x4300f6
add eax, 0xffffff00
sub eax, 9
jb 0x4300a4
add eax, 0xffffff09
sub eax, 0xb
jb 0x43006c
jmp 0x4300f6
mov eax, ebx
call fcn.00442b64
mov edi, eax
test edi, edi
je 0x430156
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x43015f
jmp 0x430156
test byte [ebx + 0x44], 0x20
jne 0x43015f
jmp 0x430156
mov edx, esi
mov eax, ebx
call fcn.0042d588
cmp dword [esi + 0xc], 0xffffffff
jne 0x43015f
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00407e34
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0042c0bc
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.0042fe60
test eax, eax
je 0x43015f
mov dword [esi + 0xc], 1
jmp 0x43015f
mov edx, esi
mov eax, ebx
call fcn.0042fef4
test al, al
je 0x430156
cmp dword [esi + 0xc], 0
jne 0x43015f
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.004325f0
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x43015f
mov eax, ebx
call fcn.0042cc24
test al, al
jne 0x43015f
jmp 0x430156
mov eax, ebx
call fcn.004325f0
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x430156
cmp dword [0x4b1850], 0
je 0x430156
mov eax, dword [0x4b1850]
cmp ebx, dword [eax + 0x24]
jne 0x430156
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x4b1850]
call fcn.0042d4bc
jmp 0x430156
mov eax, dword [0x4b4750]
cmp byte [eax + 0x20], 0
je 0x430156
mov eax, dword [0x4b4750]
cmp dword [eax + 0x1c], 0
je 0x430156
mov eax, dword [esi]
mov edx, dword [0x4b4750]
cmp eax, dword [edx + 0x1c]
jne 0x430156
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.00442aa8
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.0040313c
jmp 0x43015f
mov edx, esi
mov eax, ebx
call fcn.0042d588
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430620
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 0x43063c
cmp dword [esi + 4], 0
je 0x430669
test byte [ebx + 0x45], 1
jne 0x43065b
mov eax, ebx
call fcn.0042f558
test eax, eax
jne 0x43065b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x430779
mov edx, esi
mov eax, ebx
call fcn.00430298
jmp 0x430779
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
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 0x430772
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004325f0
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.0042d4bc
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00430620
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 + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
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.004325f0
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430779
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 0x43a400
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.00403d2c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43a44f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403f5c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442880
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4b47e8
cmp dword [edi], 0
jne 0x4428fc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4b47e4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4b19e4
mov ecx, 2
call fcn.00402934
mov edx, 0x442858
lea eax, [esi + 5]
call fcn.00442878
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00442878
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 0x4428d1
mov dword [0x4b47e4], 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 0x442a18
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x442a68]
test si, 4
je 0x442a2c
or bl, 1
test si, 8
je 0x442a36
or bl, 4
test si, 1
je 0x442a40
or bl, 8
test si, 2
je 0x442a4a
or bl, 0x10
test si, 0x10
je 0x442a54
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x442a63
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x442a6c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x442aa4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x442a85
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x442a94
or bl, 4
test esi, 0x20000000
je 0x442a9f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x449544
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x449556
add esp, 0xfffffff0
call fcn.00403260
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00416b6c
mov eax, ebx
call fcn.004498a8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x40fab4]
call fcn.00402f30
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x40fab4]
call fcn.00402f30
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x40fab4]
call fcn.00402f30
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x40fab4]
call fcn.00402f30
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40fab4]
call fcn.00402f30
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, 0x449514
push eax
push 0
push 0
mov eax, dword [0x4b31d0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41813c]
call fcn.00419674
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x41813c]
call fcn.00419674
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x41813c]
call fcn.00419674
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.00449c88
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449ba4
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449ba4
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449ba4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x449665
call fcn.004032b8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret