joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e95a4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
test dl, dl
je 0x4e95b6
add esp, 0xfffffff0
call fcn.00405f98
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.00452798
mov eax, dword [0x558988]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], 0x4e9c7c
mov eax, dword [0x558998]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], 0x4e9c9c
mov eax, dword [ebp - 4]
call fcn.004e9ccc
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov dl, 1
mov eax, dword [0x437ee4]
call fcn.0040595c
mov edx, dword [ebp - 4]
mov dword [edx + 0x54], eax
mov dl, 1
mov eax, dword [0x437ee4]
call fcn.0040595c
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
mov dl, 1
mov eax, dword [0x437ee4]
call fcn.0040595c
mov edx, dword [ebp - 4]
mov dword [edx + 0x5c], eax
mov dl, 1
mov eax, dword [0x437ee4]
call fcn.0040595c
mov edx, dword [ebp - 4]
mov dword [edx + 0x60], eax
mov dl, 1
mov eax, dword [0x437ee4]
call fcn.0040595c
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, 0x4e2f10
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x461450]
call fcn.00467630
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov dl, 1
mov eax, dword [0x461450]
call fcn.00467630
mov edx, dword [ebp - 4]
mov dword [edx + 0x88], eax
mov dl, 1
mov eax, dword [0x461450]
call fcn.00467630
mov edx, dword [ebp - 4]
mov dword [edx + 0x80], eax
mov dl, 1
mov eax, dword [0x461450]
call fcn.00467630
mov edx, dword [ebp - 4]
mov dword [edx + 0x8c], eax
mov dl, 1
mov eax, dword [0x461450]
call fcn.00467630
mov edx, dword [ebp - 4]
mov dword [edx + 0x90], eax
mov eax, dword [ebp - 4]
call fcn.004ea4cc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x4ea1d0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x4ea1d0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x4ea1d0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8c]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x4ea1d0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x4ea1d0
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x4e9790
call fcn.00405ff0
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4e9f44
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 0x4ea10f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x4ea0ed
mov dl, 1
mov eax, dword [0x43b658]
call fcn.00449b38
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.00407614
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 0x4ea0d6
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.00529f88
test al, al
je 0x4ea0ca
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, 0x4ea120
lea eax, [ebp - 0x39c]
call fcn.00420360
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4ea0ca
xor eax, eax
push ebp
push 0x4ea0c3
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 0x4ea190
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4ea0ac
lea eax, [ebp - 0x3a8]
lea edx, [ebp - 0x31c]
mov ecx, pe_nt_image_headers32
call fcn.004082b8
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 0x4ea0ac
mov eax, dword [ebp - 4]
add eax, 0x40
lea edx, [ebp - 0x31c]
mov ecx, pe_nt_image_headers32
call fcn.004082b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ea0ca
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x4e9fb9
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.00449a74
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 0x4ea116
lea eax, [ebp - 0x3a8]
call fcn.00407614
ret
Function at 0x4eaf68
Capabilities:
Create thread
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x55e280]
cmp byte [eax + 0xb1], 0
jne 0x4eafe0
cmp dword [0x55e2a0], 0
jne 0x4eaf9d
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x558358]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x55e2a0], eax
cmp dword [0x55e29c], 0
jne 0x4eafb8
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x55e29c], eax
cmp dword [0x55e2a4], 0
jne 0x4eafe0
lea eax, [ebp - 4]
push eax
push 0
push 0
mov eax, dword [0x558354]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x55e2a4], eax
pop ecx
pop ebp
ret

Function at 0x4eb0e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
call fcn.004eb078
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x4eb101
xor eax, eax
call fcn.004eb0b0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
cmp byte [ebp - 9], 0
je 0x4eb11b
mov al, 1
call fcn.004eb0b0
mov esp, ebp
pop ebp
ret

Function at 0x4ebd40
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x178], 0
je 0x4ebe22
mov eax, dword [ebp - 4]
cmp dword [eax + 0x98], 0
jne 0x4ebe19
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x178]
mov dword [ebp - 0x14], eax
mov al, byte [ebp - 5]
mov byte [ebp - 0x10], al
lea eax, [ebp - 0x14]
push eax
push 0x4ebc40
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
cmp dword [eax + 8], 0
je 0x4ebe19
push 3
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindow
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0xffffffec
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.user32.dll_GetWindowLongW
mov dword [ebp - 0x20], eax
test byte [ebp - 0x20], 8
je 0x4ebdd3
mov dword [ebp - 0x14], 0xfffffffe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x4ebe19
mov dword [ebp - 0xc], eax
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
call fcn.0044550c
push eax
call sub.user32.dll_SetWindowPos
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4ebde8
mov eax, dword [ebp - 4]
inc dword [eax + 0x98]
mov esp, ebp
pop ebp
ret
Function at 0x4ec0ec
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [0x55e280]
cmp dword [eax + 0x178], 0
je 0x4ec2ad
cmp byte [ebp - 5], 0
jne 0x4ec1cf
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa0], 0
jne 0x4ec1c1
mov eax, dword [ebp - 4]
call fcn.004ef97c
push eax
push 0x4ebfd8
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
cmp dword [eax + 0x48], 0
je 0x4ec184
mov eax, dword [0x55e280]
cmp byte [eax + 0xd7], 0
je 0x4ec184
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xdc]
call fcn.004093f4
cmp eax, 0
jl 0x4ec184
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xdc]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
push eax
call sub.user32.dll_ShowWindow
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4ec164
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x4ec1c1
mov dword [ebp - 0xc], eax
cmp byte [ebp - 5], 1
cmc
sbb eax, eax
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
call fcn.0044550c
push eax
call sub.user32.dll_ShowOwnedPopups
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4ec199
mov eax, dword [ebp - 4]
inc dword [eax + 0xa0]
jmp 0x4ec2ad
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa0], 0
jle 0x4ec2ad
mov eax, dword [ebp - 4]
dec dword [eax + 0xa0]
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa0], 0
jne 0x4ec2ad
mov eax, dword [ebp - 4]
cmp dword [eax + 0x48], 0
je 0x4ec245
mov eax, dword [0x55e280]
cmp byte [eax + 0xd7], 0
je 0x4ec245
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xdc]
call fcn.004093f4
cmp eax, 0
jl 0x4ec245
mov dword [ebp - 0xc], eax
push 5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xdc]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
push eax
call sub.user32.dll_ShowWindow
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4ec225
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x4ec282
mov dword [ebp - 0xc], eax
cmp byte [ebp - 5], 1
cmc
sbb eax, eax
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
call fcn.0044550c
push eax
call sub.user32.dll_ShowOwnedPopups
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4ec25a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, dword [ebp - 4]
add eax, 0xdc
mov ecx, 1
mov edx, dword [0x4db230]
call fcn.004095a0
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4ed0d8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xb0], 0
je 0x4ed162
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd7], 0
jne 0x4ed162
push pe_nt_image_headers32
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x178]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 8]
call fcn.0040779c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4ed149
mov eax, dword [ebp - 0x10]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4ed173
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x90]
call fcn.004079f4
jmp 0x4ed173
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x90]
call fcn.004079f4
mov esp, ebp
pop ebp
ret

Function at 0x4eef38
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x88], 0
je 0x4eefc2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
call fcn.00522924
test al, al
je 0x4eefc2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
call fcn.0052238c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4eefc2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov edx, dword [eax]
call dword [edx + 0x108]
test al, al
je 0x4eefb2
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
call fcn.0052238c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
call fcn.005168c4
jmp 0x4eefc2
mov cl, 1
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x78]
mov eax, dword [ebp - 4]
call fcn.004eed00
pop ecx
pop ebp
ret
Function at 0x4f4788
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x8c], 0
jne 0x4f482b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.0052238c
mov ecx, eax
mov dl, 1
mov eax, dword [0x480b20]
call fcn.0051b134
mov edx, dword [ebp - 4]
mov dword [edx + 0x8c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8c]
mov dword [ebp - 8], eax
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0048610c
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + 0x2a4], eax
mov dword [edx + 0x2a0], 0x4f3fd4
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8c]
call fcn.0052238c
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8c]
call fcn.0052238c
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 4]
cmp dword [eax + 0x9c], 0
jne 0x4f48c5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.0052238c
mov ecx, eax
mov dl, 1
mov eax, dword [0x480b20]
call fcn.0051b134
mov edx, dword [ebp - 4]
mov dword [edx + 0x9c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.0048610c
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [eax + 0x2a4], edx
mov dword [eax + 0x2a0], 0x4f4044
push 8
push 0
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
call fcn.0052238c
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
call fcn.0052238c
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 4]
cmp dword [eax + 0x94], 0
jne 0x4f494b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.0052238c
mov ecx, eax
mov dl, 1
mov eax, dword [0x48155c]
call fcn.0051b134
mov edx, dword [ebp - 4]
mov dword [edx + 0x94], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x278], 1
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
call fcn.0052238c
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
call fcn.0052238c
push eax
call sub.user32.dll_ShowWindow
mov esp, ebp
pop ebp
ret
Function at 0x4fe43c
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.00407614
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 0x4fe4a3
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 0x4fe49b
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x20c]
mov ecx, pe_nt_image_headers32
call fcn.004082b8
jmp 0x4fe4a3
mov eax, dword [ebp - 8]
call fcn.00407614
mov esp, ebp
pop ebp
ret
Function at 0x504cbc
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 0x504e39
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x5584e8], 0
mov word [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x45b72c]
call fcn.0045c878
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x504e0f
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0045c960
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x2c]
mov ecx, 0xa
call fcn.004082b8
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 0x504e50
call fcn.00408468
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.0045cbec
test al, al
je 0x504df9
lea ecx, [ebp - 4]
mov edx, 0x504ec4
mov eax, dword [ebp - 0xc]
call fcn.0045d474
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0042721c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x504df9
xor eax, eax
push ebp
push 0x504df2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x504edc
mov eax, dword [ebp - 8]
push eax
call fcn.0040e8ac
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x504ddb
call dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x504ddb
mov eax, dword [ebp + 8]
push eax
call fcn.00504c48
pop ecx
test eax, eax
je 0x504dc2
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x10], eax
jmp 0x504dcb
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 [0x5584e8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504df9
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 0x504e16
mov eax, dword [ebp - 0xc]
call fcn.0040598c
ret

Function at 0x504f04
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 0x504f49
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [0x5584e4]
je 0x504f41
push ebp
call fcn.00504cbc
pop ecx
mov eax, dword [ebp - 8]
mov dword [0x5584e4], eax
mov al, byte [0x5584e8]
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop ebp
ret
Function at 0x504f50
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 0x504fa1
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x504f83
add word [ebp - 2], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x504f95
add word [ebp - 2], 0x4000
test byte [ebp - 9], 0x20
je 0x504fa1
add word [ebp - 2], 0x8000
mov ax, word [ebp - 2]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5132f4
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 [0x55e318], 0
je 0x513441
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x558c60]
mov edx, dword [edx]
xor al, byte [edx + 0xc0]
je 0x513441
mov eax, dword [0x55e31c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x55e318]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x513410
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x55e318]
call fcn.0044550c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x513404
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1f2], 0
je 0x513404
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x513404
mov eax, dword [ebp - 0x14]
call fcn.0052238c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x513404
push ebp
call fcn.005132a8
pop ecx
test al, al
jne 0x513404
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffba
call fcn.00405ce8
test al, al
je 0x513404
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.00405ce8
cmp byte [ebp - 1], 0
je 0x513404
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x30]
call fcn.0040cdb4
test al, al
je 0x513404
mov edx, dword [ebp - 0x14]
mov eax, dword [0x55e31c]
call fcn.005126c0
inc dword [ebp - 0x1c]
dec dword [ebp - 0x20]
jne 0x513360
mov eax, dword [0x55e31c]
cmp dword [eax + 8], 0
jle 0x513428
mov eax, dword [0x55e31c]
call fcn.0051279c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x513441
push ebp
mov eax, dword [ebp - 0x18]
call fcn.005130e4
pop ecx
test al, al
jne 0x513441
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 0x51dfe8
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.0040cd9c
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.005163bc
cmp dword [ebp - 0xc], 0
jne 0x51e03e
push 0
push 0
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.0051de18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x51e145
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
je 0x51e070
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 0x51e082
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 0x51e0c1
add eax, 0xffffff5f
sub eax, 2
jb 0x51e0d9
dec eax
sub eax, 2
jb 0x51e0eb
dec eax
sub eax, 2
jb 0x51e0e2
jmp 0x51e0f4
add eax, 0xfffffdff
sub eax, 2
jb 0x51e0d9
dec eax
sub eax, 2
jb 0x51e0eb
dec eax
sub eax, 2
jb 0x51e0e2
jmp 0x51e0f4
mov byte [ebp - 0x12c], 0
jmp 0x51e0fb
mov byte [ebp - 0x12c], 2
jmp 0x51e0fb
mov byte [ebp - 0x12c], 1
jmp 0x51e0fb
mov byte [ebp - 0x12c], 0
lea eax, [ebp - 0x124]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [ebp - 0x124]
call fcn.004de578
mov ebx, eax
call fcn.00511e4c
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.00518744
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
mov byte [ebp - 0xd], 1
jmp 0x51e149
mov byte [ebp - 0xd], 0
mov al, byte [ebp - 0xd]
pop ebx
mov esp, ebp
pop ebp
ret