joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403fa0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
xor edx, edx
mov al, byte [esi]
mov dl, byte [esi + 1]
xor ecx, ecx
cmp al, 0xa
je 0x403f4b
cmp al, 0xb
je 0x403f4b
cmp al, 0xc
je 0x403f55
cmp al, 0xd
je 0x403f68
cmp al, 0xe
je 0x403f86
cmp al, 0xf
je 0x403f4b
cmp al, 0x11
je 0x403f4b
mov al, 2
pop edi
pop esi
pop ebx
jmp fcn.0040270c
mov dword [ebx], ecx
add ebx, 4
dec edi
jg 0x403f4b
jmp 0x403f9a
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
add ebx, 0x10
dec edi
jg 0x403f55
jmp 0x403f9a
push ebp
mov ebp, edx
mov edx, dword [esi + ebp + 0xa]
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov ecx, dword [esi + ebp + 6]
mov edx, dword [edx]
call 0x403f0c
dec edi
jg 0x403f6b
pop ebp
jmp 0x403f9a
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.00403ee0
dec edi
jg 0x403f89
pop ebp
pop edi
pop esi
pop ebx
ret
mov ecx, 1
jmp 0x403f0c

Function at 0x403fd8
Capabilities:
Terminate process

Disassembly:
push eax
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
xor edx, edx
mov al, byte [esi]
mov dl, byte [esi + 1]
cmp al, 0xa
je 0x40401f
cmp al, 0xb
je 0x404039
cmp al, 0xc
je 0x404050
cmp al, 0xd
je 0x40405f
cmp al, 0xe
je 0x40407d
cmp al, 0xf
je 0x404093
cmp al, 0x11
je 0x4040a2
pop edi
pop esi
pop ebx
pop eax
mov al, 2
jmp fcn.0040270c
cmp ecx, 1
mov eax, ebx
jg 0x404030
call fcn.00403794
jmp 0x4040b1
mov edx, ecx
call fcn.004037b8
jmp 0x4040b1
cmp ecx, 1
mov eax, ebx
jg 0x404047
call fcn.00403d60
jmp 0x4040b1
mov edx, ecx
call fcn.00403d78
jmp 0x4040b1
mov eax, ebx
add ebx, 0x10
call fcn.00404810
dec edi
jg 0x404050
jmp 0x4040b1
push ebp
mov ebp, edx
mov edx, dword [esi + ebp + 0xa]
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov ecx, dword [esi + ebp + 6]
mov edx, dword [edx]
call fcn.00403fd8
dec edi
jg 0x404062
pop ebp
jmp 0x4040b1
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.00403fac
dec edi
jg 0x404080
pop ebp
jmp 0x4040b1
mov eax, ebx
add ebx, 4
call fcn.00404e68
dec edi
jg 0x404093
jmp 0x4040b1
mov eax, ebx
mov edx, esi
add ebx, 4
call fcn.00404a04
dec edi
jg 0x4040a2
pop edi
pop esi
pop ebx
pop eax
ret

Function at 0x4040b8
Capabilities:
Terminate process

