joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459c48
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov word [ebp - 6], dx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x459d24
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x459cf6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x459ce5
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
call fcn.00403274
mov eax, dword [ebp - 4]
call fcn.00459b24
mov eax, dword [ebp - 0x10]
push eax
movzx eax, word [ebp - 6]
push eax
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459cec
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalUnlock
ret

Function at 0x459d34
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x459da8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
je 0x459d7b
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.00405648
jmp 0x459d83
mov eax, dword [ebp - 8]
call fcn.00405450
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459daf
cmp dword [ebp - 0xc], 0
je 0x459d9f
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x459df8
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x459eb1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov word [ebp - 0xe], ax
cmp word [ebp - 0xe], 0
je 0x459e84
mov dx, word [ebp - 0xe]
mov eax, dword [0x434bbc]
call fcn.0043a148
test al, al
je 0x459e6f
movzx eax, word [ebp - 0xe]
push eax
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0xc], eax
push 9
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
mov dx, word [ebp - 0xe]
mov eax, dword [ebp - 8]
call fcn.0043a028
call fcn.00404e70
jmp 0x459eb8
movzx eax, word [ebp - 0xe]
push eax
call sub.user32.dll_EnumClipboardFormats
mov word [ebp - 0xe], ax
cmp word [ebp - 0xe], 0
jne 0x459e2c
mov ecx, dword [0x5819f4]
mov dl, 1
mov eax, dword [0x40ba60]
call fcn.0041200c
call fcn.00404dc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459eb8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
mov esp, ebp
pop ebp
ret

Function at 0x459ebc
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x459f1c
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0xc], eax
push 9
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov dx, 2
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459f23
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x459f28
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x459f88
push dword fs:[eax]
mov dword fs:[eax], esp
push 3
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0xc], eax
push 9
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov dx, 3
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459f8f
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x45a00c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x45a082
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00459b24
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0xe]
mov eax, dword [ebp - 8]
call fcn.0043a110
mov eax, dword [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x14], 0
je 0x45a06c
mov eax, dword [ebp - 0x14]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a089
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x45a090
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x45a107
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00459b24
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0xe]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x14], 0
je 0x45a0f1
mov eax, dword [ebp - 0x14]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a10e
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x45a170
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov word [ebp - 6], dx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x45a1b6
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [ebp - 6]
push eax
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a1bd
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
mov dword [ebp - 8], edx
mov word [ebp - 2], ax
mov eax, dword [ebp - 8]
call fcn.00405450
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x45ca69
push pe_nt_image_headers32
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10c]
mov ecx, pe_nt_image_headers32
call fcn.004056c0
mov esp, ebp
pop ebp
ret
Function at 0x461a14
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x461b4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x4332c4]
call fcn.0043341c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x461b24
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004334f8
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.004056c0
mov ecx, dword [ebp - 0x28]
dec ebp
fmul dword [ebp + 0x64badc45]
sbb eax, dword [esi]

Function at 0x461bc0
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 0x461c05
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [0x57d01c]
je 0x461bfd
push ebp
call fcn.00461a14
pop ecx
mov eax, dword [ebp - 8]
mov dword [0x57d01c], eax
mov al, byte [0x57d020]
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop ebp
ret

Function at 0x461c0c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x12]
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 - 0xe]
mov word [ebp - 2], ax
cmp word [ebp - 2], 0
je 0x461c5d
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x461c3f
add word [ebp - 2], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x461c51
add word [ebp - 2], 0x4000
test byte [ebp - 7], 0x20
je 0x461c5d
add word [ebp - 2], 0x8000
mov ax, word [ebp - 2]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x467c2c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
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 [0x587788], 0
je 0x467d81
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x581d10]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x467d81
mov eax, dword [0x58778c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x587788]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x467d50
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x587788]
call fcn.00422198
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x467d44
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x467d44
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x467d44
mov eax, dword [ebp - 0x14]
call fcn.00474f28
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x467d44
push ebp
call fcn.00467be0
pop ecx
test al, al
jne 0x467d44
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.0040470c
test al, al
je 0x467d44
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.0040470c
cmp byte [ebp - 1], 0
je 0x467d44
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x467d44
mov edx, dword [ebp - 0x14]
mov eax, dword [0x58778c]
call fcn.0046701c
inc dword [ebp - 0x1c]
dec dword [ebp - 0x20]
jne 0x467c98
mov eax, dword [0x58778c]
cmp dword [eax + 8], 0
jle 0x467d68
mov eax, dword [0x58778c]
call fcn.004670f8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x467d81
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00467a1c
pop ecx
test al, al
jne 0x467d81
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 0x471430
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
call sub.user32.dll_GetMessagePos
call fcn.00407b74
mov dword [ebp - 0x19], eax
movsx eax, word [ebp - 0x19]
mov dword [ebp - 0x21], eax
movsx eax, word [ebp - 0x17]
mov dword [ebp - 0x1d], eax
lea ecx, [ebp - 0x15]
lea edx, [ebp - 0x21]
mov eax, dword [ebp - 4]
call fcn.0046a978
cmp dword [ebp - 0xc], 0
jne 0x471485
push 0
push 0
lea edx, [ebp - 0x15]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.00471344
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x471581
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
je 0x4714b7
mov eax, dword [ebp - 0x15]
mov edx, dword [ebp - 0xc]
sub eax, dword [edx + 0x40]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x11]
mov edx, dword [ebp - 0xc]
sub eax, dword [edx + 0x44]
mov dword [ebp - 0x134], eax
jmp 0x4714c9
mov eax, dword [ebp - 0x15]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x11]
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 0x471508
add eax, 0xffffff5f
sub eax, 2
jb 0x471520
dec eax
sub eax, 2
jb 0x471532
dec eax
sub eax, 2
jb 0x471529
jmp 0x47153b
add eax, 0xfffffdff
sub eax, 2
jb 0x471520
dec eax
sub eax, 2
jb 0x471532
dec eax
sub eax, 2
jb 0x471529
jmp 0x47153b
mov byte [ebp - 0x12c], 0
jmp 0x471542
mov byte [ebp - 0x12c], 2
jmp 0x471542
mov byte [ebp - 0x12c], 1
jmp 0x471542
mov byte [ebp - 0x12c], 0
lea eax, [ebp - 0x121]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [ebp - 0x121]
call fcn.004829c8
mov byte [ebp - 0x12b], al
lea eax, [ebp - 0x138]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, dword [ebp - 0xc]
call fcn.0046c970
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
mov byte [ebp - 0xd], 1
jmp 0x471585
mov byte [ebp - 0xd], 0
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x4723b0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x240], 0
je 0x4723d1
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x472406
mov eax, dword [ebp - 4]
test byte [eax + 0x55], 1
jne 0x4723f6
mov eax, dword [ebp - 4]
call fcn.00470228
test eax, eax
jne 0x4723f6
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x472530
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00471cdc
jmp 0x472530
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x5c]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x472529
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 4]
call fcn.00474f28
push eax
call sub.user32.dll_BeginPaint
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.0046c970
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004723b0
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 4], edx
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x5c]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x70]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 4]
call fcn.00474f28
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472530
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_DeleteObject
ret
mov esp, ebp
pop ebp
ret
Function at 0x47b96c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [0x581f80]
cmp byte [eax + 0xc], 0
je 0x47bade
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x47bad7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x587798], 0
jne 0x47b9c5
push 0x47bae4
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [ebp - 4], eax
push 0x47baec
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x587798], eax
cmp dword [0x57d164], 0
jne 0x47bac0
push 0x47bafc
call sub.kernel32.dll_LoadLibraryA
mov dword [0x57d164], eax
cmp dword [0x57d164], 0
je 0x47bac0
push 0x47bb08
mov eax, dword [0x57d164]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58779c], eax
push 0x47bb18
mov eax, dword [0x57d164]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5877a0], eax
push 0x47bb2c
mov eax, dword [0x57d164]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5877a4], eax
push 0x47bb44
mov eax, dword [0x57d164]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5877a8], eax
push 0x47bb5c
mov eax, dword [0x57d164]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5877ac], eax
push 0x47bb70
mov eax, dword [0x57d164]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5877b0], eax
push 0x47bb88
mov eax, dword [0x57d164]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5877b4], eax
push 0x47bba0
mov eax, dword [0x57d164]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5877b8], eax
push 0x47bbbc
mov eax, dword [0x57d164]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5877bc], eax
push 0x47bbc8
mov eax, dword [0x57d164]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5877c0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bade
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ecx
pop ecx
pop ebp
ret

Function at 0x482924
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov word [ebp - 2], ax
mov al, byte [0x48297c]
mov byte [ebp - 3], al
test byte [ebp - 2], 4
je 0x48293e
or byte [ebp - 3], 1
test byte [ebp - 2], 8
je 0x482948
or byte [ebp - 3], 4
test byte [ebp - 2], 1
je 0x482952
or byte [ebp - 3], 8
test byte [ebp - 2], 2
je 0x48295c
or byte [ebp - 3], 0x10
test byte [ebp - 2], 0x10
je 0x482966
or byte [ebp - 3], 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x482976
or byte [ebp - 3], 2
mov al, byte [ebp - 3]
pop ecx
pop ebp
ret

Function at 0x482980
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov al, byte [0x4829c4]
mov byte [ebp - 5], al
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4829a1
or byte [ebp - 5], 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4829b1
or byte [ebp - 5], 4
test byte [ebp - 1], 0x20
je 0x4829bb
or byte [ebp - 5], 2
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x482a34
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [ebp - 0x101]
call fcn.004829c8
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x48be98
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
test dl, dl
je 0x48beaa
add esp, 0xfffffff0
call fcn.00404874
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.0042daec
mov eax, dword [0x581a18]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], 0x48c408
mov eax, dword [0x581a28]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], 0x48c428
mov eax, dword [ebp - 4]
call fcn.0048c448
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41ef70]
call fcn.004044e0
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41ef70]
call fcn.004044e0
mov edx, dword [ebp - 4]
mov dword [edx + 0x50], eax
mov dl, 1
mov eax, dword [0x41ef70]
call fcn.004044e0
mov edx, dword [ebp - 4]
mov dword [edx + 0x54], eax
mov dl, 1
mov eax, dword [0x41ef70]
call fcn.004044e0
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
mov dl, 1
mov eax, dword [0x41ef70]
call fcn.004044e0
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 + 0x40], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, 0x486b44
push eax
push 0
push 0
mov eax, dword [0x581c48]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4344a4]
call fcn.00435ef0
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov dl, 1
mov eax, dword [0x4344a4]
call fcn.00435ef0
mov edx, dword [ebp - 4]
mov dword [edx + 0x88], eax
mov dl, 1
mov eax, dword [0x4344a4]
call fcn.00435ef0
mov edx, dword [ebp - 4]
mov dword [edx + 0x80], eax
mov eax, dword [ebp - 4]
call fcn.0048c9f8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x48c83c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x48c83c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x48c83c
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x48c032
call fcn.004048cc
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret