joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ef74
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 [0x6d71d0], 0
je 0x49f0c1
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x6d0eb0]
mov edx, dword [edx]
xor al, byte [edx + 0xc0]
je 0x49f0c1
mov eax, dword [0x6d71d4]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x6d71d0]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x49f090
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x6d71d0]
call fcn.004471a4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x49f084
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1f2], 0
je 0x49f084
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x49f084
mov eax, dword [ebp - 0x14]
call fcn.004ae08c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x49f084
push ebp
call fcn.0049ef28
pop ecx
test al, al
jne 0x49f084
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffba
call fcn.00405590
test al, al
je 0x49f084
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.00405590
cmp byte [ebp - 1], 0
je 0x49f084
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x30]
call fcn.0040c800
test al, al
je 0x49f084
mov edx, dword [ebp - 0x14]
mov eax, dword [0x6d71d4]
call fcn.0049e340
inc dword [ebp - 0x1c]
dec dword [ebp - 0x20]
jne 0x49efe0
mov eax, dword [0x6d71d4]
cmp dword [eax + 8], 0
jle 0x49f0a8
mov eax, dword [0x6d71d4]
call fcn.0049e41c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x49f0c1
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0049ed64
pop ecx
test al, al
jne 0x49f0c1
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 0x4a9c68
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.0040c7e8
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.004a203c
cmp dword [ebp - 0xc], 0
jne 0x4a9cbe
push 0
push 0
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.004a9a98
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4a9dc5
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
je 0x4a9cf0
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 0x4a9d02
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 0x4a9d41
add eax, 0xffffff5f
sub eax, 2
jb 0x4a9d59
dec eax
sub eax, 2
jb 0x4a9d6b
dec eax
sub eax, 2
jb 0x4a9d62
jmp 0x4a9d74
add eax, 0xfffffdff
sub eax, 2
jb 0x4a9d59
dec eax
sub eax, 2
jb 0x4a9d6b
dec eax
sub eax, 2
jb 0x4a9d62
jmp 0x4a9d74
mov byte [ebp - 0x12c], 0
jmp 0x4a9d7b
mov byte [ebp - 0x12c], 2
jmp 0x4a9d7b
mov byte [ebp - 0x12c], 1
jmp 0x4a9d7b
mov byte [ebp - 0x12c], 0
lea eax, [ebp - 0x124]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [ebp - 0x124]
call fcn.00545ad8
mov ebx, eax
call fcn.0049dacc
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.004a43c4
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
mov byte [ebp - 0xd], 1
jmp 0x4a9dc9
mov byte [ebp - 0xd], 0
mov al, byte [ebp - 0xd]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4cd0ac
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x4cd148
push 0
mov eax, ebx
call fcn.00407ac0
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExW
mov ebx, eax
test ebx, ebx
jne 0x4cd123
mov ebx, esi
test ebx, ebx
je 0x4cd0f5
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
mov eax, esi
call fcn.00407ac0
push eax
push 1
push 0
mov eax, edi
call fcn.00407ac0
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x4cd13e
mov ecx, dword [0x6d0970]
mov dl, 1
mov eax, dword [0x4cb86c]
call fcn.00425744
call fcn.004065b4
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4cd290
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x42bc90]
call fcn.00408220
xor eax, eax
push ebp
push 0x4cd3da
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x6c78c4], 0
jne 0x4cd2e4
mov ecx, dword [0x6d0498]
mov dl, 1
mov eax, dword [0x4199cc]
call fcn.00425744
call fcn.004065b4
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.00404d0c
mov eax, ebx
call fcn.00407924
mov dword [ebp - 0x20], eax
push esi
mov esi, 0x4cd3e8
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.0040a414
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x4cd32b
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x4cd380
mov dword [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4cd379
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.00407ba8
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x54]
mov ecx, 0x10
call fcn.00407b6c
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.0041ee84
test eax, eax
jne 0x4cd379
mov ebx, 0x15
jmp 0x4cd385
mov ebx, 0x10
jmp 0x4cd385
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
push esi
call dword [0x6c78c4]
call fcn.004cd044
mov eax, dword [ebp - 4]
call fcn.004cd044
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.0040a42c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cd3e1
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00406f38
lea eax, [ebp - 0xc]
mov edx, dword [0x42bc90]
call fcn.004082f8
ret
Function at 0x4e90dc
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.00406fbc
xor eax, eax
push ebp
push 0x4e9245
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4e9218
xor eax, eax
push ebp
push 0x4e9211
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 0x4e9135
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 0x4e91e6
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 0x4e91d5
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 0x4e9190
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.00407ac0
mov ecx, dword [ebp - 0x1c]
add ecx, 2
mov edx, dword [ebp - 0x10]
call fcn.0040489c
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 0x4e91dc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x6d05d0]
mov dl, 1
mov eax, dword [0x4199cc]
call fcn.00425744
call fcn.004065b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e924c
lea eax, [ebp - 8]
call fcn.00406ed8
ret

Function at 0x4f0dac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ax, word [0x4f0df4]
mov word [ebp - 2], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4f0dcb
or word [ebp - 2], 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4f0ddc
or word [ebp - 2], 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4f0ded
or word [ebp - 2], 2
mov ax, word [ebp - 2]
pop ecx
pop ebp
ret

Function at 0x511ca4
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.00511d74
test eax, eax
je 0x511ceb
push pe_nt_image_headers32
lea eax, [ebp - 0x208]
push eax
mov eax, dword [ebp - 4]
call fcn.00511d74
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
lea edx, [ebp - 0x208]
mov eax, dword [ebp - 8]
call fcn.00407060
jmp 0x511cfb
mov ecx, dword [ebp - 8]
mov edx, 0x511d1c
mov eax, dword [ebp - 4]
call fcn.00511bc4
mov eax, dword [ebp - 4]
add eax, 0x1c
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call fcn.004072b8
mov esp, ebp
pop ebp
ret
Function at 0x533bac
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.00406ed8
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 0x533c13
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 0x533c0b
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x20c]
mov ecx, pe_nt_image_headers32
call fcn.00407b6c
jmp 0x533c13
mov eax, dword [ebp - 8]
call fcn.00406ed8
mov esp, ebp
pop ebp
ret
Function at 0x53a42c
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 0x53a5a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x6c7e68], 0
mov word [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x46b60c]
call fcn.0046c758
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x53a57f
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0046c840
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x2c]
mov ecx, 0xa
call fcn.00407b6c
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 0x53a5c0
call fcn.00407d1c
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.0046cacc
test al, al
je 0x53a569
lea ecx, [ebp - 4]
mov edx, 0x53a634
mov eax, dword [ebp - 0xc]
call fcn.0046d354
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.004280b4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x53a569
xor eax, eax
push ebp
push 0x53a562
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x53a64c
mov eax, dword [ebp - 8]
push eax
call fcn.0040e438
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x53a54b
call dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x53a54b
mov eax, dword [ebp + 8]
push eax
call fcn.0053a3b8
pop ecx
test eax, eax
je 0x53a532
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x10], eax
jmp 0x53a53b
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 [0x6c7e68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53a569
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 0x53a586
mov eax, dword [ebp - 0xc]
call fcn.00405234
ret

Function at 0x53a674
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 0x53a6b9
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [0x6c7e64]
je 0x53a6b1
push ebp
call fcn.0053a42c
pop ecx
mov eax, dword [ebp - 8]
mov dword [0x6c7e64], eax
mov al, byte [0x6c7e68]
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop ebp
ret
Function at 0x53a6c0
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 0x53a711
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x53a6f3
add word [ebp - 2], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x53a705
add word [ebp - 2], 0x4000
test byte [ebp - 9], 0x20
je 0x53a711
add word [ebp - 2], 0x8000
mov ax, word [ebp - 2]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x545444
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 0x545482
test byte [ebp - 0xa], 4
je 0x54549f
cmp byte [ebp - 5], 0
jne 0x545562
mov eax, dword [ebp - 0xc]
and eax, 0x40000
cmp eax, 0x40000
jne 0x545562
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 0x5454d6
push 0
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
cmp byte [ebp - 5], 0
je 0x54550a
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 0x545536
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 0x545544
cmp byte [ebp - 0xe], 0
je 0x545562
cmp byte [ebp - 0xe], 0
je 0x545557
push 6
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
jmp 0x545562
push 5
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
mov esp, ebp
pop ebp
ret
Function at 0x5458d0
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 0x5458fb
lea eax, [ebp - 0xc]
push eax
push 0x54588c
call sub.user32.dll_EnumWindows
jmp 0x54590f
lea eax, [ebp - 0xc]
push eax
push 0x545860
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 0x545a24
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov word [ebp - 2], ax
mov ax, word [0x545a88]
mov word [ebp - 4], ax
test byte [ebp - 2], 4
je 0x545a41
or word [ebp - 4], 1
test byte [ebp - 2], 8
je 0x545a4c
or word [ebp - 4], 4
test byte [ebp - 2], 1
je 0x545a57
or word [ebp - 4], 8
test byte [ebp - 2], 2
je 0x545a62
or word [ebp - 4], 0x10
test byte [ebp - 2], 0x10
je 0x545a6d
or word [ebp - 4], 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x545a7e
or word [ebp - 4], 2
mov ax, word [ebp - 4]
pop ecx
pop ebp
ret

Function at 0x545a8c
Capabilities:
Log keystrokes via polling

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
test dl, dl
je 0x550b16
add esp, 0xfffffff0
call fcn.00405840
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.0045496c
mov eax, dword [0x6d07d8]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], 0x5511dc
mov eax, dword [0x6d07f8]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], 0x5511fc
mov eax, dword [ebp - 4]
call fcn.0055122c
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov dl, 1
mov eax, dword [0x4396c0]
call fcn.00405204
mov edx, dword [ebp - 4]
mov dword [edx + 0x54], eax
mov dl, 1
mov eax, dword [0x4396c0]
call fcn.00405204
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
mov dl, 1
mov eax, dword [0x4396c0]
call fcn.00405204
mov edx, dword [ebp - 4]
mov dword [edx + 0x5c], eax
mov dl, 1
mov eax, dword [0x4396c0]
call fcn.00405204
mov edx, dword [ebp - 4]
mov dword [edx + 0x60], eax
mov dl, 1
mov eax, dword [0x4396c0]
call fcn.00405204
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, 0x54a470
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x4712f0]
call fcn.00477748
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov dl, 1
mov eax, dword [0x4712f0]
call fcn.00477748
mov edx, dword [ebp - 4]
mov dword [edx + 0x88], eax
mov dl, 1
mov eax, dword [0x4712f0]
call fcn.00477748
mov edx, dword [ebp - 4]
mov dword [edx + 0x80], eax
mov dl, 1
mov eax, dword [0x4712f0]
call fcn.00477748
mov edx, dword [ebp - 4]
mov dword [edx + 0x8c], eax
mov dl, 1
mov eax, dword [0x4712f0]
call fcn.00477748
mov edx, dword [ebp - 4]
mov dword [edx + 0x90], eax
mov eax, dword [ebp - 4]
call fcn.00551a2c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x551730
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x551730
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x551730
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8c]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x551730
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x551730
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x550cf0
call fcn.00405898
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x5514a4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc58
push ebx
xor edx, edx
mov dword [ebp - 0x3a8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x55166f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x55164d
mov dl, 1
mov eax, dword [0x43ce34]
call fcn.0044b7d0
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.00406ed8
lea eax, [ebp - 0x11c]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x551636
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
call fcn.004b5d08
test al, al
je 0x55162a
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
mov dword [ebp - 0x3a4], eax
mov byte [ebp - 0x3a0], 0
lea ecx, [ebp - 0x3a4]
mov edx, 0x551680
lea eax, [ebp - 0x39c]
call fcn.00420d68
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x55162a
xor eax, eax
push ebp
push 0x551623
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 0x200
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x31c]
push eax
push 0
push 0
push 0x5516f0
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x55160c
lea eax, [ebp - 0x3a8]
lea edx, [ebp - 0x31c]
mov ecx, pe_nt_image_headers32
call fcn.00407b6c
mov edx, dword [ebp - 0x3a8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + eax*4 - 0x11c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x44]
jne 0x55160c
mov eax, dword [ebp - 4]
add eax, 0x40
lea edx, [ebp - 0x31c]
mov ecx, pe_nt_image_headers32
call fcn.00407b6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55162a
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x551519
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov byte [eax + 0x39], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov dl, 1
call fcn.0044b70c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x551676
lea eax, [ebp - 0x3a8]
call fcn.00406ed8
ret