Disassembly:
mov ecx, 1
jmp fcn.00403fd8
Function at 0x4040c4
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov esi, edx
xor eax, eax
mov al, byte [ecx + 1]
lea edi, [ecx + eax + 0xa]
mov ebp, dword [edi - 4]
xor eax, eax
mov ecx, dword [edi - 8]
push ecx
mov ecx, dword [edi + 4]
sub ecx, eax
jle 0x4040f0
mov edx, eax
add eax, esi
add edx, ebx
call fcn.00402798
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov edx, dword [edx]
mov cl, byte [edx]
cmp cl, 0xa
je 0x40412f
cmp cl, 0xb
je 0x404140
cmp cl, 0xc
je 0x404151
cmp cl, 0xd
je 0x404162
cmp cl, 0xe
je 0x404182
cmp cl, 0xf
je 0x40419b
cmp cl, 0x11
je 0x4041ac
mov al, 2
pop ebp
pop edi
pop esi
pop ebx
jmp fcn.0040270c
mov edx, dword [esi + eax]
add eax, ebx
call fcn.004037e8
mov eax, 4
jmp 0x4041bd
mov edx, dword [esi + eax]
add eax, ebx
call fcn.00403d9c
mov eax, 4
jmp 0x4041bd
lea edx, [esi + eax]
add eax, ebx
call fcn.0040445c
mov eax, 0x10
jmp 0x4041bd
xor ecx, ecx
mov cl, byte [edx + 1]
push dword [edx + ecx + 2]
push dword [edx + ecx + 6]
mov ecx, dword [edx + ecx + 0xa]
mov ecx, dword [ecx]
lea edx, [esi + eax]
add eax, ebx
call fcn.004041e0
pop eax
jmp 0x4041bd
xor ecx, ecx
mov cl, byte [edx + 1]
mov ecx, dword [edx + ecx + 2]
push ecx
mov ecx, edx
lea edx, [esi + eax]
add eax, ebx
call fcn.004040c4
pop eax
jmp 0x4041bd
mov edx, dword [esi + eax]
add eax, ebx
call fcn.00404e80
mov eax, 4
jmp 0x4041bd
mov ecx, edx
mov edx, dword [esi + eax]
add eax, ebx
call fcn.00404a40
mov eax, 4
add eax, dword [edi + 4]
add edi, 8
dec ebp
jne 0x4040de
pop ecx
sub ecx, eax
jle 0x4041d9
lea edx, [ebx + eax]
add eax, esi
call fcn.00402798
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4041e0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov esi, edx
mov edi, ecx
mov ebp, dword [esp + 0x14]
mov cl, byte [edi]
cmp cl, 0xa
je 0x404226
cmp cl, 0xb
je 0x40423d
cmp cl, 0xc
je 0x404251
cmp cl, 0xd
je 0x404265
cmp cl, 0xe
je 0x404286
cmp cl, 0xf
je 0x4042a3
cmp cl, 0x11
je 0x4042b7
mov al, 2
pop ebp
pop edi
pop esi
pop ebx
jmp fcn.0040270c
mov eax, ebx
mov edx, dword [esi]
call fcn.004037e8
add ebx, 4
add esi, 4
dec ebp
jne 0x404226
jmp 0x4042cb
mov eax, ebx
mov edx, dword [esi]
call fcn.00403d9c
add ebx, 4
add esi, 4
dec ebp
jne 0x40423d
jmp 0x4042cb
mov eax, ebx
mov edx, esi
call fcn.0040445c
add ebx, 0x10
add esi, 0x10
dec ebp
jne 0x404251
jmp 0x4042cb
xor ecx, ecx
mov cl, byte [edi + 1]
lea edi, [edi + ecx + 2]
mov eax, ebx
mov edx, esi
mov ecx, dword [edi + 8]
push dword [edi + 4]
call fcn.004041e0
add ebx, dword [edi]
add esi, dword [edi]
dec ebp
jne 0x40426e
jmp 0x4042cb
mov eax, ebx
mov edx, esi
mov ecx, edi
call fcn.004040c4
xor eax, eax
mov al, byte [edi + 1]
add ebx, dword [edi + eax + 2]
add esi, dword [edi + eax + 2]
dec ebp
jne 0x404286
jmp 0x4042cb
mov eax, ebx
mov edx, dword [esi]
call fcn.00404e80
add ebx, 4
add esi, 4
dec ebp
jne 0x4042a3
jmp 0x4042cb
mov eax, ebx
mov edx, dword [esi]
mov ecx, edi
call fcn.00404a40
add ebx, 4
add esi, 4
dec ebp
jne 0x4042b7
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40445c
Capabilities:
Terminate process

Disassembly:
mov al, 0x10
jmp fcn.0040270c
cmp eax, edx
je 0x4044f3
cmp word [eax], 8
jb 0x404494
push eax
push edx
cmp word [eax], 0x100
je 0x40448a
cmp word [eax], 0x101
je 0x404482
push eax
call sub.oleaut32.dll_VariantClear
jmp 0x404492
call dword [0x43d3e4]
jmp 0x404492
add eax, 8
call fcn.00403794
pop edx
pop eax
cmp word [edx], 8
jae 0x4044ab
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
ret
cmp word [edx], 0x100
je 0x4044c6
cmp word [edx], 0x101
jne 0x4044df
push eax
call 0x40449a
pop eax
jmp dword [0x43d3ec]
mov edx, dword [edx + 8]
or edx, edx
je 0x4044d6
mov ecx, dword [edx - 8]
inc ecx
jle 0x4044d6
mov dword [edx - 8], ecx
mov word [eax], pe_nt_image_headers32
mov dword [eax + 8], edx
ret
mov word [eax], 0
push edx
push eax
call sub.oleaut32.dll_VariantCopyInd
or eax, eax
jne 0x404410
ret
Function at 0x404abc
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 0x404c74
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404b1d
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404c90
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404b8a
xor eax, eax
push ebp
push 0x404b83
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 0x404b6c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404cb0
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 0x404b8a
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 0x404c6b
cmp byte [ebp - 0xd], 0
jne 0x404bcc
cmp byte [ebp - 0x12], 0
je 0x404c6b
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404be5
dec ebx
cmp byte [ebx], 0x2e
je 0x404bf4
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404be4
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404c6b
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404c21
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 0x404c6b
cmp byte [ebp - 0xd], 0
je 0x404c6b
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 0x404c6b
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 0x408034
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 0x40806d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403878
jmp 0x408076
mov eax, ebx
mov edx, esi
call fcn.0040382c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408080
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 0x4080a1
mov al, byte [esp]
jmp 0x4080a3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x412fdc
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 0x412fe2
ret

Function at 0x415400
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 0x415451
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x415438
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x415428
jmp 0x415451
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 0x415439
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41c63c
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 [0x43d758], 0
sete dl
or al, dl
jne 0x41c780
mov eax, dword [0x43d75c]
mov bx, 0xffff
call fcn.00402de8
mov eax, dword [0x43d758]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x41c74f
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x43d758]
call fcn.0040c9b4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x41c747
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x16c], 0
je 0x41c747
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x41c747
mov eax, dword [ebp - 0x10]
call fcn.004243e8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x41c747
push ebp
call fcn.0041c5f8
pop ecx
test al, al
jne 0x41c747
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x8c]
cmp eax, dword [ebp - 0x10]
jne 0x41c703
mov eax, dword [ebp - 0x10]
call fcn.00422d2c
dec eax
jle 0x41c747
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.00402de8
cmp byte [ebp - 0x15], 0
je 0x41c747
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x41c747
mov edx, dword [ebp - 0x10]
mov eax, dword [0x43d75c]
call fcn.0041bea8
inc edi
dec esi
jne 0x41c696
mov eax, dword [0x43d75c]
cmp dword [eax + 8], 0
jle 0x41c767
mov eax, dword [0x43d75c]
call fcn.0041bf38
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41c780
push ebp
mov eax, dword [ebp - 0x14]
call fcn.0041c4b0
pop ecx
test al, al
jne 0x41c780
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 0x421eb8
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 0x421ee9
je 0x421f43
sub eax, 7
je 0x421f0a
dec eax
je 0x421f34
sub eax, 0x17
je 0x421fc4
jmp 0x422002
add eax, 0xffffff00
sub eax, 9
jb 0x421fb0
add eax, 0xffffff09
sub eax, 0xb
jb 0x421f9a
jmp 0x422002
mov eax, ebx
call fcn.00431f44
mov edi, eax
test edi, edi
je 0x422062
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xc8]
test al, al
je 0x42206b
jmp 0x422062
test byte [ebx + 0x44], 0x20
jne 0x42206b
jmp 0x422062
mov edx, esi
mov eax, ebx
call fcn.0041f874
cmp dword [esi + 0xc], 0xffffffff
jne 0x42206b
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00406488
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0041e334
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00421d68
test eax, eax
je 0x42206b
mov dword [esi + 0xc], 1
jmp 0x42206b
mov edx, esi
mov eax, ebx
call fcn.00421e2c
test al, al
jne 0x42206b
jmp 0x422062
mov eax, ebx
call fcn.0041eeec
test al, al
jne 0x42206b
jmp 0x422062
mov eax, ebx
call fcn.004243e8
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x422062
cmp dword [0x43c678], 0
je 0x422062
mov eax, dword [0x43c678]
cmp ebx, dword [eax + 0x24]
jne 0x422062
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x43c678]
call fcn.0041f790
jmp 0x422062
mov eax, dword [0x43d720]
cmp byte [eax + 0x20], 0
je 0x422062
mov eax, dword [0x43d720]
cmp dword [eax + 0x1c], 0
je 0x422062
mov eax, dword [esi]
mov edx, dword [0x43d720]
cmp eax, dword [edx + 0x1c]
jne 0x422062
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.00431e58
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.00402de8
jmp 0x42206b
mov edx, esi
mov eax, ebx
call fcn.0041f874
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4224fc
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 0x422518
cmp dword [esi + 4], 0
je 0x422545
test byte [ebx + 0x45], 1
jne 0x422537
mov eax, ebx
call fcn.004215dc
test eax, eax
jne 0x422537
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x422655
mov edx, esi
mov eax, ebx
call fcn.00422174
jmp 0x422655
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 0x42264e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004243e8
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.0041f790
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004224fc
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.004243e8
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422655
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 0x431c28
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x43d7d4
cmp dword [edi], 0
jne 0x431ca4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x43d7d0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x43c804
mov ecx, 2
call fcn.00402798
mov edx, 0x431c00
lea eax, [esi + 5]
call fcn.00431c20
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00431c20
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 0x431c79
mov dword [0x43d7d0], 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 0x431dc8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x431e18]
test si, 4
je 0x431ddc
or bl, 1
test si, 8
je 0x431de6
or bl, 4
test si, 1
je 0x431df0
or bl, 8
test si, 2
je 0x431dfa
or bl, 0x10
test si, 0x10
je 0x431e04
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x431e13
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x431e1c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x431e54]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x431e35
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x431e44
or bl, 4
test esi, 0x20000000
je 0x431e4f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4384f8
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 0x43869d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40b690]
call fcn.00402bdc
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403794
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 0x438673
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.00428900
test al, al
je 0x438666
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, 0x4386ac
lea eax, [ebp - 0x254]
call fcn.00407ea4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x438666
xor eax, eax
push ebp
push 0x43865f
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 0x4386e4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x438648
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004039c0
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 0x438648
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004039c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438666
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x438569
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040e520
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4386a4
lea eax, [ebp - 0x260]
call fcn.00403794
ret

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

Disassembly:
push ecx
mov eax, dword [0x43d7a4]
cmp byte [eax + 0x8d], 0
jne 0x438eb1
cmp dword [0x43d7e0], 0
jne 0x438e72
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x438dfc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x43d7e0], eax
cmp dword [0x43d7dc], 0
jne 0x438e8d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x43d7dc], eax
cmp dword [0x43d7e4], 0
jne 0x438eb1
push esp
push 0
push 0
push 0x438da0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x43d7e4], eax
pop edx
ret