joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45810a
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
push esi
push ebx
push dword [eax]
mov edi, ecx
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x458161
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x458164
push dword [esi]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
je 0x458164
push esi
push dword [esi]
push eax
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x458164
xor ebx, ebx
inc ebx
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret
Function at 0x4585b1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
test byte [ebp + 0x14], 1
mov eax, ebx
push edi
mov dword [ebp - 4], eax
mov edi, ebx
je 0x4585c9
inc edi
jmp 0x4585d2
test byte [ebp + 0x14], 2
je 0x4585d2
push 2
pop edi
test byte [ebp + 0x14], 4
je 0x458611
push esi
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], ebx
push eax
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push 1
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
push dword [ebp + 0x14]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
je 0x45863d
mov eax, dword [ebp - 4]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x20]
or eax, 0x400
push eax
push dword [ebp + 0x1c]
push ebx
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
setne bl
cmp dword [ebp - 4], 0
je 0x45864c
push dword [ebp - 4]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x28

Function at 0x45874b
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov word [ebp - 0xc], 0x500
lea eax, [ebp - 8]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x4587a4
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 8]
neg eax
sbb eax, eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, 1
pop ebx
sete al
mov esp, ebp
pop ebp
ret

Function at 0x4587b1
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x1c]
movsx eax, al
and eax, 2
push 0
or eax, 4
shr eax, 1
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
neg eax
sbb eax, eax
neg eax
pop ebp
ret 0x18
Function at 0x458921
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push 0xc
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
push 2
push 0
push 0
push ebx
call edi
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 2
push 0
push 0
lea eax, [ebx + 8]
push eax
call edi
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebx + 4], eax
xor eax, eax
push eax
push eax
push ebx
push 0x458992
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x458c4b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 4]
push eax
mov esi, ecx
lea eax, [ebp - 8]
push eax
push 0xb0
mov dword [ebp - 0x10], esi
push dword [esi]
call edi
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jb 0x458c7b
xor al, al
jmp 0x458cf5
push ebx
xor ebx, ebx
push ebx
push ebx
push 0xe
push dword [esi]
call edi
mov edi, eax
test edi, edi
je 0x458cf2
cmp edi, dword [ebp - 8]
jb 0x458cf2
cmp edi, dword [ebp - 4]
jb 0x458cf2
xor ecx, ecx
lea esi, [edi + 1]
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420db6
pop ecx
push eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push esi
push 0xd
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebp - 0xc]
test eax, eax
je 0x458ce7
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x458cd6
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
lea eax, [esi + eax*2]
push eax
call fcn.00407bcc
mov bl, 1
push esi
call fcn.00420e2c
pop ecx
mov al, bl
jmp 0x458cf4
xor al, al
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x45966e
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [ebp - 4], esi
push dword [esi]
call fcn.0045a82c
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebx, ebx
push ebx
push 0x25
call edi
shl eax, 0x10
or eax, 1
push eax
cmp dword [ebp + 8], ebx
jge 0x4596c6
push 0x25
push 0x100
push dword [esi]
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x25
jmp 0x4596ee
push 0x27
push 0x100
push dword [esi]
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x27
mov edi, dword [ebp - 4]
push 0x101
push dword [edi]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push dword [edi]
call fcn.0045a82c
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x459e9a
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp byte [ebp + 0xc], 1
jne 0x459ec5
lea eax, [ebp + 0xc]
push eax
push 0x1388
push 2
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x459ede
push 1
jmp 0x459ec6
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop esi
pop ebp
ret 8

Function at 0x45a9b1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, ecx
mov ecx, dword [ebp + 8]
push edi
mov dword [ebp - 8], ebx
call fcn.00407d8c
push dword [ebx]
call fcn.0041603a
test al, al
je 0x45a9d9
xor al, al
jmp 0x45aa6e
mov ecx, ebx
call fcn.0045aa77
mov ebx, eax
test ebx, ebx
jne 0x45a9eb
mov ebx, 0x7fff
xor ecx, ecx
lea esi, [ebx + 1]
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420db6
pop ecx
mov edi, eax
mov eax, dword [ebp - 8]
push edi
push esi
push 0xd
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x45aa65
push edi
call fcn.00423740
pop ecx
cmp eax, ebx
jne 0x45aa5c
xor ecx, ecx
test eax, eax
je 0x45aa3d
mov dl, byte [ecx + edi]
cmp dl, 0x20
jl 0x45aa5c
cmp dl, 0x7e
jg 0x45aa5c
inc ecx
cmp ecx, eax
jb 0x45aa2b
push edi
lea ecx, [ebp - 0x18]
call fcn.0045a7e9
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.004077da
lea ecx, [ebp - 0x18]
call fcn.00405904
jmp 0x45aa65
mov ecx, dword [ebp + 8]
push edi
call fcn.00407bcc
push edi
call fcn.00420e2c
pop ecx
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x45f73d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebx]
push 2
pop edx
mov esi, dword [ecx + edi]
lea eax, [ecx + 4]
mov dword [ebx], eax
xor ecx, ecx
mov dword [ebp + 8], esi
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420db6
mov ecx, dword [ebx]
add esi, esi
add ecx, edi
mov edi, eax
push esi
push ecx
push edi
call fcn.00420e40
add dword [ebx], esi
xor eax, eax
mov ecx, dword [ebp + 8]
add esp, 0x10
mov word [esi + edi], ax
test ecx, ecx
jle 0x45f798
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0x45f78f
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x45fd09
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
xor eax, eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esi], eax
mov word [esi + 4], ax
cmp dword [edi + 0x20], eax
je 0x45fdac
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x45fe91
mov eax, 0x80
cmp byte [ebp - 0x60], al
je 0x45fd51
cmp byte [ebp - 0xf0], al
jne 0x45fd5a
cmp byte [edi + 0x1a], 0
jne 0x45fd5a
mov byte [esi], 1
cmp byte [ebp - 0x5f], al
jne 0x45fd69
cmp byte [edi + 0x1b], 0
jne 0x45fd69
mov byte [esi + 1], 1
cmp byte [ebp - 0xef], al
jne 0x45fd7b
cmp byte [edi + 0x1c], 0
jne 0x45fd7b
mov byte [esi + 2], 1
cmp byte [ebp - 0xee], al
jne 0x45fd8d
cmp byte [edi + 0x1d], 0
jne 0x45fd8d
mov byte [esi + 3], 1
cmp byte [ebp - 0xa5], al
jne 0x45fe91
cmp byte [edi + 0x1e], 0
jne 0x45fe91
mov byte [esi + 4], 1
jmp 0x45fe91
push ebx
push 0xa0
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x45fdd9
push 0xa0
call ebx
mov ecx, 0x8000
test cx, ax
je 0x45fde2
cmp byte [edi + 0x1a], 0
jne 0x45fde2
mov byte [esi], 1
push 0xa1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x45fe08
push 0xa1
call ebx
mov ecx, 0x8000
test cx, ax
je 0x45fe12
cmp byte [edi + 0x1b], 0
jne 0x45fe12
mov byte [esi + 1], 1
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x45fe32
push 0x11
call ebx
mov ecx, 0x8000
test cx, ax
je 0x45fe3c
cmp byte [edi + 0x1c], 0
jne 0x45fe3c
mov byte [esi + 2], 1
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x45fe5c
push 0x12
call ebx
mov ecx, 0x8000
test cx, ax
je 0x45fe66
cmp byte [edi + 0x1d], 0
jne 0x45fe66
mov byte [esi + 3], 1
push 0x5b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x45fe86
push 0x5b
call ebx
mov ecx, 0x8000
test cx, ax
je 0x45fe90
cmp byte [edi + 0x1e], 0
jne 0x45fe90
mov byte [esi + 4], 1
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x46001c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10c
cmp byte [eax], 0
push esi
mov esi, ecx
je 0x460034
mov byte [esi + 0x14], 1
cmp byte [eax + 2], 0
je 0x46003e
mov byte [esi + 0x16], 1
cmp byte [eax + 3], 0
je 0x460048
mov byte [esi + 0x17], 1
xor eax, eax
cmp byte [esi + 0x14], al
je 0x460057
cmp byte [esi + 0x1a], al
je 0x460057
mov byte [esi + 0x14], al
cmp byte [esi + 0x15], al
je 0x460064
cmp byte [esi + 0x1b], al
je 0x460064
mov byte [esi + 0x15], al
cmp byte [esi + 0x16], al
je 0x460071
cmp byte [esi + 0x1c], al
je 0x460071
mov byte [esi + 0x16], al
cmp byte [esi + 0x17], al
je 0x46007e
cmp byte [esi + 0x1d], al
je 0x46007e
mov byte [esi + 0x17], al
cmp byte [esi + 0x18], al
je 0x46008b
cmp byte [esi + 0x1e], al
je 0x46008b
mov byte [esi + 0x18], al
cmp dword [esi + 0x20], eax
je 0x46010d
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x460245
mov cl, byte [esi + 0x1a]
mov dl, byte [esi + 0x1b]
test cl, cl
sete al
dec al
and byte [ebp - 0x6c], al
test dl, dl
sete al
dec al
and byte [ebp - 0x6b], al
test cl, cl
jne 0x4600d0
test dl, dl
sete al
dec al
and byte [ebp - 0xfc], al
cmp byte [esi + 0x1c], 0
sete al
dec al
and byte [ebp - 0xfb], al
cmp byte [esi + 0x1d], 0
sete al
dec al
and byte [ebp - 0xfa], al
test cl, cl
sete al
dec al
and byte [ebp - 0xb1], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x460245
push ebx
push edi
lea ecx, [ebp - 0xc]
call fcn.0045fc85
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
call ebx
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x460145
push 0xa0
call edi
mov ecx, 0x8000
test cx, ax
je 0x460163
cmp byte [esi + 0x1a], 0
jne 0x460163
push 0xa0
lea ecx, [ebp - 0xc]
call fcn.0046138f
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.00460c11
push 0xa1
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x460185
push 0xa1
call edi
mov ecx, 0x8000
test cx, ax
je 0x4601a3
cmp byte [esi + 0x1b], 0
jne 0x4601a3
push 0xa1
lea ecx, [ebp - 0xc]
call fcn.0046138f
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.00460c11
push 0x11
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x4601bf
push 0x11
call edi
mov ecx, 0x8000
test cx, ax
je 0x4601da
cmp byte [esi + 0x1c], 0
jne 0x4601da
push 0x11
lea ecx, [ebp - 0xc]
call fcn.0046138f
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.00460c11
push 0x12
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x4601f6
push 0x12
call edi
mov ecx, 0x8000
test cx, ax
je 0x460211
cmp byte [esi + 0x1d], 0
jne 0x460211
push 0x12
lea ecx, [ebp - 0xc]
call fcn.0046138f
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.00460c11
push 0x5b
call ebx
mov ebx, 0x8000
test bx, ax
jne 0x460228
push 0x5b
call edi
test bx, ax
je 0x460243
cmp byte [esi + 0x1e], 0
jne 0x460243
push 0x5b
lea ecx, [ebp - 0xc]
call fcn.0046138f
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.00460c11
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x460a6b
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push edi
movzx edi, al
push edi
mov dword [ebp - 4], ecx
call dword [sym.imp.USER32.dll_GetKeyState]
mov bx, ax
and bl, 1
cmp byte [ebp + 0xc], bl
je 0x460acc
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push ecx
push 0
push 0
push edi
call esi
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.004612c7
mov ecx, dword [ebp - 4]
call fcn.0045fcee
push ecx
push 2
push 0
push edi
call esi
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.004612c7
mov ecx, dword [ebp - 4]
call fcn.0045fcd5
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x460ad6
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dword [esi + 0x20], 0
mov bl, byte [edi]
mov bh, byte [edi + 7]
movzx eax, word [edi + 8]
mov byte [ebp - 4], bl
mov byte [ebp + 8], bh
je 0x460bb1
cmp bl, 0x14
je 0x460bb1
cmp bl, 0x90
je 0x460bb1
cmp bl, 0x91
je 0x460bb1
cmp bl, 0xff
je 0x460b9e
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x460b49
movzx eax, bl
or byte [ebp + eax - 0x120], 0x80
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
movzx edx, bh
mov ecx, edi
shl edx, 0x10
or edx, 1
call fcn.0045ff1e
cmp al, 1
jne 0x460b63
or edx, 0x1000000
cmp byte [esi + 0x17], 0
jne 0x460b74
cmp byte [esi + 0x1d], 0
jne 0x460b74
cmp bl, 0x12
jne 0x460b92
cmp byte [esi + 0x16], 0
jne 0x460b92
cmp byte [esi + 0x1c], 0
jne 0x460b92
or edx, 0x20000000
movzx eax, bl
push edx
push eax
push 0x104
jmp 0x460ba6
push edx
movzx eax, bl
push eax
push 0x100
jmp 0x460ba6
push 1
push eax
push 0x102
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x460c01
cmp bl, 0xff
je 0x460bd7
mov ecx, edi
call fcn.0045ff1e
push ecx
mov ecx, esi
cmp al, 1
jne 0x460bc8
push 1
jmp 0x460bca
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.004612c7
jmp 0x460c01
mov word [ebp - 0x1a], ax
xor edx, edx
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 4
inc edx
xor ecx, ecx
and dword [ebp - 0x14], ecx
and dword [ebp - 0x10], ecx
push eax
push edx
mov dword [ebp - 0x20], edx
mov word [ebp - 0x1c], cx
call dword [sym.imp.USER32.dll_SendInput]
mov ecx, esi
call fcn.0045fcee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x460c11
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dword [esi + 0x20], 0
mov bl, byte [edi]
mov bh, byte [edi + 7]
movzx eax, word [edi + 8]
mov byte [ebp - 4], bl
mov byte [ebp + 8], bh
je 0x460ce9
cmp bl, 0x14
je 0x460ce9
cmp bl, 0x90
je 0x460ce9
cmp bl, 0x91
je 0x460ce9
cmp bl, 0xff
je 0x460d39
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x460c88
movzx eax, bl
xor byte [ebp + eax - 0x120], 0x80
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
movzx edx, bh
mov ecx, edi
shl edx, 0x10
or edx, 0xc0000001
call fcn.0045ff1e
cmp al, 1
jne 0x460ca5
or edx, 0x1000000
cmp byte [esi + 0x17], 0
jne 0x460cb6
cmp byte [esi + 0x1d], 0
jne 0x460cb6
cmp bl, 0x12
jne 0x460cd4
cmp byte [esi + 0x16], 0
jne 0x460cd4
cmp byte [esi + 0x1c], 0
jne 0x460cd4
or edx, 0x20000000
movzx eax, bl
push edx
push eax
push 0x105
jmp 0x460cde
push edx
movzx eax, bl
push eax
push 0x101
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x460d39
cmp bl, 0xff
je 0x460d0f
mov ecx, edi
call fcn.0045ff1e
push ecx
mov ecx, esi
cmp al, 1
jne 0x460d00
push 3
jmp 0x460d02
push 2
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.004612c7
jmp 0x460d39
mov word [ebp - 0x1a], ax
xor edx, edx
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 6
inc edx
xor ecx, ecx
and dword [ebp - 0x14], ecx
and dword [ebp - 0x10], ecx
push eax
push edx
mov dword [ebp - 0x20], edx
mov word [ebp - 0x1c], cx
call dword [sym.imp.USER32.dll_SendInput]
mov ecx, esi
call fcn.0045fcd5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x460d66
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp byte [esi], 0
jne 0x460d97
cmp byte [esi + 1], 0
jne 0x460d97
cmp byte [esi + 2], 0
jne 0x460d97
cmp byte [esi + 3], 0
jne 0x460d97
cmp byte [esi + 4], 0
je 0x460f45
cmp dword [edi + 0x20], 0
push ebx
je 0x460ecd
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x460ecd
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x460e21
cmp byte [esi], 0
mov ecx, 0x80
mov al, byte [ebp - 0xf0]
je 0x460ddf
or al, cl
or byte [ebp - 0x60], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 1], 0
je 0x460df0
or al, cl
or byte [ebp - 0x5f], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 2], 0
je 0x460dfc
or byte [ebp - 0xef], cl
cmp byte [esi + 3], 0
je 0x460e08
or byte [ebp - 0xee], cl
cmp byte [esi + 4], 0
je 0x460e14
or byte [ebp - 0xa5], cl
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
cmp byte [esi], 0
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
jne 0x460e32
cmp byte [esi + 1], 0
je 0x460e49
movzx eax, byte [edi + 0x26]
shl eax, 0x10
or eax, 1
push eax
push 0x10
push 0x100
push dword [edi + 0x20]
call ebx
cmp byte [esi + 2], 0
je 0x460e66
movzx eax, byte [edi + 0x24]
shl eax, 0x10
or eax, 1
push eax
push 0x11
push 0x100
push dword [edi + 0x20]
call ebx
mov al, byte [esi + 3]
test al, al
je 0x460eaa
cmp byte [esi + 2], 0
jne 0x460e8f
cmp byte [edi + 0x1c], 0
jne 0x460e8f
movzx eax, byte [edi + 0x25]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x460ea5
test al, al
je 0x460eaa
movzx eax, byte [edi + 0x25]
shl eax, 0x10
or eax, 1
push eax
push 0x12
push 0x100
push dword [edi + 0x20]
call ebx
cmp byte [esi + 4], 0
je 0x460f3d
movzx eax, byte [edi + 0x29]
shl eax, 0x10
or eax, 1
push eax
push 0x5b
push 0x100
push dword [edi + 0x20]
call ebx
jmp 0x460f3d
xor ebx, ebx
cmp byte [esi], bl
je 0x460ee6
movzx eax, byte [edi + 0x27]
push ecx
push ebx
push eax
push 0xa0
mov ecx, edi
call fcn.004612c7
cmp byte [esi + 1], bl
je 0x460efe
movzx eax, byte [edi + 0x28]
push ecx
push ebx
push eax
push 0xa1
mov ecx, edi
call fcn.004612c7
cmp byte [esi + 2], bl
je 0x460f13
movzx eax, byte [edi + 0x24]
push ecx
push ebx
push eax
push 0x11
mov ecx, edi
call fcn.004612c7
cmp byte [esi + 3], bl
je 0x460f28
movzx eax, byte [edi + 0x25]
push ecx
push ebx
push eax
push 0x12
mov ecx, edi
call fcn.004612c7
cmp byte [esi + 4], bl
je 0x460f3d
movzx eax, byte [edi + 0x29]
push ecx
push ebx
push eax
push 0x5b
mov ecx, edi
call fcn.004612c7
mov ecx, edi
call fcn.0045fcee
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x460f4d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp byte [esi], 0
jne 0x460f7e
cmp byte [esi + 1], 0
jne 0x460f7e
cmp byte [esi + 2], 0
jne 0x460f7e
cmp byte [esi + 3], 0
jne 0x460f7e
cmp byte [esi + 4], 0
je 0x46113a
cmp dword [edi + 0x20], 0
push ebx
je 0x4610bc
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x4610bc
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x461008
cmp byte [esi], 0
mov ecx, 0x80
mov al, byte [ebp - 0xf0]
je 0x460fc6
xor al, cl
xor byte [ebp - 0x60], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 1], 0
je 0x460fd7
xor al, cl
xor byte [ebp - 0x5f], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 2], 0
je 0x460fe3
xor byte [ebp - 0xef], cl
cmp byte [esi + 3], 0
je 0x460fef
xor byte [ebp - 0xee], cl
cmp byte [esi + 4], 0
je 0x460ffb
xor byte [ebp - 0xa5], cl
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
cmp byte [esi], 0
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
jne 0x461019
cmp byte [esi + 1], 0
je 0x461032
movzx eax, byte [edi + 0x26]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push 0x101
push dword [edi + 0x20]
call ebx
cmp byte [esi + 2], 0
je 0x461051
movzx eax, byte [edi + 0x24]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x11
push 0x101
push dword [edi + 0x20]
call ebx
mov al, byte [esi + 3]
test al, al
je 0x461097
cmp byte [esi + 2], 0
jne 0x46107a
cmp byte [edi + 0x1c], 0
jne 0x46107a
movzx eax, byte [edi + 0x25]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x461092
test al, al
je 0x461097
movzx eax, byte [edi + 0x25]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x12
push 0x101
push dword [edi + 0x20]
call ebx
cmp byte [esi + 4], 0
je 0x461132
movzx eax, byte [edi + 0x29]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push 0x101
push dword [edi + 0x20]
call ebx
jmp 0x461132
cmp byte [esi], 0
push 2
pop ebx
je 0x4610d7
movzx eax, byte [edi + 0x27]
push ecx
push ebx
push eax
push 0xa0
mov ecx, edi
call fcn.004612c7
cmp byte [esi + 1], 0
je 0x4610f0
movzx eax, byte [edi + 0x28]
push ecx
push ebx
push eax
push 0xa1
mov ecx, edi
call fcn.004612c7
cmp byte [esi + 2], 0
je 0x461106
movzx eax, byte [edi + 0x24]
push ecx
push ebx
push eax
push 0x11
mov ecx, edi
call fcn.004612c7
cmp byte [esi + 3], 0
je 0x46111c
movzx eax, byte [edi + 0x25]
push ecx
push ebx
push eax
push 0x12
mov ecx, edi
call fcn.004612c7
cmp byte [esi + 4], 0
je 0x461132
movzx eax, byte [edi + 0x29]
push ecx
push ebx
push eax
push 0x5b
mov ecx, edi
call fcn.004612c7
mov ecx, edi
call fcn.0045fcd5
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4