joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4656d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jae 0x46567e
add byte [edx], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
mov byte [esi + 0x46], dl
add byte [ecx], dl
and al, 0x54
inc ecx
jb 0x465700
popal
jns 0x4656cd
push ebx
jns 0x465707
je 0x4656fb
insd dword es:[edi], dx
push esp
jns 0x46570b
dec ecx
outsb dx, byte [esi]
outsw dx, word [esi]
push esi
inc esi
add byte [ecx], dl
push esp
inc ecx
jb 0x465748
popal
jns 0x465715
invalid
push ebx
jns 0x46574f
je 0x465743
insd dword es:[edi], dx
push esp
jns 0x465753
dec ecx
outsb dx, byte [esi]
outsw dx, word [esi]
push esp
inc ebp
add byte [esi + edx*2], ch
add byte [esi], al
push ebx
jns 0x46577f
jae 0x465781
je 0x465773
insd dword es:[edi], dx
insd dword es:[edi], dx
sub al, 0x56
inc esi
add byte [edx], al
add byte [ebp + 0x56530040], cl
lea eax, [eax]
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x465720
mov eax, edx
pop esi
call 0xc5d2567b
call 0x465718
mov ebx, eax
xor esi, esi
jmp 0x465799
cmp al, 0xf0
add byte [ebp + 0x20], dh
pop ecx
pop eax
add byte [ebp + 0x3c80f03c], cl
and al, 0

Function at 0x465718
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
jae 0x46567e
add byte [edx], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
mov byte [esi + 0x46], dl
add byte [ecx], dl
and al, 0x54
inc ecx
jb 0x465700
popal
jns 0x4656cd
push ebx
jns 0x465707
je 0x4656fb
insd dword es:[edi], dx
push esp
jns 0x46570b
dec ecx
outsb dx, byte [esi]
outsw dx, word [esi]
push esi
inc esi
add byte [ecx], dl
push esp
inc ecx
jb 0x465748
popal
jns 0x465715
invalid
push ebx
jns 0x46574f
je 0x465743
insd dword es:[edi], dx
push esp
jns 0x465753
dec ecx
outsb dx, byte [esi]
outsw dx, word [esi]
push esp
inc ebp
add byte [esi + edx*2], ch
add byte [esi], al
push ebx
jns 0x46577f
jae 0x465781
je 0x465773
insd dword es:[edi], dx
insd dword es:[edi], dx
sub al, 0x56
inc esi
add byte [edx], al
add byte [ebp + 0x56530040], cl
lea eax, [eax]
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x465720
mov eax, edx
pop esi
call 0xc5d2567b
call 0x465718
mov ebx, eax
xor esi, esi
jmp 0x465799
cmp al, 0xf0
add byte [ebp + 0x20], dh
pop ecx
pop eax
add byte [ebp + 0x3c80f03c], cl
and al, 0
Function at 0x49c084
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x49c122
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xd]
je 0x49c0e6
cmp byte [ebx + 0x11], 0
jne 0x49c0e6
cmp byte [ebx + 0x24], 0
jne 0x49c0e6
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x49c107
lea edx, [ebp - 4]
mov eax, dword [0x57fd94]
call fcn.0040ccfc
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x475998]
call fcn.00422d5c
call fcn.004072a0
jmp 0x49c107
lea edx, [ebp - 8]
mov eax, dword [0x57fd94]
call fcn.0040ccfc
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x475998]
call fcn.00422d5c
call fcn.004072a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c129
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407c84
ret

Function at 0x49c55c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x49c5aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0049bfd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49c5c3
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x49c5cc
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0049bfd0
dec esi
jne 0x49c5ee
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x49ecd8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x585de0
cmp dword [edi], 0
jne 0x49ed54
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x585ddc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x57e54c
mov ecx, 2
call fcn.0040560c
mov edx, 0x49ecb0
lea eax, [esi + 5]
call fcn.0049ecd0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0049ecd0
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 0x49ed29
mov dword [0x585ddc], 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 0x4b4690
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.004086c8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004b4164
test al, al
jne 0x4b46f1
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x57ffa4]
mov dl, 1
mov eax, dword [0x4b2e98]
call fcn.00422e54
call fcn.004072a0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004b40cc
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 0x4bba7c
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 0x4bba82
ret
Function at 0x4d7cb0
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 [0x586010], 0
je 0x4d7df1
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x57fd64]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x4d7df1
mov eax, dword [0x586014]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x586010]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4d7dc0
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x586010]
call fcn.0048c0a0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4d7db8
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x215], 0
je 0x4d7db8
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x74]
test al, al
je 0x4d7db8
mov eax, dword [ebp - 0x14]
call fcn.004e3ab0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4d7db8
push ebp
call fcn.004d7c6c
pop ecx
test al, al
jne 0x4d7db8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb8
call fcn.004061c0
test al, al
je 0x4d7db8
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, 0xffb9
call fcn.004061c0
cmp byte [ebp - 9], 0
je 0x4d7db8
lea edx, [ebp - 8]
lea eax, [ebp - 0x28]
call fcn.0040ef54
test al, al
je 0x4d7db8
mov edx, dword [ebp - 0x14]
mov eax, dword [0x586014]
call fcn.004d73b4
inc edi
dec ebx
jne 0x4d7d15
mov eax, dword [0x586014]
cmp dword [eax + 8], 0
jle 0x4d7dd8
mov eax, dword [0x586014]
call fcn.004d7468
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4d7df1
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004d7ad4
pop ecx
test al, al
jne 0x4d7df1
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 0x4e044c
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.0040f154
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.004da340
test ebx, ebx
jne 0x4e049f
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004e02c4
mov ebx, eax
test ebx, ebx
je 0x4e0595
cmp esi, ebx
je 0x4e04c8
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 0x4e04dd
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 0x4e0515
add eax, 0xffffff5f
sub eax, 2
jb 0x4e052d
dec eax
sub eax, 2
jb 0x4e0541
dec eax
sub eax, 2
jb 0x4e0537
jmp 0x4e054b
add eax, 0xfffffdff
sub eax, 2
jb 0x4e052d
dec eax
sub eax, 2
jb 0x4e0541
dec eax
sub eax, 2
jb 0x4e0537
jmp 0x4e054b
mov byte [esp + 0x120], 0
jmp 0x4e0553
mov byte [esp + 0x120], 2
jmp 0x4e0553
mov byte [esp + 0x120], 1
jmp 0x4e0553
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0055c2f8
mov esi, eax
call fcn.004d6d60
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.004dbd58
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4e0597
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x506b6c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
movzx ebx, word [0x506ba8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x506b84
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x506b94
or bx, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x506ba4
or bx, 2
mov eax, ebx
pop ebx
ret

Function at 0x52591c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
push 0
push 0
push 0xe
push edi
call sub.user32.dll_SendMessageW
mov ebx, eax
mov eax, esi
mov ecx, ebx
xor edx, edx
call fcn.00407dac
test ebx, ebx
je 0x525970
mov eax, dword [esi]
call fcn.004086c8
push eax
lea eax, [ebx + 1]
push eax
push 0xd
push edi
call sub.user32.dll_SendMessageW
sub ebx, eax
test ebx, ebx
jle 0x525970
mov eax, dword [esi]
test eax, eax
je 0x525965
sub eax, 4
mov eax, dword [eax]
mov edx, eax
sub edx, ebx
mov eax, esi
call fcn.00408844
pop edi
pop esi
pop ebx
ret
Function at 0x52c67c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.0052c744
test eax, eax
je 0x52c6ce
mov edi, dword [ebx + 8]
test edi, edi
je 0x52c6aa
test edi, edi
je 0x52c6aa
mov edx, esi
mov eax, edi
call fcn.004da980
jmp 0x52c6dc
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.0052c744
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00407dac
jmp 0x52c6dc
mov ecx, esi
mov edx, 0x52c6fc
mov eax, ebx
call fcn.0052c604
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.00408004
add esp, 0x200
pop edi
pop esi
pop ebx
ret

Function at 0x54bce4
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.00407c24
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x54bd36
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x54bd2f
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.0040876c
jmp 0x54bd36
mov eax, esi
call fcn.00407c24
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x551410
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 0x55156f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x57f514], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4b30bc]
call fcn.004b40f4
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x551545
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004b41a0
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.0040876c
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x551588
call fcn.0040891c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004b4204
test al, al
je 0x55152f
lea ecx, [ebp - 4]
mov edx, 0x5515fc
mov eax, dword [ebp - 0xc]
call fcn.004b4614
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00424c40
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x55152f
xor edx, edx
push ebp
push 0x551528
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x551614
mov eax, dword [ebp - 8]
push eax
call fcn.0041036c
test eax, eax
je 0x551511
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x551511
call fcn.0055139c
test eax, eax
je 0x551501
mov eax, dword [ebx + 0x50]
jmp 0x551504
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x57f514]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55152f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55154c
mov eax, dword [ebp - 0xc]
call fcn.00405ec8
ret
Function at 0x551678
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 0x5516bf
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5516a2
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5516b3
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x5516bf
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x55be08
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 0x55be29
test edi, 0x40000
je 0x55be43
test bl, bl
jne 0x55bec4
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x55bec4
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 0x55be76
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x55be8b
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x55be9a
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x55beab
cmp byte [esp + 2], 0
je 0x55bec4
cmp byte [esp + 2], 0
je 0x55bebc
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x55bec4
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x55c168
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 0x55c18e
mov eax, esp
push eax
push 0x55c130
call sub.user32.dll_EnumWindows
jmp 0x55c1a1
mov eax, esp
push eax
push 0x55c110
call sub.kernel32.dll_GetCurrentThreadId
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x55c264
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x55c2b4]
test bl, 4
je 0x55c278
or si, 1
test bl, 8
je 0x55c281
or si, 4
test bl, 1
je 0x55c28a
or si, 8
test bl, 2
je 0x55c293
or si, 0x10
test bl, 0x10
je 0x55c29c
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x55c2ac
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x55c2b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x55c2f4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x55c2d3
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x55c2e3
or bx, 4
test esi, 0x20000000
je 0x55c2ef
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x565210
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x565222
add esp, 0xfffffff0
call fcn.0040645c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0049c6ec
mov eax, dword [0x57fad0]
mov dword [eax + 4], ebx
mov dword [eax], 0x5656dc
mov eax, dword [0x57fadc]
mov dword [eax + 4], ebx
mov dword [eax], 0x5656e8
mov eax, ebx
call fcn.005656f4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x46ad00]
call fcn.00405e98
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x46ad00]
call fcn.00405e98
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x46ad00]
call fcn.00405e98
mov dword [ebx + 0x64], eax
mov dl, 1
mov eax, dword [0x46ad00]
call fcn.00405e98
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x46ad00]
call fcn.00405e98
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, 0x5600d8
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x4b75ac]
call fcn.004bc3c0
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x4b75ac]
call fcn.004bc3c0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4b75ac]
call fcn.004bc3c0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4b75ac]
call fcn.004bc3c0
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x4b75ac]
call fcn.004bc3c0
mov dword [ebx + 0x98], eax
mov eax, ebx
call fcn.00565c38
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x565ab8
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x565ab8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x565ab8
mov eax, dword [ebx + 0x94]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x565ab8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x565ab8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5653a2
call fcn.004064b4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x565858
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 0x565a03
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x5659e4
mov dl, 1
mov eax, dword [0x46e550]
call fcn.0048fd24
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00407c24
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5659d3
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.004ea308
test al, al
je 0x5659c6
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, 0x565a14
lea eax, [ebp - 0x394]
call fcn.0041e58c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x5659c6
xor eax, eax
push ebp
push 0x5659bf
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 0x565a84
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x5659a8
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040876c
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 0x5659a8
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040876c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5659c6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5658c9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x2d], 0
mov dl, 1
call fcn.0048fc48
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 0x565a0a
lea eax, [ebp - 0x3a0]
call fcn.00407c24
ret

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

Disassembly:
push ecx
mov eax, dword [0x586120]
cmp byte [eax + 0xc5], 0
jne 0x566632
cmp dword [0x586144], 0
jne 0x5665f2
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x57f628]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x586144], eax
cmp dword [0x586140], 0
jne 0x56660d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x586140], eax
cmp dword [0x586148], 0
jne 0x566632
push esp
push 0
push 0
mov eax, dword [0x57f624]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x586148], eax
pop edx
ret