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

Disassembly:
push ebx
mov ebx, edx
mov eax, dword [eax]
call fcn.00402ea0
mov eax, ebx
pop ebx
jne 0x402efd
pop ecx
jmp 0x4028cc
ret

Function at 0x403764
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x4424a0
mov esi, 0x442034
mov edi, 0x442038
cmp byte [ebx + 0x24], 0
jne 0x403793
cmp dword [edi], 0
je 0x403793
mov edx, dword [edi]
mov eax, edx
xor edx, edx
mov dword [edi], edx
mov ebp, eax
call ebp
cmp dword [edi], 0
jne 0x403782
cmp dword [0x44203c], 0
je 0x4037da
call fcn.004036e0
cmp byte [0x442044], 0
je 0x4037c0
mov edx, 0x441020
mov eax, 0x442218
call fcn.004054c0
call fcn.00405443
jmp 0x4037d3
push 0
push 0x441040
push 0x441020
push 0
call sub.user32.dll_MessageBoxA
xor eax, eax
mov dword [0x44203c], eax
cmp byte [ebx + 0x24], 2
jne 0x4037ea
cmp dword [esi], 0
jne 0x4037ea
xor eax, eax
mov dword [ebx + 0xc], eax
call fcn.004035b4
cmp byte [ebx + 0x24], 1
jbe 0x4037fa
cmp dword [esi], 0
je 0x403817
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x403817
call fcn.00404ec4
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0x10]
cmp edx, dword [eax + 4]
je 0x403817
push edx
call sub.kernel32.dll_FreeLibrary
call fcn.0040358c
cmp byte [ebx + 0x24], 1
jne 0x403825
call dword [ebx + 0x28]
cmp byte [ebx + 0x24], 0
je 0x403830
call fcn.00403730
cmp dword [ebx], 0
jne 0x40383d
mov eax, dword [esi]
push eax
call sub.kernel32.dll_ExitProcess
mov eax, dword [ebx]
push esi
mov esi, eax
mov edi, ebx
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x4037da

Function at 0x403e9c
Capabilities:
Terminate process

Disassembly:
test edx, edx
je fcn.00403e60
mov ecx, dword [edx - 4]
shr ecx, 1
je fcn.00403e60
push ecx
push edx
push eax
call sub.oleaut32.dll_SysReAllocStringLen
test eax, eax
je 0x403e48
ret

Function at 0x403f44
Capabilities:
Terminate process

Disassembly:
mov al, 1
jmp fcn.00402724
test ecx, ecx
je fcn.00403e60
push eax
push ecx
push edx
call sub.oleaut32.dll_SysAllocStringLen
test eax, eax
je 0x403e48
pop edx
push dword [edx]
mov dword [edx], eax
call sub.oleaut32.dll_SysFreeString
ret

Function at 0x40400c
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 0x40404b
cmp al, 0xb
je 0x40404b
cmp al, 0xc
je 0x404055
cmp al, 0xd
je 0x404068
cmp al, 0xe
je 0x404086
cmp al, 0xf
je 0x40404b
cmp al, 0x11
je 0x40404b
mov al, 2
pop edi
pop esi
pop ebx
jmp fcn.00402724
mov dword [ebx], ecx
add ebx, 4
dec edi
jg 0x40404b
jmp 0x40409a
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 0x404055
jmp 0x40409a
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 0x40400c
dec edi
jg 0x40406b
pop ebp
jmp 0x40409a
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.00403fe0
dec edi
jg 0x404089
pop ebp
pop edi
pop esi
pop ebx
ret
mov ecx, 1
jmp 0x40400c
Function at 0x404580
Capabilities:
Terminate process

