joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5101d0b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindResourceA
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x5101d0ea
push ebp
call fcn.5101d044
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LoadResource
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x5101d110
push ebp
call fcn.5101d044
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SizeofResource
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
push eax
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.5101cc8c
mov esp, ebp
pop ebp
ret 4

Function at 0x51023074
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
setge dl
mov eax, dword [ebp - 4]
call fcn.51022ea4
cmp dword [ebp - 8], 1
jne 0x510230a8
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 0
pop ecx
pop ecx
pop ebp
ret

Function at 0x51024a0c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
cmp dword [0x51091a24], 0
jne 0x51024ac7
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [0x51091a20]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x5108f5a8
mov ecx, 2
call fcn.51002968
mov edx, 0x510249bc
mov eax, dword [ebp - 8]
add eax, 5
call fcn.510249dc
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebp - 0xc]
call fcn.510249dc
mov edx, dword [ebp - 0xc]
mov dword [edx + 1], eax
mov eax, dword [0x51091a24]
mov edx, dword [ebp - 0xc]
mov dword [edx + 5], eax
mov eax, dword [ebp - 0xc]
mov dword [0x51091a24], eax
add dword [ebp - 0xc], 0xd
jno 0x51024aab
call fcn.5100380c
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
jno 0x51024ab8
call fcn.5100380c
cmp eax, 0xffc
jl 0x51024a73
mov eax, dword [ebp - 8]
mov dword [0x51091a20], eax
mov eax, dword [0x51091a24]
mov dword [ebp - 4], eax
mov eax, dword [0x51091a24]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 5]
mov dword [0x51091a24], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x51026014
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 0x5102601a
ret

Function at 0x51028d80
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 0x51028dd1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x51028db8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x51028da8
jmp 0x51028dd1
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 0x51028db9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x510397e8
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.51004b7c
xor eax, eax
push ebp
push 0x5103991b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x510398ee
xor eax, eax
push ebp
push 0x510398e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.51004994
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x510398bc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x510398ab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.51004994
inc eax
push eax
mov eax, dword [ebp - 8]
call fcn.51004b8c
mov edx, dword [ebp - 0x10]
pop ecx
call fcn.51002968
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 0xc]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510398b2
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x5108ffbc]
mov dl, 1
mov eax, dword [0x51007d20]
call fcn.5100d124
call fcn.51004098
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51039922
lea eax, [ebp - 8]
call fcn.510046dc
ret
Function at 0x5103992c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
xor ecx, ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x51039af6
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x1c]
mov edx, 0x1b
mov al, 0x2d
call fcn.51004d7c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
mov ecx, 0x51039b0c
call fcn.510049e0
mov eax, dword [ebp - 4]
call fcn.51023b68
dec eax
test eax, eax
jl 0x510399f1
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.51023b28
mov edx, dword [0x51033af8]
call fcn.51003a58
test al, al
je 0x510399e9
push dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.51023b28
lea edx, [ebp - 0x20]
call fcn.51041560
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
mov edx, 3
mov al, 0x20
call fcn.51004d7c
push dword [ebp - 0x24]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.51004a54
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x51039997
mov al, byte [0x51039b10]
push eax
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
mov edx, 0x51039b1c
mov eax, dword [ebp - 0x10]
call fcn.5100e7b0
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x10]
call fcn.51004774
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0xb
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 4]
call fcn.51041560
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x6c], 0xb
mov eax, 0x51039b0c
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0xb
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f0]
call fcn.51041560
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0xb
mov eax, 0x51039b0c
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0xb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
mov eax, 0x51039b0c
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea edx, [ebp - 0x78]
mov ecx, 9
mov eax, 0x51039b28
call fcn.5100a2b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51039afd
lea eax, [ebp - 0x80]
mov edx, 2
call fcn.51004700
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.51004700
lea eax, [ebp - 0x20]
call fcn.510046dc
lea eax, [ebp - 0x1c]
call fcn.510046dc
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.51004700
ret
Function at 0x5103b294
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0xc], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0xd], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
push eax
push 0x5103b1c8
call sub.user32.dll_EnumWindows
pop ecx
pop ebp
ret

Function at 0x5103b40c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5103b495
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.5103ad88
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 8], eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 8]
cmp eax, 0x3e8
jbe 0x5103b438
lea ecx, [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.5103a94c
cmp dword [ebp - 0xc], 0
je 0x5103b47f
push 0
push 9
mov eax, dword [ebp - 0xc]
call fcn.51004b8c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5103b49c
lea eax, [ebp - 0xc]
call fcn.510046dc
ret
Function at 0x5103e664
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
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
cmp dword [0x51091be0], 0
je 0x5103e7bf
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x51090204]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x5103e7bf
mov eax, dword [0x51091be4]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x51091be0]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x5103e78e
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x51091be0]
call fcn.51018e04
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x5103e782
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x5103e782
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x5103e782
mov eax, dword [ebp - 0x14]
call fcn.51049c3c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5103e782
push ebp
call fcn.5103e618
pop ecx
test al, al
jne 0x5103e782
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x5103e73e
mov eax, dword [ebp - 0x14]
call fcn.510480c0
dec eax
jle 0x5103e782
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.51003ac8
cmp byte [ebp - 1], 0
je 0x5103e782
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x5103e782
mov edx, dword [ebp - 0x14]
mov eax, dword [0x51091be4]
call fcn.5103dad4
inc dword [ebp - 0x1c]
dec dword [ebp - 0x20]
jne 0x5103e6d0
mov eax, dword [0x51091be4]
cmp dword [eax + 8], 0
jle 0x5103e7a6
mov eax, dword [0x51091be4]
call fcn.5103db80
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5103e7bf
push ebp
mov eax, dword [ebp - 0x18]
call fcn.5103e454
pop ecx
test al, al
jne 0x5103e7bf
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x51042e98
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test byte [eax + 0x1c], 0x10
je 0x51042eeb
mov eax, dword [ebp - 0x14]
call fcn.5105d520
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x51042eeb
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x250], 0
je 0x51042eeb
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x250]
mov edx, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x24]
test al, al
jne 0x5104307a
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x100
jb 0x51042f34
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x108
ja 0x51042f34
mov eax, dword [ebp - 0x14]
call fcn.5105d520
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x5104306f
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xec]
test al, al
jne 0x5104307a
jmp 0x5104306f
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x200
jb 0x5104304a
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x20a
ja 0x5104304a
mov eax, dword [ebp - 0x14]
test byte [eax + 0x50], 0x80
jne 0x51042f77
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
sub eax, 0x203
je 0x51042f71
sub eax, 3
je 0x51042f71
sub eax, 3
jne 0x51042f77
mov eax, dword [ebp - 0x18]
sub dword [eax], 2
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
sub eax, 0x200
je 0x51042f8e
dec eax
je 0x51042fa5
dec eax
je 0x51042fcc
dec eax
je 0x51042fa5
jmp 0x51042fd9
mov ecx, dword [ebp - 0x18]
mov eax, dword [0x51090204]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
call fcn.51068f0c
jmp 0x5104306f
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x5d], 1
jne 0x51042fbf
mov eax, dword [ebp - 0x14]
mov si, 0xffed
call fcn.51003ac8
jmp 0x5104307a
mov eax, dword [ebp - 0x14]
or word [eax + 0x54], 1
jmp 0x5104306f
mov eax, dword [ebp - 0x14]
and word [eax + 0x54], 0xfffe
jmp 0x5104306f
mov eax, dword [0x51091b9c]
cmp byte [eax + 0x20], 0
je 0x5104306f
mov eax, dword [0x51091b9c]
cmp dword [eax + 0x1c], 0
je 0x5104306f
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [0x51091b9c]
cmp eax, dword [edx + 0x1c]
jne 0x5104306f
lea eax, [ebp - 0x11c]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x11c]
call fcn.5105d43c
mov byte [ebp - 0xc], al
mov eax, dword [ebp - 0x18]
mov ax, word [eax + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffc9
call fcn.51003ac8
jmp 0x5104307a
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xb00b
jne 0x5104306f
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 4]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx]
mov eax, dword [ebp - 0x14]
call fcn.51040f44
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51047478
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1f8], 0
je 0x51047499
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x510474ce
mov eax, dword [ebp - 4]
test byte [eax + 0x55], 1
jne 0x510474be
mov eax, dword [ebp - 4]
call fcn.51045b58
test eax, eax
jne 0x510474be
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x510475f8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.51046e4c
jmp 0x510475f8
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x5c]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x510475f1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 4]
call fcn.51049c3c
push eax
call sub.user32.dll_BeginPaint
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.51042d4c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.51047478
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 4], edx
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x5c]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x70]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 4]
call fcn.51049c3c
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510475f8
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_DeleteObject
ret
mov esp, ebp
pop ebp
ret
Function at 0x5104f7fc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [0x510903ac]
cmp byte [eax + 0xc], 0
je 0x5104f96e
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5104f967
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x51091bf0], 0
jne 0x5104f855
push 0x5104f974
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [ebp - 4], eax
push 0x5104f97c
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51091bf0], eax
cmp dword [0x5108fb30], 0
jne 0x5104f950
push 0x5104f98c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x5108fb30], eax
cmp dword [0x5108fb30], 0
je 0x5104f950
push 0x5104f998
mov eax, dword [0x5108fb30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51091bf4], eax
push 0x5104f9a8
mov eax, dword [0x5108fb30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51091bf8], eax
push 0x5104f9bc
mov eax, dword [0x5108fb30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51091bfc], eax
push 0x5104f9d4
mov eax, dword [0x5108fb30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51091c00], eax
push 0x5104f9ec
mov eax, dword [0x5108fb30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51091c04], eax
push 0x5104fa00
mov eax, dword [0x5108fb30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51091c08], eax
push 0x5104fa18
mov eax, dword [0x5108fb30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51091c0c], eax
push 0x5104fa30
mov eax, dword [0x5108fb30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51091c10], eax
push 0x5104fa4c
mov eax, dword [0x5108fb30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51091c14], eax
push 0x5104fa58
mov eax, dword [0x5108fb30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x51091c18], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5104f96e
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ecx
pop ecx
pop ebp
ret

Function at 0x51054084
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
mov dword [ebp - 8], edx
mov word [ebp - 2], ax
mov eax, dword [ebp - 8]
call fcn.510046dc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x510540dd
push pe_nt_image_headers32
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10c]
mov ecx, pe_nt_image_headers32
call fcn.51004944
mov esp, ebp
pop ebp
ret
Function at 0x5105d398
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov word [ebp - 2], ax
mov al, byte [0x5105d3f0]
mov byte [ebp - 3], al
test byte [ebp - 2], 4
je 0x5105d3b2
or byte [ebp - 3], 1
test byte [ebp - 2], 8
je 0x5105d3bc
or byte [ebp - 3], 4
test byte [ebp - 2], 1
je 0x5105d3c6
or byte [ebp - 3], 8
test byte [ebp - 2], 2
je 0x5105d3d0
or byte [ebp - 3], 0x10
test byte [ebp - 2], 0x10
je 0x5105d3da
or byte [ebp - 3], 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5105d3ea
or byte [ebp - 3], 2
mov al, byte [ebp - 3]
pop ecx
pop ebp
ret

Function at 0x5105d3f4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov al, byte [0x5105d438]
mov byte [ebp - 5], al
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5105d415
or byte [ebp - 5], 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5105d425
or byte [ebp - 5], 4
test byte [ebp - 1], 0x20
je 0x5105d42f
or byte [ebp - 5], 2
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x51065338
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
test dl, dl
je 0x5106534a
add esp, 0xfffffff0
call fcn.51003c30
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.51023164
mov eax, dword [0x51090024]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], 0x510658a8
mov eax, dword [0x51090030]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], 0x510658c8
mov eax, dword [ebp - 4]
call fcn.510658e8
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov dl, 1
mov eax, dword [0x51016080]
call fcn.5100389c
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], eax
mov dl, 1
mov eax, dword [0x51016080]
call fcn.5100389c
mov edx, dword [ebp - 4]
mov dword [edx + 0x50], eax
mov dl, 1
mov eax, dword [0x51016080]
call fcn.5100389c
mov edx, dword [ebp - 4]
mov dword [edx + 0x54], eax
mov dl, 1
mov eax, dword [0x51016080]
call fcn.5100389c
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
mov dl, 1
mov eax, dword [0x51016080]
call fcn.5100389c
mov edx, dword [ebp - 4]
mov dword [edx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x10], eax
push 0x5a
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_GetDeviceCaps
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, 0x51060dc8
push eax
push 0
push 0
mov eax, dword [0x51090188]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x51025438]
call fcn.51026cc0
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov dl, 1
mov eax, dword [0x51025438]
call fcn.51026cc0
mov edx, dword [ebp - 4]
mov dword [edx + 0x88], eax
mov dl, 1
mov eax, dword [0x51025438]
call fcn.51026cc0
mov edx, dword [ebp - 4]
mov dword [edx + 0x80], eax
mov eax, dword [ebp - 4]
call fcn.51065e34
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x51065c80
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x51065c80
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x51065c80
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x510654d2
call fcn.51003c88
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret