joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d6a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x45d8ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
call fcn.0045bf6c
xor eax, eax
push ebp
push 0x45d8c4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0045c56c
test al, al
je 0x45d8a8
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407580
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x45d8a8
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00407fb4
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0045becc
test al, al
je 0x45d89c
mov eax, dword [ebp - 4]
call fcn.00407fb4
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.0040800c
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0045cfb8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x45d89c
xor eax, eax
push ebp
push 0x45d895
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0xc]
call fcn.0045bf6c
xor eax, eax
push ebp
push 0x45d877
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407fb4
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.0040800c
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0045bf70
mov eax, dword [ebp - 4]
call fcn.00407fb4
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.0040800c
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0045cfb8
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x45d854
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.0045d568
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.0045d6a0
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d85b
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x45d72b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d8cb
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.0045bf6c
ret
Function at 0x466038
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 0x46603e
ret
Function at 0x47384c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x473a0f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x30], 0
jne 0x4739eb
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x4739eb
mov eax, dword [ebp - 4]
add eax, 0x2c
push eax
mov eax, dword [ebp - 4]
add eax, 0x28
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
shl eax, 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
imul dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x473814]
call fcn.004092d0
add esp, 4
lea eax, [ebp - 8]
call fcn.0040a858
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [0x54a8a8]
push eax
call sub.windowscodecs.dll_WICConvertBitmapSource
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040911c
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x2c
call fcn.00404f58
mov dword [ebp - 0x44], 0x2c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
neg eax
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x38], 1
mov word [ebp - 0x36], 0x20
mov dl, 1
mov eax, dword [0x4648ec]
call fcn.0046f344
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
xor eax, eax
push ebp
push 0x4739bc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov dl, 7
call fcn.00471774
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
push 0
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x70]
push eax
push 0
call sub.gdi32.dll_SetDIBits
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.004703cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4739eb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473a16
lea eax, [ebp - 0x10]
mov edx, dword [0x473814]
call fcn.004092dc
lea eax, [ebp - 8]
call fcn.0040a858
ret
Function at 0x4866d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
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
cmp dword [0x5501e0], 0
je 0x48681d
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x54aae4]
mov edx, dword [edx]
xor al, byte [edx + 0xc0]
je 0x48681d
mov eax, dword [0x5501e4]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5501e0]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4867ec
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x5501e0]
call fcn.00444ef8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4867e0
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1f2], 0
je 0x4867e0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x4867e0
mov eax, dword [ebp - 0x14]
call fcn.00495768
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4867e0
push ebp
call fcn.00486684
pop ecx
test al, al
jne 0x4867e0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffba
call fcn.00405b08
test al, al
je 0x4867e0
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00405b08
cmp byte [ebp - 1], 0
je 0x4867e0
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x30]
call fcn.0040cae4
test al, al
je 0x4867e0
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5501e4]
call fcn.00485a9c
inc dword [ebp - 0x1c]
dec dword [ebp - 0x20]
jne 0x48673c
mov eax, dword [0x5501e4]
cmp dword [eax + 8], 0
jle 0x486804
mov eax, dword [0x5501e4]
call fcn.00485b78
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x48681d
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004864c0
pop ecx
test al, al
jne 0x48681d
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 0x4913c4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
call sub.user32.dll_GetMessagePos
call fcn.0040cacc
mov dword [ebp - 0x1c], eax
movsx eax, word [ebp - 0x1c]
mov dword [ebp - 0x24], eax
movsx eax, word [ebp - 0x1a]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00489798
cmp dword [ebp - 0xc], 0
jne 0x49141a
push 0
push 0
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.004911f4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x491521
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
je 0x49144c
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
sub eax, dword [edx + 0x48]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
sub eax, dword [edx + 0x4c]
mov dword [ebp - 0x134], eax
jmp 0x49145e
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 8]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0xa]
cmp eax, 0x201
jge 0x49149d
add eax, 0xffffff5f
sub eax, 2
jb 0x4914b5
dec eax
sub eax, 2
jb 0x4914c7
dec eax
sub eax, 2
jb 0x4914be
jmp 0x4914d0
add eax, 0xfffffdff
sub eax, 2
jb 0x4914b5
dec eax
sub eax, 2
jb 0x4914c7
dec eax
sub eax, 2
jb 0x4914be
jmp 0x4914d0
mov byte [ebp - 0x12c], 0
jmp 0x4914d7
mov byte [ebp - 0x12c], 2
jmp 0x4914d7
mov byte [ebp - 0x12c], 1
jmp 0x4914d7
mov byte [ebp - 0x12c], 0
lea eax, [ebp - 0x124]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [ebp - 0x124]
call fcn.005126e4
mov ebx, eax
call fcn.00485228
or bx, ax
mov word [ebp - 0x12b], bx
lea eax, [ebp - 0x138]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, dword [ebp - 0xc]
call fcn.0048bb20
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
mov byte [ebp - 0xd], 1
jmp 0x491525
mov byte [ebp - 0xd], 0
mov al, byte [ebp - 0xd]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b9a40
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004074dc
xor eax, eax
push ebp
push 0x4b9ba9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4b9b7c
xor eax, eax
push ebp
push 0x4b9b75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4b9a99
mov eax, dword [ebp - 0x18]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, 2
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4b9b4a
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 0x4b9b39
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4b9af4
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
call fcn.00407fb4
mov ecx, dword [ebp - 0x1c]
add ecx, 2
mov edx, dword [ebp - 0x10]
call fcn.004046f0
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 0xc]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9b40
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x54a778]
mov dl, 1
mov eax, dword [0x4195c8]
call fcn.00424480
call fcn.00406b2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9bb0
lea eax, [ebp - 8]
call fcn.004073f8
ret

