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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4c8aac
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x48]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004c8988
test al, al
je 0x4c8a8e
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00409074
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x4c8a8e
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00409cb8
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.00409cb8
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00409d20
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x4c8a47
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c8ab3
lea eax, [ebp - 0x2c]
call fcn.00408eec
lea eax, [ebp - 4]
call fcn.00408eec
ret

Function at 0x4c8d5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00409cb8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.004c85a8
test al, al
jne 0x4c8dbd
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x6fdce8]
mov dl, 1
mov eax, dword [0x4c6d2c]
call fcn.00425dc8
call fcn.004085ac
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004c84d4
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4d17dc
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 0x4d17e2
ret
Function at 0x4e78d8
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x6f58f0
test edx, edx
jne 0x4e78f7
xor eax, eax
jmp 0x4e7a15
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x4e7914
push esi
push edx
push eax
call fcn.004e7a1c
add esp, 0xc
jmp 0x4e7a15
push esi
push edx
push eax
call fcn.004e7cdc
add esp, 0xc
jmp 0x4e7a15
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4f5738
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 - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x7035e0], 0
je 0x4f5879
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x6fd750]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x4f5879
mov eax, dword [0x7035e4]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x7035e0]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4f5848
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x7035e0]
call fcn.0049706c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4f5840
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x205], 0
je 0x4f5840
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x4f5840
mov eax, dword [ebp - 0x14]
call fcn.005010a0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4f5840
push ebp
call fcn.004f56f4
pop ecx
test al, al
jne 0x4f5840
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb9
call fcn.00407588
test al, al
je 0x4f5840
mov byte [ebp - 9], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 9]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffba
call fcn.00407588
cmp byte [ebp - 9], 0
je 0x4f5840
lea edx, [ebp - 8]
lea eax, [ebp - 0x28]
call fcn.0040ec5c
test al, al
je 0x4f5840
mov edx, dword [ebp - 0x14]
mov eax, dword [0x7035e4]
call fcn.004f4e3c
inc edi
dec ebx
jne 0x4f579d
mov eax, dword [0x7035e4]
cmp dword [eax + 8], 0
jle 0x4f5860
mov eax, dword [0x7035e4]
call fcn.004f4ef0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4f5879
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004f555c
pop ecx
test al, al
jne 0x4f5879
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 0x4fdc88
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.0040ee5c
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.004f7d7c
test ebx, ebx
jne 0x4fdcdb
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004fdb00
mov ebx, eax
test ebx, ebx
je 0x4fddd1
cmp esi, ebx
je 0x4fdd04
mov eax, dword [esp]
sub eax, dword [ebx + 0x50]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x54]
mov dword [esp + 0x118], eax
jmp 0x4fdd19
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x4fdd51
add eax, 0xffffff5f
sub eax, 2
jb 0x4fdd69
dec eax
sub eax, 2
jb 0x4fdd7d
dec eax
sub eax, 2
jb 0x4fdd73
jmp 0x4fdd87
add eax, 0xfffffdff
sub eax, 2
jb 0x4fdd69
dec eax
sub eax, 2
jb 0x4fdd7d
dec eax
sub eax, 2
jb 0x4fdd73
jmp 0x4fdd87
mov byte [esp + 0x120], 0
jmp 0x4fdd8f
mov byte [esp + 0x120], 2
jmp 0x4fdd8f
mov byte [esp + 0x120], 1
jmp 0x4fdd8f
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0057e5fc
mov esi, eax
call fcn.004f47e8
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.004f9640
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4fddd3
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x515864
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x515951
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x515923
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
xor edx, edx
push ebp
push 0x515912
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.00406a30
mov eax, dword [ebp - 4]
call fcn.00515748
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.user32.dll_SetClipboardData
test eax, eax
jne 0x5158fb
mov ecx, dword [0x6fcf68]
mov dl, 1
mov eax, dword [0x474994]
call fcn.00425d8c
call fcn.004085ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515919
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
Function at 0x515a18
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x515ac0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x515a93
mov edx, ebx
mov eax, dword [0x4cecd0]
call fcn.004d6980
test al, al
je 0x515a83
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
mov edi, eax
push edi
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004d6898
call fcn.004086a0
jmp 0x515ac7
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x515a4b
mov ecx, dword [0x6fd07c]
mov dl, 1
mov eax, dword [0x515650]
call fcn.00425d8c
call fcn.004085ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515ac7
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x515ad0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x515b28
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515b2f
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x515b38
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x515b8d
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515b94
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x515c04
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x515c79
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00515748
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.004d695c
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x515c63
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515c80
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x515c88
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x515cfd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00515748
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x68]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x515ce7
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515d04
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x54670c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.005467bc
test eax, eax
je 0x546747
push 0x100
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.005467bc
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00409074
jmp 0x546755
mov ecx, esi
mov edx, 0x546774
mov eax, ebx
call fcn.00546694
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.004092cc
add esp, 0x200
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00408eec
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x56e4be
push 0x100
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x56e4b7
mov eax, esi
mov edx, esp
mov ecx, 0x100
call fcn.00409d74
jmp 0x56e4be
mov eax, esi
call fcn.00408eec
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x573a10
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x573b6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x6f7f40], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4c6f50]
call fcn.004c84fc
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x573b45
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004c85e4
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00409d74
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x573b88
call fcn.00409f24
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004c8780
test al, al
je 0x573b2f
lea ecx, [ebp - 4]
mov edx, 0x573bfc
mov eax, dword [ebp - 0xc]
call fcn.004c8ce0
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0042803c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x573b2f
xor edx, edx
push ebp
push 0x573b28
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x573c14
mov eax, dword [ebp - 8]
push eax
call fcn.00410670
test eax, eax
je 0x573b11
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x573b11
call fcn.0057399c
test eax, eax
je 0x573b01
mov eax, dword [ebx + 0x50]
jmp 0x573b04
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x6f7f40]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x573b2f
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 0x573b4c
mov eax, dword [ebp - 0xc]
call fcn.004072c8
ret

Function at 0x573c78
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x573cbf
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x573ca2
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x573cb3
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x573cbf
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x57e108
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x57e129
test edi, 0x40000
je 0x57e143
test bl, bl
jne 0x57e1c4
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x57e1c4
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x57e176
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x57e18b
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x57e19a
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x57e1ab
cmp byte [esp + 2], 0
je 0x57e1c4
cmp byte [esp + 2], 0
je 0x57e1bc
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x57e1c4
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x57e46c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x57e492
mov eax, esp
push eax
push 0x57e434
call sub.user32.dll_EnumWindows
jmp 0x57e4a5
mov eax, esp
push eax
push 0x57e414
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x57e568
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x57e5b8]
test bl, 4
je 0x57e57c
or si, 1
test bl, 8
je 0x57e585
or si, 4
test bl, 1
je 0x57e58e
or si, 8
test bl, 2
je 0x57e597
or si, 0x10
test bl, 0x10
je 0x57e5a0
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x57e5b0
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x57e5bc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x57e5f8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x57e5d7
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x57e5e7
or bx, 4
test esi, 0x20000000
je 0x57e5f3
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x586ef4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x586f06
add esp, 0xfffffff0
call fcn.00407838
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004a82b0
mov eax, dword [0x6fd0ec]
mov dword [eax + 4], ebx
mov dword [eax], 0x5873bc
mov eax, dword [0x6fd100]
mov dword [eax + 4], ebx
mov dword [eax], 0x5873c8
mov eax, ebx
call fcn.005873d4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x474dac]
call fcn.00407298
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x474dac]
call fcn.00407298
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x474dac]
call fcn.00407298
mov dword [ebx + 0x64], eax
mov dl, 1
mov eax, dword [0x474dac]
call fcn.00407298
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x474dac]
call fcn.00407298
mov dword [ebx + 0x84], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x50], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x68]
push eax
mov eax, 0x582124
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x4cbe48]
call fcn.004d2120
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x4cbe48]
call fcn.004d2120
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4cbe48]
call fcn.004d2120
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4cbe48]
call fcn.004d2120
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x4cbe48]
call fcn.004d2120
mov dword [ebx + 0x98], eax
mov eax, ebx
call fcn.00587918
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x587798
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x587798
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x587798
mov eax, dword [ebx + 0x94]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x587798
mov eax, dword [ebx + 0x98]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x587798
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x587086
call fcn.00407890
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x587538
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5876e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x5876c4
mov dl, 1
mov eax, dword [0x478548]
call fcn.0049b2c0
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00408eec
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5876b3
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.00507680
test al, al
je 0x5876a6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x5876f4
lea eax, [ebp - 0x394]
call fcn.00421330
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x5876a6
xor eax, eax
push ebp
push 0x58769f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x587764
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x587688
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.00409d74
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x587688
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.00409d74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5876a6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5875a9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.0049b210
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5876ea
lea eax, [ebp - 0x3a0]
call fcn.00408eec
ret

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

Disassembly:
push ecx
mov eax, dword [0x7036e0]
cmp byte [eax + 0xc5], 0
jne 0x5882b2
cmp dword [0x703704], 0
jne 0x588272
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x6f8054]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x703704], eax
cmp dword [0x703700], 0
jne 0x58828d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x703700], eax
cmp dword [0x703708], 0
jne 0x5882b2
push esp
push 0
push 0
mov eax, dword [0x6f8050]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x703708], eax
pop edx
ret