joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47188c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x471a3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x30], 0
jne 0x471a16
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x471a16
mov eax, dword [ebp - 0xc]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x28
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x28]
add ebx, ebx
add ebx, ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
imul ebx
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x471854]
call fcn.00408b70
add esp, 4
lea eax, [ebp - 4]
call fcn.0040a0f8
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [0x57f7e8]
push eax
call sub.windowscodecs.dll_WICConvertBitmapSource
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.004089bc
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x2c
call fcn.00404b3c
mov dword [ebp - 0x38], 0x2c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
neg eax
mov dword [ebp - 0x30], eax
mov word [ebp - 0x2c], 1
mov word [ebp - 0x2a], 0x20
mov dl, 1
mov eax, dword [0x464df4]
call fcn.0046e228
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], ebx
xor ecx, ecx
push ebp
push 0x4719f4
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, ebx
mov dl, 7
call fcn.0046fea0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x70]
push eax
push 0
call sub.gdi32.dll_SetDIBits
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.0046eeb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x471a16
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471a41
lea eax, [ebp - 8]
mov edx, dword [0x471854]
call fcn.00408b7c
lea eax, [ebp - 4]
call fcn.0040a0f8
ret

Function at 0x47cdbc
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, 0x57c064
test edx, edx
jne 0x47cddb
xor eax, eax
jmp 0x47cef9
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x47cdf8
push esi
push edx
push eax
call fcn.0047cf00
add esp, 0xc
jmp 0x47cef9
push esi
push edx
push eax
call fcn.0047d1c0
add esp, 0xc
jmp 0x47cef9
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x48b2d8
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 - 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 [0x5851c8], 0
je 0x48b419
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x57fb34]
mov edx, dword [edx]
xor al, byte [edx + 0xc0]
je 0x48b419
mov eax, dword [0x5851cc]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5851c8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x48b3e8
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x5851c8]
call fcn.0044503c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x48b3e0
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1f2], 0
je 0x48b3e0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x48b3e0
mov eax, dword [ebp - 0x14]
call fcn.00496e90
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x48b3e0
push ebp
call fcn.0048b294
pop ecx
test al, al
jne 0x48b3e0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffba
call fcn.00405384
test al, al
je 0x48b3e0
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00405384
cmp byte [ebp - 1], 0
je 0x48b3e0
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.0040c3f4
test al, al
je 0x48b3e0
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5851cc]
call fcn.0048a9f4
inc edi
dec ebx
jne 0x48b33d
mov eax, dword [0x5851cc]
cmp dword [eax + 8], 0
jle 0x48b400
mov eax, dword [0x5851cc]
call fcn.0048aaac
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x48b419
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0048b0fc
pop ecx
test al, al
jne 0x48b419
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 0x4938d4
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.0040c3dc
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.0048d884
test ebx, ebx
jne 0x493927
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.00493750
mov ebx, eax
test ebx, ebx
je 0x493a1d
cmp esi, ebx
je 0x493950
mov eax, dword [esp]
sub eax, dword [ebx + 0x48]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x4c]
mov dword [esp + 0x118], eax
jmp 0x493965
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 0x49399d
add eax, 0xffffff5f
sub eax, 2
jb 0x4939b5
dec eax
sub eax, 2
jb 0x4939c9
dec eax
sub eax, 2
jb 0x4939bf
jmp 0x4939d3
add eax, 0xfffffdff
sub eax, 2
jb 0x4939b5
dec eax
sub eax, 2
jb 0x4939c9
dec eax
sub eax, 2
jb 0x4939bf
jmp 0x4939d3
mov byte [esp + 0x120], 0
jmp 0x4939db
mov byte [esp + 0x120], 2
jmp 0x4939db
mov byte [esp + 0x120], 1
jmp 0x4939db
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0051f780
mov esi, eax
call fcn.0048a384
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.0048f298
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x493a1f
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x4ac90c
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 [0x42a20c]
call fcn.00407f3c
xor eax, eax
push ebp
push 0x4aca56
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x57e760], 0
jne 0x4ac960
mov ecx, dword [0x57f59c]
mov dl, 1
mov eax, dword [0x419094]
call fcn.0042405c
call fcn.004063a8
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.00404b3c
mov eax, ebx
call fcn.00407640
mov dword [ebp - 0x20], eax
push esi
mov esi, 0x4aca64
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.0040a0f8
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x4ac9a7
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x4ac9fc
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 0x4ac9f5
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.004078c4
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x54]
mov ecx, 0x10
call fcn.00407888
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.0041e0e8
test eax, eax
jne 0x4ac9f5
mov ebx, 0x15
jmp 0x4aca01
mov ebx, 0x10
jmp 0x4aca01
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 [0x57e760]
call fcn.004ac778
mov eax, dword [ebp - 4]
call fcn.004ac778
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.0040a110
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aca5d
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00406cd4
lea eax, [ebp - 0xc]
mov edx, dword [0x42a20c]
call fcn.00408014
ret
Function at 0x4ccb08
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00406d58
xor eax, eax
push ebp
push 0x4ccc47
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4ccc1a
xor edx, edx
push ebp
push 0x4ccc13
push dword fs:[edx]
mov dword fs:[edx], esp
mov esi, dword [ebp - 4]
mov eax, esi
test eax, eax
je 0x4ccb55
sub eax, 4
mov eax, dword [eax]
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4ccbe8
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor edx, edx
push ebp
push 0x4ccbd7
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
test eax, eax
je 0x4ccb9a
sub eax, 4
mov eax, dword [eax]
mov esi, eax
add esi, esi
mov eax, dword [ebp - 4]
call fcn.004077dc
lea ecx, [esi + 2]
mov edx, ebx
call fcn.00404728
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ccbde
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x57f624]
mov dl, 1
mov eax, dword [0x419094]
call fcn.0042405c
call fcn.004063a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ccc4e
lea eax, [ebp - 4]
call fcn.00406c74
ret

Function at 0x4d2ffc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
movzx ebx, word [0x4d3038]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4d3014
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4d3024
or bx, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4d3034
or bx, 2
mov eax, ebx
pop ebx
ret

Function at 0x4f1930
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.004f19e0
test eax, eax
je 0x4f196b
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.004f19e0
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406dfc
jmp 0x4f1979
mov ecx, esi
mov edx, 0x4f1998
mov eax, ebx
call fcn.004f1878
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.00407054
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x50e418
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.00406c74
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x50e46a
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x50e463
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00407888
jmp 0x50e46a
mov eax, esi
call fcn.00406c74
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x513c0c
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 0x513d6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x57ed30], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x45af4c]
call fcn.0045c098
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x513d41
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0045c180
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00407888
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x513d84
call fcn.00407a38
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0045c40c
test al, al
je 0x513d2b
lea ecx, [ebp - 4]
mov edx, 0x513df8
mov eax, dword [ebp - 0xc]
call fcn.0045cc94
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.004266ac
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x513d2b
xor edx, edx
push ebp
push 0x513d24
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x513e10
mov eax, dword [ebp - 8]
push eax
call fcn.0040ddb8
test eax, eax
je 0x513d0d
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x513d0d
call fcn.00513b98
test eax, eax
je 0x513cfd
mov eax, dword [ebx + 0x50]
jmp 0x513d00
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x57ed30]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x513d2b
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 0x513d48
mov eax, dword [ebp - 0xc]
call fcn.00405028
ret

Function at 0x513e74
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 0x513ebb
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x513e9e
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x513eaf
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x513ebb
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x51f26c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
mov eax, esi
mov edx, 0xffffffec
push edx
push eax
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x51f293
test edi, 0x40000
je 0x51f2ad
test bl, bl
jne 0x51f33c
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x51f33c
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 0x51f2e0
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x51f2fc
mov eax, esi
mov edx, 0xffffffec
mov ecx, 0x40000
or ecx, edi
push ecx
push edx
push eax
call sub.user32.dll_SetWindowLongW
jmp 0x51f312
mov eax, esi
mov edx, 0xffffffec
mov ecx, 0xfffbffff
and ecx, edi
push ecx
push edx
push eax
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x51f323
cmp byte [esp + 2], 0
je 0x51f33c
cmp byte [esp + 2], 0
je 0x51f334
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x51f33c
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x51f5f0
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 0x51f616
mov eax, esp
push eax
push 0x51f5b8
call sub.user32.dll_EnumWindows
jmp 0x51f629
mov eax, esp
push eax
push 0x51f598
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 0x51f6ec
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x51f73c]
test bl, 4
je 0x51f700
or si, 1
test bl, 8
je 0x51f709
or si, 4
test bl, 1
je 0x51f712
or si, 8
test bl, 2
je 0x51f71b
or si, 0x10
test bl, 0x10
je 0x51f724
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x51f734
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x51f740
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x51f77c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x51f75b
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x51f76b
or bx, 4
test esi, 0x20000000
je 0x51f777
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x528540
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x528552
add esp, 0xfffffff0
call fcn.00405634
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00452234
mov eax, dword [0x57f740]
mov dword [eax + 4], ebx
mov dword [eax], 0x528980
mov eax, dword [0x57f750]
mov dword [eax + 4], ebx
mov dword [eax], 0x52898c
mov eax, ebx
call fcn.00528998
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x4379f8]
call fcn.00404ff8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4379f8]
call fcn.00404ff8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4379f8]
call fcn.00404ff8
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x4379f8]
call fcn.00404ff8
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x4379f8]
call fcn.00404ff8
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x48], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x60]
push eax
mov eax, 0x5232fc
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x460c20]
call fcn.00466e98
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x460c20]
call fcn.00466e98
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x460c20]
call fcn.00466e98
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x460c20]
call fcn.00466e98
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x460c20]
call fcn.00466e98
mov dword [ebx + 0x90], eax
mov eax, ebx
call fcn.00528f90
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x528dac
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x528dac
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x528dac
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x528dac
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x528dac
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5286cf
call fcn.0040568c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x528b4c
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 0x528cf7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x528cd8
mov dl, 1
mov eax, dword [0x43b16c]
call fcn.00449668
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.00406c74
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x528cc7
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.0049d224
test al, al
je 0x528cba
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, 0x528d08
lea eax, [ebp - 0x394]
call fcn.0041fa40
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x528cba
xor eax, eax
push ebp
push 0x528cb3
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 0x528d78
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x528c9c
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407888
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x44]
jne 0x528c9c
mov eax, dword [ebp - 4]
add eax, 0x40
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407888
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x528cba
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x528bbd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.004495a4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x528cfe
lea eax, [ebp - 0x3a0]
call fcn.00406c74
ret

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

Disassembly:
push ecx
mov eax, dword [0x585314]
cmp byte [eax + 0xb1], 0
jne 0x529922
cmp dword [0x585334], 0
jne 0x5298e2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x57ee50]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x585334], eax
cmp dword [0x585330], 0
jne 0x5298fd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x585330], eax
cmp dword [0x585338], 0
jne 0x529922
push esp
push 0
push 0
mov eax, dword [0x57ee4c]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x585338], eax
pop edx
ret