Function at 0x4beb74
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ax, word [0x4bebbc]
mov word [ebp - 2], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4beb93
or word [ebp - 2], 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4beba4
or word [ebp - 2], 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4bebb5
or word [ebp - 2], 2
mov ax, word [ebp - 2]
pop ecx
pop ebp
ret

Function at 0x4dee6c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004def3c
test eax, eax
je 0x4deeb3
push pe_nt_image_headers32
lea eax, [ebp - 0x208]
push eax
mov eax, dword [ebp - 4]
call fcn.004def3c
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
lea edx, [ebp - 0x208]
mov eax, dword [ebp - 8]
call fcn.00407580
jmp 0x4deec3
mov ecx, dword [ebp - 8]
mov edx, 0x4deee4
mov eax, dword [ebp - 4]
call fcn.004ded8c
mov eax, dword [ebp - 4]
add eax, 0x1c
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call fcn.004077d8
mov esp, ebp
pop ebp
ret
Function at 0x500d78
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
mov dword [ebp - 8], edx
mov word [ebp - 2], ax
mov eax, dword [ebp - 8]
call fcn.004073f8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x500ddf
push pe_nt_image_headers32
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x500dd7
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x20c]
mov ecx, pe_nt_image_headers32
call fcn.00408048
jmp 0x500ddf
mov eax, dword [ebp - 8]
call fcn.004073f8
mov esp, ebp
pop ebp
ret
Function at 0x5075f8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x507775
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x54a4a8], 0
mov word [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x45acd4]
call fcn.0045be20
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x50774b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0045bf08
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x2c]
mov ecx, 0xa
call fcn.00408048
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 0x50778c
call fcn.004081f8
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.0045c194
test al, al
je 0x507735
lea ecx, [ebp - 4]
mov edx, 0x507800
mov eax, dword [ebp - 0xc]
call fcn.0045ca1c
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00426ad0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x507735
xor eax, eax
push ebp
push 0x50772e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x507818
mov eax, dword [ebp - 8]
push eax
call fcn.0040e450
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x507717
call dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x507717
mov eax, dword [ebp + 8]
push eax
call fcn.00507584
pop ecx
test eax, eax
je 0x5076fe
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x10], eax
jmp 0x507707
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
and eax, 1
cmp eax, 1
sete byte [0x54a4a8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507735
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_2
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507752
mov eax, dword [ebp - 0xc]
call fcn.004057ac
ret

Function at 0x507840
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov byte [ebp - 1], 0
push 0xa5
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x507885
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [0x54a4a4]
je 0x50787d
push ebp
call fcn.005075f8
pop ecx
mov eax, dword [ebp - 8]
mov dword [0x54a4a4], eax
mov al, byte [0x54a4a8]
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop ebp
ret
Function at 0x50788c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
mov al, byte [ebp - 0x10]
mov word [ebp - 2], ax
cmp word [ebp - 2], 0
je 0x5078dd
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5078bf
add word [ebp - 2], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5078d1
add word [ebp - 2], 0x4000
test byte [ebp - 9], 0x20
je 0x5078dd
add word [ebp - 2], 0x8000
mov ax, word [ebp - 2]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x512050
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov byte [ebp - 6], cl
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0xffffffec
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindowLongW
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
cmp byte [ebp - 5], 0
je 0x51208e
test byte [ebp - 0xa], 4
je 0x5120ab
cmp byte [ebp - 5], 0
jne 0x51216e
mov eax, dword [ebp - 0xc]
and eax, 0x40000
cmp eax, 0x40000
jne 0x51216e
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xe], al
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
or al, byte [ebp - 0xe]
je 0x5120e2
push 0
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
cmp byte [ebp - 5], 0
je 0x512116
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0xffffffec
mov eax, dword [ebp - 0xc]
or eax, 0x40000
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.user32.dll_SetWindowLongW
mov dword [ebp - 0x2c], eax
jmp 0x512142
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0xffffffec
mov eax, dword [ebp - 0xc]
and eax, 0xfffbffff
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.user32.dll_SetWindowLongW
mov dword [ebp - 0x3c], eax
mov al, byte [ebp - 6]
and al, byte [ebp - 0xd]
jne 0x512150
cmp byte [ebp - 0xe], 0
je 0x51216e
cmp byte [ebp - 0xe], 0
je 0x512163
push 6
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
jmp 0x51216e
push 5
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
mov esp, ebp
pop ebp
ret
Function at 0x5124dc
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 1], al
call sub.user32.dll_GetActiveWindow
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
cmp byte [ebp - 1], 0
je 0x512507
lea eax, [ebp - 0xc]
push eax
push 0x512498
call sub.user32.dll_EnumWindows
jmp 0x51251b
lea eax, [ebp - 0xc]
push eax
push 0x51246c
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
mov al, byte [ebp - 8]
mov byte [ebp - 2], al
mov al, byte [ebp - 2]
mov esp, ebp
pop ebp
ret

Function at 0x512630
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov word [ebp - 2], ax
mov ax, word [0x512694]
mov word [ebp - 4], ax
test byte [ebp - 2], 4
je 0x51264d
or word [ebp - 4], 1
test byte [ebp - 2], 8
je 0x512658
or word [ebp - 4], 4
test byte [ebp - 2], 1
je 0x512663
or word [ebp - 4], 8
test byte [ebp - 2], 2
je 0x51266e
or word [ebp - 4], 0x10
test byte [ebp - 2], 0x10
je 0x512679
or word [ebp - 4], 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x51268a
or word [ebp - 4], 2
mov ax, word [ebp - 4]
pop ecx
pop ebp
ret

Function at 0x512698
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov ax, word [0x5126e0]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5126bc
or word [ebp - 6], 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5126cd
or word [ebp - 6], 4
test byte [ebp - 1], 0x20
je 0x5126d8
or word [ebp - 6], 2
mov ax, word [ebp - 6]
pop ecx
pop ecx
pop ebp
ret
Function at 0x51d710
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
test dl, dl
je 0x51d722
add esp, 0xfffffff0
call fcn.00405db8
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.00452184
mov eax, dword [0x54a82c]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], 0x51dde8
mov eax, dword [0x54a83c]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], 0x51de08
mov eax, dword [ebp - 4]
call fcn.0051de38
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov dl, 1
mov eax, dword [0x4378d0]
call fcn.0040577c
mov edx, dword [ebp - 4]
mov dword [edx + 0x54], eax
mov dl, 1
mov eax, dword [0x4378d0]
call fcn.0040577c
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
mov dl, 1
mov eax, dword [0x4378d0]
call fcn.0040577c
mov edx, dword [ebp - 4]
mov dword [edx + 0x5c], eax
mov dl, 1
mov eax, dword [0x4378d0]
call fcn.0040577c
mov edx, dword [ebp - 4]
mov dword [edx + 0x60], eax
mov dl, 1
mov eax, dword [0x4378d0]
call fcn.0040577c
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 + 0x48], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
push eax
mov eax, 0x51707c
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x460990]
call fcn.00466b70
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov dl, 1
mov eax, dword [0x460990]
call fcn.00466b70
mov edx, dword [ebp - 4]
mov dword [edx + 0x88], eax
mov dl, 1
mov eax, dword [0x460990]
call fcn.00466b70
mov edx, dword [ebp - 4]
mov dword [edx + 0x80], eax
mov dl, 1
mov eax, dword [0x460990]
call fcn.00466b70
mov edx, dword [ebp - 4]
mov dword [edx + 0x8c], eax
mov dl, 1
mov eax, dword [0x460990]
call fcn.00466b70
mov edx, dword [ebp - 4]
mov dword [edx + 0x90], eax
mov eax, dword [ebp - 4]
call fcn.0051e638
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x51e33c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x51e33c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x51e33c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8c]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x51e33c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x51e33c
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x51d8fc
call fcn.00405e10
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret