joyce8/EMBER2024-capa huggingface dataset:
Function at 0x526fb5
Capabilities:
Hash data with md5

Disassembly:
call fcn.004fba54
push ebp
lea esp, [esp + 4]
push ecx
lea esp, [esp + 4]
jmp 0x4fc210

Function at 0x527034
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
lea esp, [esp + 4]
pushal
lea esp, [esp + 0x20]
jmp 0x4fcca0

Function at 0x52709d
Capabilities:
Enumerate pe sections

Disassembly:
call fcn.0050cbc5
outsd dx, dword [esi]
in al, 0x7a
sbb eax, 0xbc115dec
sub al, 0x37
cmc
in al, 0x8d
lea esp, [esp + 4]
call fcn.004fcb08
push 0x132f4b77
jmp 0x4fcc2c
push bp
lea esp, [esp + 2]
push si
lea esp, [esp + 2]
jmp 0x4fcca0

Function at 0x527484
Capabilities:
Hash data with md5

Disassembly:
push ecx
lea esp, [esp + 4]
pushfd
mov dword [esp], esp
mov byte [esp], ch
pop word [esp]
mov byte [esp], dh
mov byte [esp], ch
mov byte [esp], ch
mov byte [esp], ch
jmp 0x52751d
mov edx, dword [esp]
mov edx, 0x695c40a7
push bp
setg dh
xchg byte [esp], dh
mov dh, 0x59
xchg word [esp], dx
xchg byte [esp], dh
lea edx, [edi*4]
mov word [esp], si
jmp 0x527624
mov byte [esp], cl
lea esp, [esp + 2]
push edx
mov dl, byte [esp]
bswap edx
mov dh, cl
mov edx, 0x39a100d8
jmp 0x5274e7
lea esp, [esp + 2]
pop edx
jmp 0x4fc210

Function at 0x5274b1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push cx
lea esp, [esp + 2]
push si
lea esp, [esp + 2]
jmp 0x4fcab0

Function at 0x5275d8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call fcn.004fca45
jmp 0x4fca70

Function at 0x528680
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call fcn.004fc41c
jmp 0x4fc9d0

Function at 0x5286c2
Capabilities:
Enumerate pe sections

Disassembly:
pushal
lea esp, [esp + 0x20]
pushal
lea esp, [esp + 0x20]
jmp 0x4fcca0

Function at 0x52877f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushal
mov dword [esp + 0xc], edi
pop dword [esp + 0x14]
pop word [esp + 0xe]
push esi
jmp 0x5287ad
pop word [esp + 0xc]
push dword [esp + 0xf]
mov dword [esp + 0x12], esi
pop word [esp + 0xd]
mov byte [esp + 0x13], dh
jmp 0x52880a
mov ecx, 0x68691e05
mov cx, 0x6827
setno cl
lea ecx, reloc.oleaut32.dll_SysFreeString
push eax
mov ah, 0x14
mov ecx, 0x4d9320c0
mov ax, 0x1f0a
jmp 0x528859
lea esp, [esp + 2]
mov dword [esp + 2], ecx
setl cl
bswap cx
not cx
setg cl
mov ecx, 0x54e160a4
jmp 0x5287d7
lea ecx, [esi*4]
mov cl, 0xce
push ebp
jmp 0x5288fa
not ch
mov eax, ecx
setbe cl
bswap cx
lea ecx, reloc.oleaut32.dll_SysFreeString
mov ecx, 0x1be5fd6
jmp 0x52883d
mov cl, 0xd0
bswap cx
bswap ebp
mov ebp, 0x51180337
lea ebp, [ecx + edi]
setbe ah
mov al, byte [esp]
mov cl, 0x3f
mov bp, dx
lea ebp, [esp + edi]
mov ch, bh
not bp
mov al, 0xd8
lea ebp, reloc.oleaut32.dll_SysFreeString
mov bp, bx
pop ebp
lea eax, [eax*4]
mov eax, edx
setnp ah
mov cl, byte [esp]
bswap cx
mov eax, ebp
mov cx, sp
not eax
bswap ecx
pushal
pop eax
mov eax, dword [esp + 0x1c]
mov cl, 0xac
bswap cx
mov cl, 0x7e
pushfd
pop word [esp]
lea esp, [esp + 2]
mov ecx, dword [esp + 0x22]
lea esp, [esp + 0x3c]
pushfd
lea esp, [esp + 4]
jmp 0x4fca70
Function at 0x5288d0
Capabilities:
Enumerate pe sections

Disassembly:
lea esp, [esp]
push bp
mov byte [esp], bl
mov byte [esp], dl
lea esp, [esp]
lea esp, [esp + 3]
jmp 0x4fcca0
pushal
lea esp, [esp + 0x20]
pushal
lea eax, [ecx + edx]
popal
push bp
mov word [esp], bx
mov word [esp], ax
mov byte [esp], ah
lea esp, [esp + 1]
jmp 0x5288af

Function at 0x528a4f
Capabilities:
Hash data with md5

Disassembly:
pushal
lea esp, [esp + 0x20]
pushfd
lea esp, [esp + 4]
jmp 0x4fc210

Function at 0x528ae6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push cx
lea esp, [esp + 2]
pushal
lea esp, [esp + 0x20]
jmp 0x4fcab0

Function at 0x528dbf
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushfd
lea esp, [esp + 4]
pushfd
lea esp, [esp + 4]
jmp 0x4fcab0

Function at 0x528f5d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call fcn.004fca75
jmp 0x4fcab0
Function at 0x41bfa0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4012b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401298
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x2c]
xor esi, esi
rep stosd dword es:[edi], eax
mov ecx, 7
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x84], esi
call fcn.00403790
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov ebx, eax
call edi
lea eax, [ebp - 0x6c]
push eax
push 0x28
push ebx
call fcn.004036f4
mov ebx, eax
call edi
xor ecx, ecx
cmp ebx, esi
setne cl
neg ecx
test cx, cx
je 0x41c09c
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x74]
push edx
push 0x403db0
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push esi
call fcn.00403744
mov ebx, eax
call edi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x6c]
push edx
lea eax, [ebp - 0x2c]
push 0x1c
push eax
push esi
push ecx
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 2
call fcn.004036a8
mov esi, eax
call edi
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x84], 3
call dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
push 0x41c0cc
jmp 0x41c0ad
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x50]
call esi
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea ecx, [ebp - 0x64]
call esi
lea ecx, [ebp - 0x70]
call esi
ret
Function at 0x402aa0
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 0x402b38
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402b18
xor eax, eax
push ebp
push 0x402b11
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 0x402b54
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 0x402b18
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 0x404af8
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 0x404cb0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404b59
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404ccc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404bc6
xor eax, eax
push ebp
push 0x404bbf
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 0x404ba8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404cec
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 0x404bc6
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 0x404ca7
cmp byte [ebp - 0xd], 0
jne 0x404c08
cmp byte [ebp - 0x12], 0
je 0x404ca7
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404c21
dec ebx
cmp byte [ebx], 0x2e
je 0x404c30
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404c20
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404ca7
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404c5d
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 0x404ca7
cmp byte [ebp - 0xd], 0
je 0x404ca7
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 0x404ca7
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 0x405204
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x405260
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_ReadFile
dec eax
pop eax
pop ecx
jne 0x405252
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x405247
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x405242
mov eax, 0x64
jmp 0x405257
call sub.kernel32.dll_GetLastError
call fcn.00402770
xor eax, eax
jmp 0x405242
mov eax, 0x67
jmp 0x405257
Function at 0x405268
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x4052c3
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_WriteFile
dec eax
pop eax
pop ecx
jne 0x4052b5
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x4052aa
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x4052a5
mov eax, 0x65
jmp 0x4052ba
call sub.kernel32.dll_GetLastError
call fcn.00402770
xor eax, eax
jmp 0x4052a5
mov eax, 0x67
jmp 0x4052ba

Function at 0x408318
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 0x408351
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040388c
jmp 0x40835a
mov eax, ebx
mov edx, esi
call fcn.00403840
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408364
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 0x408385
mov al, byte [esp]
jmp 0x408387
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x413cb4
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 0x413cba
ret

Function at 0x4160d8
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 0x416129
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x416110
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x416100
jmp 0x416129
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 0x416111
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d3a4
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 [0x44175c], 0
sete dl
or al, dl
jne 0x41d4e8
mov eax, dword [0x441760]
mov bx, 0xffff
call fcn.00402dfc
mov eax, dword [0x44175c]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x41d4b7
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x44175c]
call fcn.0040cf50
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x41d4af
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x16c], 0
je 0x41d4af
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x41d4af
mov eax, dword [ebp - 0x10]
call fcn.00425250
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x41d4af
push ebp
call fcn.0041d360
pop ecx
test al, al
jne 0x41d4af
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x8c]
cmp eax, dword [ebp - 0x10]
jne 0x41d46b
mov eax, dword [ebp - 0x10]
call fcn.00423b98
dec eax
jle 0x41d4af
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.00402dfc
cmp byte [ebp - 0x15], 0
je 0x41d4af
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x41d4af
mov edx, dword [ebp - 0x10]
mov eax, dword [0x441760]
call fcn.0041cc10
inc edi
dec esi
jne 0x41d3fe
mov eax, dword [0x441760]
cmp dword [eax + 8], 0
jle 0x41d4cf
mov eax, dword [0x441760]
call fcn.0041cca0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41d4e8
push ebp
mov eax, dword [ebp - 0x14]
call fcn.0041d218
pop ecx
test al, al
jne 0x41d4e8
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 0x422d24
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 0x422d55
je 0x422daf
sub eax, 7
je 0x422d76
dec eax
je 0x422da0
sub eax, 0x17
je 0x422e30
jmp 0x422e6e
add eax, 0xffffff00
sub eax, 9
jb 0x422e1c
add eax, 0xffffff09
sub eax, 0xb
jb 0x422e06
jmp 0x422e6e
mov eax, ebx
call fcn.00432e94
mov edi, eax
test edi, edi
je 0x422ece
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xc8]
test al, al
je 0x422ed7
jmp 0x422ece
test byte [ebx + 0x44], 0x20
jne 0x422ed7
jmp 0x422ece
mov edx, esi
mov eax, ebx
call fcn.00420628
cmp dword [esi + 0xc], 0xffffffff
jne 0x422ed7
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00406700
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0041f0b4
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00422bd4
test eax, eax
je 0x422ed7
mov dword [esi + 0xc], 1
jmp 0x422ed7
mov edx, esi
mov eax, ebx
call fcn.00422c98
test al, al
jne 0x422ed7
jmp 0x422ece
mov eax, ebx
call fcn.0041fc94
test al, al
jne 0x422ed7
jmp 0x422ece
mov eax, ebx
call fcn.00425250
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x422ece
cmp dword [0x440678], 0
je 0x422ece
mov eax, dword [0x440678]
cmp ebx, dword [eax + 0x24]
jne 0x422ece
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x440678]
call fcn.00420544
jmp 0x422ece
mov eax, dword [0x441724]
cmp byte [eax + 0x20], 0
je 0x422ece
mov eax, dword [0x441724]
cmp dword [eax + 0x1c], 0
je 0x422ece
mov eax, dword [esi]
mov edx, dword [0x441724]
cmp eax, dword [edx + 0x1c]
jne 0x422ece
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.00432da8
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.00402dfc
jmp 0x422ed7
mov edx, esi
mov eax, ebx
call fcn.00420628
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423368
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 0x423384
cmp dword [esi + 4], 0
je 0x4233b1
test byte [ebx + 0x45], 1
jne 0x4233a3
mov eax, ebx
call fcn.004223d8
test eax, eax
jne 0x4233a3
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4234c1
mov edx, esi
mov eax, ebx
call fcn.00422fe0
jmp 0x4234c1
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 0x4234ba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00425250
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.00420544
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00423368
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.00425250
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4234c1
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 0x42c880
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.004037a8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42c8e1
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x42c8e1
cmp byte [ebp - 0x102], 0
je 0x42c8e1
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004039d4
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432b78
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4417d8
cmp dword [edi], 0
jne 0x432bf4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4417d4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x440804
mov ecx, 2
call fcn.004027a4
mov edx, 0x432b50
lea eax, [esi + 5]
call fcn.00432b70
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00432b70
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 0x432bc9
mov dword [0x4417d4], 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 0x432d18
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x432d68]
test si, 4
je 0x432d2c
or bl, 1
test si, 8
je 0x432d36
or bl, 4
test si, 1
je 0x432d40
or bl, 8
test si, 2
je 0x432d4a
or bl, 0x10
test si, 0x10
je 0x432d54
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x432d63
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x432d6c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x432da4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x432d85
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x432d94
or bl, 4
test esi, 0x20000000
je 0x432d9f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x43928c
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 0x439431
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40bc2c]
call fcn.00402bf8
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004037a8
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 0x439407
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.00429600
test al, al
je 0x4393fa
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, 0x439440
lea eax, [ebp - 0x254]
call fcn.00408188
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4393fa
xor eax, eax
push ebp
push 0x4393f3
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 0x439478
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4393dc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004039d4
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 0x4393dc
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004039d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4393fa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4392fd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040f260
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439438
lea eax, [ebp - 0x260]
call fcn.004037a8
ret

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

Disassembly:
push ecx
mov eax, dword [0x4417a8]
cmp byte [eax + 0x8d], 0
jne 0x439c05
cmp dword [0x4417e4], 0
jne 0x439bc6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x439b50
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4417e4], eax
cmp dword [0x4417e0], 0
jne 0x439be1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4417e0], eax
cmp dword [0x4417e8], 0
jne 0x439c05
push esp
push 0
push 0
push 0x439af4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4417e8], eax
pop edx
ret