Disassembly:
mov al, 0x10
jmp fcn.00402724
cmp eax, edx
je 0x404617
cmp word [eax], 8
jb 0x4045b8
push eax
push edx
cmp word [eax], 0x100
je 0x4045ae
cmp word [eax], 0x101
je 0x4045a6
push eax
call sub.oleaut32.dll_VariantClear
jmp 0x4045b6
call dword [0x4423e4]
jmp 0x4045b6
add eax, 8
call fcn.00403894
pop edx
pop eax
cmp word [edx], 8
jae 0x4045cf
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 0x4045ea
cmp word [edx], 0x101
jne 0x404603
push eax
call 0x4045be
pop eax
jmp dword [0x4423ec]
mov edx, dword [edx + 8]
or edx, edx
je 0x4045fa
mov ecx, dword [edx - 8]
inc ecx
jle 0x4045fa
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 0x404534
ret
Function at 0x404be0
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 0x404d98
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404c41
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404db4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404cae
xor eax, eax
push ebp
push 0x404ca7
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 0x404c90
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404dd4
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 0x404cae
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 0x404d8f
cmp byte [ebp - 0xd], 0
jne 0x404cf0
cmp byte [ebp - 0x12], 0
je 0x404d8f
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404d09
dec ebx
cmp byte [ebx], 0x2e
je 0x404d18
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404d08
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404d8f
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404d45
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 0x404d8f
cmp byte [ebp - 0xd], 0
je 0x404d8f
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 0x404d8f
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 0x40680e
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x406849
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x406830
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x406841
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x40684b
inc edi
add eax, 0x28
cmp edi, esi
jb 0x406826
xor eax, eax
pop edi
pop esi
ret
Function at 0x40767c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add bh, bh
xchg ebp, eax
enter 0xfffffffffffffffa, 0xffffffffffffffff
call fcn.004067ce
pop ds
add dword [ecx - 0x22f5a80], 0x6a00ffff
inc eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
invalid
invalid
aad 0xfe
invalid

Function at 0x407b98
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [ebx - 0x6cb43]
inc dword [eax]
je 0x408961
push 5
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
insb byte es:[edi], dx
cld
invalid
call dword [eax - 0x18]
jge 0x407bab
invalid
inc dword [ebx - 0x5a7cf33c]
add cl, bh
invalid
inc dword [eax]
jmp 0x407bdb
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x407c24
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
invalid

Function at 0x408140
Capabilities:
Contain obfuscated stackstrings

Disassembly:
out 0xff, al
call [esi]
add al, 0x8b
lea eax, [ebp - 0x6f4]
push eax
call fcn.004067de
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00406793
add esp, 0xc
mov dword [ebp - 0x730], eax
and dword [ebp - 0x6fc], 0
push 1
pop eax
test eax, eax
je 0x408874
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x408349
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
mov byte [ebp - 0x775], 0xab
mov byte [ebp - 0x774], 0x89
mov byte [ebp - 0x773], 0x94
mov byte [ebp - 0x772], 0x9c
mov byte [ebp - 0x771], 0x89
mov byte [ebp - 0x770], 0x9a
mov byte [ebp - 0x76f], 0x96
mov byte [ebp - 0x76e], 0xdb
mov byte [ebp - 0x76d], 0xbd
mov byte [ebp - 0x76c], 0x92
mov byte [ebp - 0x76b], 0x97
mov byte [ebp - 0x76a], 0x9e
invalid
invalid
xchg edi, eax

Function at 0x41356c
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 0x413572
ret

Function at 0x415a20
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 0x415a71
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x415a58
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x415a48
jmp 0x415a71
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 0x415a59
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41fdfc
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 [0x442758], 0
sete dl
or al, dl
jne 0x41ff40
mov eax, dword [0x44275c]
mov bx, 0xffff
call fcn.00402ed0
mov eax, dword [0x442758]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x41ff0f
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x442758]
call fcn.0040cce8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x41ff07
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x16c], 0
je 0x41ff07
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x41ff07
mov eax, dword [ebp - 0x10]
call fcn.00427c78
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x41ff07
push ebp
call fcn.0041fdb8
pop ecx
test al, al
jne 0x41ff07
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x8c]
cmp eax, dword [ebp - 0x10]
jne 0x41fec3
mov eax, dword [ebp - 0x10]
call fcn.004265bc
dec eax
jle 0x41ff07
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.00402ed0
cmp byte [ebp - 0x15], 0
je 0x41ff07
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x41ff07
mov edx, dword [ebp - 0x10]
mov eax, dword [0x44275c]
call fcn.0041f668
inc edi
dec esi
jne 0x41fe56
mov eax, dword [0x44275c]
cmp dword [eax + 8], 0
jle 0x41ff27
mov eax, dword [0x44275c]
call fcn.0041f6f8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41ff40
push ebp
mov eax, dword [ebp - 0x14]
call fcn.0041fc70
pop ecx
test al, al
jne 0x41ff40
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 0x425748
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 0x425779
je 0x4257d3
sub eax, 7
je 0x42579a
dec eax
je 0x4257c4
sub eax, 0x17
je 0x425854
jmp 0x425892
add eax, 0xffffff00
sub eax, 9
jb 0x425840
add eax, 0xffffff09
sub eax, 0xb
jb 0x42582a
jmp 0x425892
mov eax, ebx
call fcn.00435938
mov edi, eax
test edi, edi
je 0x4258f2
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xc8]
test al, al
je 0x4258fb
jmp 0x4258f2
test byte [ebx + 0x44], 0x20
jne 0x4258fb
jmp 0x4258f2
mov edx, esi
mov eax, ebx
call fcn.00423034
cmp dword [esi + 0xc], 0xffffffff
jne 0x4258fb
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.0040660c
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.00421af4
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.004255f8
test eax, eax
je 0x4258fb
mov dword [esi + 0xc], 1
jmp 0x4258fb
mov edx, esi
mov eax, ebx
call fcn.004256bc
test al, al
jne 0x4258fb
jmp 0x4258f2
mov eax, ebx
call fcn.004226ac
test al, al
jne 0x4258fb
jmp 0x4258f2
mov eax, ebx
call fcn.00427c78
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x4258f2
cmp dword [0x441690], 0
je 0x4258f2
mov eax, dword [0x441690]
cmp ebx, dword [eax + 0x24]
jne 0x4258f2
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x441690]
call fcn.00422f50
jmp 0x4258f2
mov eax, dword [0x442720]
cmp byte [eax + 0x20], 0
je 0x4258f2
mov eax, dword [0x442720]
cmp dword [eax + 0x1c], 0
je 0x4258f2
mov eax, dword [esi]
mov edx, dword [0x442720]
cmp eax, dword [edx + 0x1c]
jne 0x4258f2
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.0043584c
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.00402ed0
jmp 0x4258fb
mov edx, esi
mov eax, ebx
call fcn.00423034
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425d8c
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 0x425da8
cmp dword [esi + 4], 0
je 0x425dd5
test byte [ebx + 0x45], 1
jne 0x425dc7
mov eax, ebx
call fcn.00424dfc
test eax, eax
jne 0x425dc7
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x425ee5
mov edx, esi
mov eax, ebx
call fcn.00425a04
jmp 0x425ee5
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 0x425ede
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00427c78
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.00422f50
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00425d8c
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.00427c78
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x425ee5
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 0x42f320
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.00403894
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42f381
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x42f381
cmp byte [ebp - 0x102], 0
je 0x42f381
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403ac0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43561c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4427d4
cmp dword [edi], 0
jne 0x435698
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4427d0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x44181c
mov ecx, 2
call fcn.004027b0
mov edx, 0x4355f4
lea eax, [esi + 5]
call fcn.00435614
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00435614
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 0x43566d
mov dword [0x4427d0], 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 0x4357bc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43580c]
test si, 4
je 0x4357d0
or bl, 1
test si, 8
je 0x4357da
or bl, 4
test si, 1
je 0x4357e4
or bl, 8
test si, 2
je 0x4357ee
or bl, 0x10
test si, 0x10
je 0x4357f8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x435807
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x435810
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x435848]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x435829
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x435838
or bl, 4
test esi, 0x20000000
je 0x435843
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x43beec
Capabilities:
Get keyboard layout

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 0x43c091
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40b9c4]
call fcn.00402cc4
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403894
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 0x43c067
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.0042c2d8
test al, al
je 0x43c05a
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, 0x43c0a0
lea eax, [ebp - 0x254]
call fcn.004080d8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43c05a
xor eax, eax
push ebp
push 0x43c053
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 0x43c0d8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x43c03c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403ac0
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 0x43c03c
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403ac0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c05a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x43bf5d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040e854
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c098
lea eax, [ebp - 0x260]
call fcn.00403894
ret

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

Disassembly:
push ecx
mov eax, dword [0x4427a4]
cmp byte [eax + 0x8d], 0
jne 0x43c8a5
cmp dword [0x4427e0], 0
jne 0x43c866
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x43c7f0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4427e0], eax
cmp dword [0x4427dc], 0
jne 0x43c881
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4427dc], eax
cmp dword [0x4427e4], 0
jne 0x43c8a5
push esp
push 0
push 0
push 0x43c794
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4427e4], eax
pop edx
ret