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

Disassembly:
cmp ecx, dword [0x44a0c8]
jne 0x40379a
repz ret
jmp fcn.00405cfe

Function at 0x405924
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403b0f
and dword [ebp - 4], 0
cmp dword [0x44b704], 0
mov ebx, eax
jne 0x4059d5
push 0x401920
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405a86
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401914
push edi
call esi
test eax, eax
je 0x405a86
push eax
call fcn.00403a9d
mov dword [esp], 0x401904
push edi
mov dword [0x44b704], eax
call esi
push eax
call fcn.00403a9d
mov dword [esp], 0x4018f0
push edi
mov dword [0x44b708], eax
call esi
push eax
call fcn.00403a9d
mov dword [esp], 0x4018d4
push edi
mov dword [0x44b70c], eax
call esi
push eax
call fcn.00403a9d
pop ecx
mov dword [0x44b714], eax
test eax, eax
je 0x4059d5
push 0x4018bc
push edi
call esi
push eax
call fcn.00403a9d
pop ecx
mov dword [0x44b710], eax
mov eax, dword [0x44b710]
cmp eax, ebx
je 0x405a2d
cmp dword [0x44b714], ebx
je 0x405a2d
push eax
call fcn.00403b18
push dword [0x44b714]
mov esi, eax
call fcn.00403b18
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405a2d
test edi, edi
je 0x405a2d
call esi
test eax, eax
je 0x405a24
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405a24
test byte [ebp - 0xc], 1
jne 0x405a2d
or dword [ebp + 0x10], 0x200000
jmp 0x405a66
mov eax, dword [0x44b708]
cmp eax, ebx
je 0x405a66
push eax
call fcn.00403b18
pop ecx
test eax, eax
je 0x405a66
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405a66
mov eax, dword [0x44b70c]
cmp eax, ebx
je 0x405a66
push eax
call fcn.00403b18
pop ecx
test eax, eax
je 0x405a66
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44b704]
call fcn.00403b18
pop ecx
test eax, eax
je 0x405a86
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405a88
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40c040
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40c0f5
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov ebp, dword [sym.imp.USER32.dll_ReleaseDC]
nop dword [eax]
push 0
push 0
call ebp
add byte [edi + ebx], 0xe3
push 0
push 0
call ebp
add byte [edi + ebx], 0xbb
push 0
push 0
call ebp
add byte [edi + ebx], 0x3e
push 0
push 0
call ebp
xor byte [edi + ebx], 0x23
push 0
push 0
call ebp
add byte [edi + ebx], 0x94
push 0
push 0
call ebp
add byte [edi + ebx], 0x4d
push 0
push 0
call ebp
add byte [edi + ebx], 0x93
push 0
push 0
call ebp
xor byte [edi + ebx], 0x93
push 0
push 0
call ebp
add byte [edi + ebx], 0x6b
push 0
push 0
call ebp
add byte [edi + ebx], 0xee
push 0
push 0
call ebp
xor byte [edi + ebx], 0x97
push 0
push 0
call ebp
add byte [edi + ebx], 0xd9
push 0
push 0
call ebp
xor byte [edi + ebx], 0x8c
push 0
push 0
call ebp
add byte [edi + ebx], 0xeb
inc ebx
cmp esi, ebx
jne 0x40c060
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402cc5
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40c100
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [esp + 0x3c]
mov edi, dword [eax + 0x10]
cmp dword [eax + 0x14], 0x10
mov ebx, eax
jb 0x40c118
mov ebx, dword [eax]
mov esi, dword [esp + 0x40]
xor esi, edi
cmp edi, 4
jae 0x40c127
mov ecx, edi
jmp 0x40c195
mov dword [esp + 0x24], edi
shr edi, 2
xor ebp, ebp
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
movups xmmword [esp], xmm0
mov dword [esp + 0x20], 0
call dword [sym.imp.GDI32.dll_ArcTo]
sub esp, 0x24
mov dword [esp + 4], str.Z81xbyuAua
mov dword [esp], 0x4d4860
call fcn.00402d5b
mov dword [esp], eax
call fcn.004060eb
imul eax, dword [ebx + ebp*4], 0x5bd1e991
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul eax, ecx, 0x5bd1e991
imul esi, esi, 0x5bd1e991
xor esi, eax
inc ebp
cmp edi, ebp
jne 0x40c130
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x10]
mov edi, dword [esp + 0x24]
and edi, 0xfffffffc
and ecx, 3
xor eax, eax
cmp ecx, 1
je 0x40c1be
cmp ecx, 2
je 0x40c1b4
cmp ecx, 3
jne 0x40c1cc
movsx eax, byte [ebx + edi + 2]
shl eax, 0x10
movsx ecx, byte [ebx + edi + 1]
shl ecx, 8
xor eax, ecx
movsx ecx, byte [ebx + edi]
xor ecx, eax
imul eax, ecx, 0x5bd1e991
xor esi, eax
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e991
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4035bc
Capabilities:
Terminate process

Disassembly:
jmp 0x453cc3
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x453cd4
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004058c1
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4022e0
Capabilities:
Terminate process

Disassembly:
mov edx, eax
push dword [0x40374f]
call dword [sym.imp.pdh.dll_PdhCloseQuery]
mov eax, 5
add eax, 5
inc eax
xor edi, edi
xor esi, esi
test eax, 0xb
jne 0x40230e
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
mov dword [0x401775], eax
ret
Function at 0x404de8
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 0x404fa4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404e49
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404fc0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404ebb
xor eax, eax
push ebp
push 0x404eb4
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.00404c40
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404e9d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404fe0
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 0x404ebb
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 0x404f9c
cmp byte [ebp - 0xd], 0
jne 0x404efd
cmp byte [ebp - 0x12], 0
je 0x404f9c
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404f16
dec ebx
cmp byte [ebx], 0x2e
je 0x404f25
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404f15
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404f9c
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404f52
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 0x404f9c
cmp byte [ebp - 0xd], 0
je 0x404f9c
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 0x404f9c
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 0x4085ac
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 0x4085e5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040399c
jmp 0x4085ee
mov eax, ebx
mov edx, esi
call fcn.00403908
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4085f8
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 0x408619
mov al, byte [esp]
jmp 0x40861b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x413738
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 0x41373e
ret

Function at 0x415a9c
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 0x415aed
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x415ad4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x415ac4
jmp 0x415aed
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 0x415ad5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41fb7c
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 [0x443778], 0
sete dl
or al, dl
jne 0x41fcbc
mov eax, dword [0x44377c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x443778]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x41fc8b
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x443778]
call fcn.0040d1c8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x41fc83
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x41fc83
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x41fc83
mov eax, dword [ebp - 0x14]
call fcn.00427e4c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x41fc83
push ebp
call fcn.0041fb38
pop ecx
test al, al
jne 0x41fc83
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x41fc3f
mov eax, dword [ebp - 0x14]
call fcn.004267d8
dec eax
jle 0x41fc83
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.00402e20
cmp byte [ebp - 1], 0
je 0x41fc83
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x41fc83
mov edx, dword [ebp - 0x14]
mov eax, dword [0x44377c]
call fcn.0041f384
inc edi
dec esi
jne 0x41fbd2
mov eax, dword [0x44377c]
cmp dword [eax + 8], 0
jle 0x41fca3
mov eax, dword [0x44377c]
call fcn.0041f414
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41fcbc
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0041f9a0
pop ecx
test al, al
jne 0x41fcbc
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 0x4257e4
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 0x425815
je 0x42586f
sub eax, 7
je 0x425836
dec eax
je 0x425860
sub eax, 0x17
je 0x425914
jmp 0x425952
add eax, 0xffffff00
sub eax, 9
jb 0x425900
add eax, 0xffffff09
sub eax, 0xb
jb 0x4258c8
jmp 0x425952
mov eax, ebx
call fcn.00437304
mov edi, eax
test edi, edi
je 0x4259b2
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x4259bb
jmp 0x4259b2
test byte [ebx + 0x44], 0x20
jne 0x4259bb
jmp 0x4259b2
mov edx, esi
mov eax, ebx
call fcn.00422e24
cmp dword [esi + 0xc], 0xffffffff
jne 0x4259bb
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.004067dc
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.00421958
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.004256bc
test eax, eax
je 0x4259bb
mov dword [esi + 0xc], 1
jmp 0x4259bb
mov edx, esi
mov eax, ebx
call fcn.00425750
test al, al
je 0x4259b2
cmp dword [esi + 0xc], 0
jne 0x4259bb
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.00427e4c
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x4259bb
mov eax, ebx
call fcn.004224c0
test al, al
jne 0x4259bb
jmp 0x4259b2
mov eax, ebx
call fcn.00427e4c
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x4259b2
cmp dword [0x442700], 0
je 0x4259b2
mov eax, dword [0x442700]
cmp ebx, dword [eax + 0x24]
jne 0x4259b2
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x442700]
call fcn.00422d58
jmp 0x4259b2
mov eax, dword [0x443740]
cmp byte [eax + 0x20], 0
je 0x4259b2
mov eax, dword [0x443740]
cmp dword [eax + 0x1c], 0
je 0x4259b2
mov eax, dword [esi]
mov edx, dword [0x443740]
cmp eax, dword [edx + 0x1c]
jne 0x4259b2
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.00437248
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.00402e20
jmp 0x4259bb
mov edx, esi
mov eax, ebx
call fcn.00422e24
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425e7c
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 0x425e98
cmp dword [esi + 4], 0
je 0x425ec5
test byte [ebx + 0x45], 1
jne 0x425eb7
mov eax, ebx
call fcn.00424db4
test eax, eax
jne 0x425eb7
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x425fd5
mov edx, esi
mov eax, ebx
call fcn.00425af4
jmp 0x425fd5
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 0x425fce
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00427e4c
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.00422d58
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00425e7c
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.00427e4c
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x425fd5
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 0x42f628
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.004038b4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42f677
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.00403ae4
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x437020
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4437d8
cmp dword [edi], 0
jne 0x43709c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4437d4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x442894
mov ecx, 2
call fcn.004027d0
mov edx, 0x436ff8
lea eax, [esi + 5]
call fcn.00437018
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00437018
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 0x437071
mov dword [0x4437d4], 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 0x4371b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x437208]
test si, 4
je 0x4371cc
or bl, 1
test si, 8
je 0x4371d6
or bl, 4
test si, 1
je 0x4371e0
or bl, 8
test si, 2
je 0x4371ea
or bl, 0x10
test si, 0x10
je 0x4371f4
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x437203
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x43720c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x437244]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x437225
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x437234
or bl, 4
test esi, 0x20000000
je 0x43723f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x43d3ec
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x43d3fe
add esp, 0xfffffff0
call fcn.00402f2c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004119f4
mov eax, ebx
call fcn.0043d738
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x40bb04]
call fcn.00402c14
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x40bb04]
call fcn.00402c14
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x40bb04]
call fcn.00402c14
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x40bb04]
call fcn.00402c14
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40bb04]
call fcn.00402c14
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, 0x43d3bc
push eax
push 0
push 0
mov eax, dword [0x442be4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x412ebc]
call fcn.00414198
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x412ebc]
call fcn.00414198
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x412ebc]
call fcn.00414198
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.0043db18
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43da34
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43da34
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43da34
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43d50d
call fcn.00402f84
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret