joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006d2c0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x60
xor r10d, r10d
mov rbp, r9
mov qword [rax + 0x30], r10
mov r14, r8
mov eax, dword [rsp + 0xa0]
mov r15, rdx
lea ebx, [r10 + 1]
test bl, al
je 0x14006d2ff
mov edi, ebx
jmp 0x14006d30c
mov ecx, 2
mov edi, r10d
test cl, al
cmovne edi, ecx
xor sil, sil
test al, 4
je 0x14006d36c
and qword [rsp + 0x80], r10
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x80]
mov edx, 0xa
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0xa8]
mov r8d, ebx
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov rcx, qword [rsp + 0x80]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14006d3d2
mov r10, qword [rsp + 0xa8]
mov rax, qword [rsp + 0xd0]
mov r9d, edi
mov ecx, dword [rsp + 0xb8]
mov r8, rbp
mov qword [rsp + 0x50], rax
bts ecx, 0xa
mov rax, qword [rsp + 0xc8]
mov rdx, r14
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x38], r10
mov dword [rsp + 0x30], ecx
mov rcx, r15
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
setne sil
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x14006d3e5
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
lea r11, [rsp + 0x60]
mov al, sil
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x14006d53c
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
and dword [rbp + 0x18], 0
lea rax, [rbp + 0x20]
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x18]
and dword [rsp + 0x48], 0
mov r9d, 0x220
and dword [rsp + 0x40], 0
mov r8d, reloc.OLEAUT32.dll_RegisterActiveObject
and dword [rsp + 0x38], 0
mov dl, 2
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov word [rbp + 0x1c], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp + 0x10], eax
test eax, eax
je 0x14006d5b9
mov rdx, qword [rbp + 0x20]
lea r8, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp + 0x10], ecx
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp + 0x10]
cmp eax, 1
sete al
add rsp, 0x60
pop rbp
ret
Function at 0x14006d77c
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x40
mov r14, r9
mov r15, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rdi]
mov r9, rsi
mov dword [rsp + 0x30], 2
mov rcx, rax
and dword [rsp + 0x28], 0
mov r8, rbx
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [r14]
lea r9, [rsi + 0x10]
mov dword [rsp + 0x30], 2
mov rcx, rax
and dword [rsp + 0x28], 0
mov r8, rbx
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rax, qword [r15]
lea r8, [0x14006d864]
and qword [rsp + 0x28], 0
mov r9, rsi
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
mov qword [rsi + 8], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret

Function at 0x14006dbc0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbp, rdx
lea r9, [rsp + 0x60]
mov r15, rcx
lea r8, [rsp + 0x68]
mov rcx, qword [rcx]
mov edx, 0xb0
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x68], eax
jae 0x14006dc86
mov rcx, qword [r15]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
mov rdi, rax
test eax, eax
je 0x14006dc86
cmp edi, dword [rsp + 0x68]
jb 0x14006dc86
cmp edi, dword [rsp + 0x60]
jb 0x14006dc86
lea ebx, [rax + 1]
lea rcx, [rsi - 1]
lea eax, [rsi + 2]
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.140024ce8
mov rcx, qword [r15]
lea edx, [rsi + 0xd]
mov r9, rax
mov r8d, ebx
mov r14, rax
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x14006dc79
cmp dword [rsp + 0x60], edi
je 0x14006dc66
mov ecx, dword [rsp + 0x60]
mov word [r14 + rcx*2], si
mov eax, dword [rsp + 0x68]
mov rcx, rbp
lea rdx, [r14 + rax*2]
call fcn.140007d8c
mov sil, 1
mov rcx, r14
call fcn.140024ca4
mov al, sil
jmp 0x14006dc88
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006e904
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
mov rcx, qword [rcx]
mov dl, 1
call fcn.1400703f4
xor edx, edx
test ebx, ebx
lea ebx, [rdx + 0x25]
mov ecx, ebx
jns 0x14006e960
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rdi]
mov r8d, ebx
shl eax, 0x10
mov edx, 0x100
mov r9d, eax
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r8d, ebx
jmp 0x14006e99c
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rdi]
mov edx, 0x100
shl eax, 0x10
mov r8d, reloc.OLEAUT32.dll_SafeArrayRedim
mov r9d, eax
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r8d, reloc.OLEAUT32.dll_SafeArrayRedim
mov rcx, qword [rdi]
mov edx, 0x101
shl eax, 0x10
mov r9d, eax
mov eax, 0xc0000001
or r9, rax
call qword [sym.imp.USER32.dll_PostMessageW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rdi]
xor edx, edx
call fcn.1400703f4
mov rbx, qword [rsp + 0x30]
mov al, 1
add rsp, 0x20
pop rdi
ret

Function at 0x14006f374
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
cmp dl, 1
jne 0x14006f3ca
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov dword [rsp + 0x28], 0x1388
xor edx, edx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
je 0x14006f3e7
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, 1
jmp 0x14006f3dd
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
mov edx, ebx
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
add rsp, 0x40
pop rbx
ret

Function at 0x1400703f4
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp dl, 1
jne 0x140070426
call fcn.1400707a0
test al, al
jne 0x140070443
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, 1
jmp 0x140070439
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
mov edx, ebx
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
add rsp, 0x20
pop rbx
ret
Function at 0x14007060c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbx, rcx
mov r14, rdx
mov rcx, rdx
call fcn.14000a8f4
mov r15, qword [rbx]
mov rcx, r15
call fcn.1400707a0
xor edi, edi
test al, al
je 0x14007064a
xor al, al
jmp 0x140070711
mov rcx, qword [rbx]
call fcn.1400707a0
test al, al
jne 0x140070670
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbp, rax
test eax, eax
jne 0x140070675
mov ebp, 0x7fff
mov rcx, 0xffffffffffffffff
lea ebx, [rbp + 1]
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.140024ce8
mov r9, rax
mov r8d, ebx
mov edx, reloc.WSOCK32.dll_listen
mov rcx, r15
mov rsi, rax
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
jle 0x140070707
mov rcx, rsi
call fcn.14002db40
mov ecx, ebp
cmp rax, rcx
jne 0x1400706fc
test rax, rax
je 0x1400706d6
mov cl, byte [rdi + rsi]
sub cl, 0x20
cmp cl, 0x5e
ja 0x1400706fc
inc rdi
cmp rdi, rax
jb 0x1400706c3
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.14007037c
mov rdx, r14
lea rcx, [rsp + 0x20]
call fcn.14000d934
lea rcx, [rsp + 0x20]
call fcn.14000a11c
jmp 0x140070707
mov rdx, rsi
mov rcx, r14
call fcn.140007d8c
mov rcx, rsi
call fcn.140024ca4
mov al, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140072ecc
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x220
mov rbx, rcx
mov edx, 0x3e9
mov rcx, qword [rcx + 0x88]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edi, edi
test rax, rax
je 0x140072f61
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
test byte [rbx + 0x10], 1
je 0x140072f20
cmp word [rsp + 0x20], di
jne 0x140072f20
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBeep]
jmp 0x140072f61
movsd xmm0, qword [rbx + 0x18]
comisd xmm0, xmmword [0x1400c71a8]
jbe 0x140072f41
mov rcx, qword [rbx + 0x88]
mov edx, 0x40a
call qword [sym.imp.USER32.dll_KillTimer]
lea rcx, [rbx + 0x48]
lea rdx, [rsp + 0x20]
call fcn.140007d8c
mov rcx, qword [rbx + 0x88]
mov edx, 1
call qword [sym.imp.USER32.dll_EndDialog]
mov rbx, qword [rsp + 0x230]
add rsp, 0x220
pop rdi
ret
Function at 0x1400773fc
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov rcx, qword [r8]
mov rdi, rdx
mov rsi, r8
mov r14d, dword [rcx + rdx]
lea rax, [rcx + 4]
mov qword [r8], rax
mov eax, 2
movsxd rcx, r14d
inc rcx
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140024ce8
mov rdx, qword [rsi]
lea ecx, [r14 + r14]
movsxd rbx, ecx
add rdx, rdi
mov r8, rbx
mov rcx, rax
mov r15, rax
call fcn.140025d80
add qword [rsi], rbx
xor eax, eax
movsxd rcx, r14d
mov word [r15 + rcx*2], ax
test r14d, r14d
jle 0x14007748b
mov rax, r15
mov ecx, r14d
xor word [rax], r14w
lea rax, [rax + 2]
sub rcx, 1
jne 0x14007747d
mov rbx, qword [rsp + 0x30]
mov rax, r15
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret

Function at 0x140077b68
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov rax, qword [rcx + 0x28]
neg rax
sbb edx, edx
and edx, 2
cmp dword [rcx], edx
cmovge edx, dword [rcx]
mov ecx, edx
jmp fcn.14007925c

Function at 0x140077b80
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov rax, qword [rcx + 0x28]
neg rax
sbb edx, edx
and edx, 2
cmp dword [rcx + 4], edx
cmovge edx, dword [rcx + 4]
mov ecx, edx
jmp fcn.14007925c
Function at 0x140077b9c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x120
xor esi, esi
mov rbx, rdx
mov dword [rdx], esi
mov rdi, rcx
mov word [rdx + 4], si
cmp qword [rcx + 0x28], rsi
je 0x140077c36
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x140077d0c
mov al, 0x80
cmp byte [rsp + 0xc0], al
je 0x140077beb
cmp byte [rsp + 0x30], al
jne 0x140077bf4
cmp byte [rdi + 0x1e], sil
jne 0x140077bf4
mov byte [rbx], 1
cmp byte [rsp + 0xc1], al
jne 0x140077c07
cmp byte [rdi + 0x1f], sil
jne 0x140077c07
mov byte [rbx + 1], 1
cmp byte [rsp + 0x31], al
jne 0x140077c17
cmp byte [rdi + 0x20], sil
jne 0x140077c17
mov byte [rbx + 2], 1
cmp byte [rsp + 0x32], al
jne 0x140077c27
cmp byte [rdi + 0x21], sil
jne 0x140077c27
mov byte [rbx + 3], 1
cmp byte [rsp + 0x7b], al
jne 0x140077d0c
jmp 0x140077d02
mov ecx, QueryPathOfRegTypeLib
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebp, 0x8000
test bp, ax
jne 0x140077c5b
mov ecx, QueryPathOfRegTypeLib
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x140077c64
cmp byte [rdi + 0x1e], sil
jne 0x140077c64
mov byte [rbx], 1
mov ecx, QueryPathOfRegTypeLib
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x140077c84
mov ecx, QueryPathOfRegTypeLib
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x140077c8e
cmp byte [rdi + 0x1f], sil
jne 0x140077c8e
mov byte [rbx + 1], 1
mov ecx, reloc.WSOCK32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x140077cae
mov ecx, reloc.WSOCK32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x140077cb8
cmp byte [rdi + 0x20], sil
jne 0x140077cb8
mov byte [rbx + 2], 1
mov ecx, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x140077cd8
mov ecx, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x140077ce2
cmp byte [rdi + 0x21], sil
jne 0x140077ce2
mov byte [rbx + 3], 1
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x140077d02
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x140077d0c
cmp byte [rdi + 0x22], sil
jne 0x140077d0c
mov byte [rbx + 4], 1
lea r11, [rsp + 0x120]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140078304
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, r8
mov r14, rdx
mov rdx, rax
mov qword [rcx + 0x28], rax
mov r8b, 1
mov rbx, rcx
call fcn.1400792e0
xor r15d, r15d
cmp byte [rbx + 8], 1
mov bpl, r15b
mov dword [rsp + 0x50], r15d
mov word [rsp + 0x54], r15w
jne 0x14007836d
xor r8d, r8d
mov dl, reloc.WSOCK32.dll_sendto
mov rcx, rbx
call fcn.140078a94
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov bpl, al
call fcn.140077b9c
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140077b3c
mov edi, r15d
movsxd rdx, edi
mov rcx, r14
call fcn.140006560
movzx esi, word [rax]
test si, si
je 0x1400783a9
mov rcx, rbx
inc edi
call fcn.140077e08
mov r8d, 1
movzx edx, si
mov rcx, rbx
call fcn.140078268
mov dword [rbx + 0x18], r15d
mov word [rbx + 0x1c], r15w
jmp 0x140078370
cmp byte [rbx + 8], 1
jne 0x1400783c9
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140078e14
mov r8b, bpl
mov dl, reloc.WSOCK32.dll_sendto
mov rcx, rbx
call fcn.140078a94
mov rdx, qword [rbx + 0x28]
xor r8d, r8d
mov rcx, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
jmp fcn.1400792e0

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
movzx esi, dl
mov r14, rcx
mov ecx, esi
mov bl, r8b
mov ebp, esi
call qword [sym.imp.USER32.dll_GetKeyState]
movzx edi, ax
and di, 1
cmp bl, dil
je 0x140078b15
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
mov dl, sil
mov r8d, eax
mov rcx, r14
call fcn.14007941c
mov rcx, r14
call fcn.140077b80
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r9d, 2
mov dl, sil
mov r8d, eax
mov rcx, r14
call fcn.14007941c
mov rcx, r14
call fcn.140077b68
mov rbx, qword [rsp + 0x40]
mov al, dil
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x140078b34
Capabilities:
Check for time delay via queryperformancecounter
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x160
mov dil, byte [rdx]
mov rbx, rcx
mov bpl, byte [rdx + 7]
xor r14d, r14d
movzx ecx, word [rdx + 8]
mov rsi, rdx
mov r15d, 1
cmp qword [rbx + 0x28], r14
je 0x140078c25
cmp dil, 0x14
je 0x140078c25
lea eax, [rdi + 0x70]
cmp al, r15b
jbe 0x140078c25
cmp dil, 0xff
je 0x140078c0d
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x140078bb2
movzx eax, dil
lea rcx, [rsp + 0x60]
or byte [rsp + rax + 0x60], 0x80
call qword [sym.imp.USER32.dll_SetKeyboardState]
movzx r8d, bpl
mov rcx, rsi
shl r8, 0x10
or r8, r15
call fcn.140077dcc
mov r9, r8
bts r9, 0x18
cmp al, r15b
cmovne r9, r8
cmp byte [rbx + 0x1b], r14b
jne 0x140078be6
cmp byte [rbx + 0x21], r14b
jne 0x140078be6
cmp dil, 0x12
jne 0x140078c02
cmp byte [rbx + 0x1a], r14b
jne 0x140078c02
cmp byte [rbx + 0x20], r14b
jne 0x140078c02
bts r9, 0x1d
movzx r8d, dil
mov edx, 0x104
jmp 0x140078c19
movzx r8d, dil
mov edx, 0x100
jmp 0x140078c19
movzx r8d, cx
mov r9, r15
mov edx, 0x102
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x140078c82
cmp dil, 0xff
je 0x140078c50
mov rcx, rsi
call fcn.140077dcc
mov r8b, bpl
mov dl, dil
mov rcx, rbx
cmp al, r15b
jne 0x140078c46
mov r9d, r15d
jmp 0x140078c49
xor r9d, r9d
call fcn.14007941c
jmp 0x140078c82
mov word [rsp + 0x3a], cx
lea rdx, [rsp + 0x30]
mov ecx, r15d
mov dword [rsp + 0x30], r15d
mov r8d, SafeArrayCreateEx
mov word [rsp + 0x38], r14w
mov qword [rsp + 0x3c], 4
mov qword [rsp + 0x48], r14
call qword [sym.imp.USER32.dll_SendInput]
mov rcx, rbx
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
jmp fcn.140077b80
Function at 0x140078ca8
Capabilities:
Check for time delay via queryperformancecounter
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x160
mov dil, byte [rdx]
mov rbx, rcx
mov bpl, byte [rdx + 7]
xor r14d, r14d
movzx ecx, word [rdx + 8]
mov rsi, rdx
mov r9d, 1
cmp qword [rbx + 0x28], r14
je 0x140078d8d
cmp dil, 0x14
je 0x140078d8d
lea eax, [rdi + 0x70]
cmp al, r9b
jbe 0x140078d8d
cmp dil, 0xff
je 0x140078dee
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x140078d2b
movzx eax, dil
lea rcx, [rsp + 0x60]
xor byte [rsp + rax + 0x60], 0x80
call qword [sym.imp.USER32.dll_SetKeyboardState]
mov rcx, rsi
call fcn.140077dcc
movzx r9d, al
mov eax, 0xc0000001
shl r9, 0x18
add r9, rax
movzx eax, bpl
shl rax, 0x10
or r9, rax
cmp byte [rbx + 0x1b], r14b
jne 0x140078d60
cmp byte [rbx + 0x21], r14b
jne 0x140078d60
cmp dil, 0x12
jne 0x140078d78
cmp byte [rbx + 0x1a], r14b
jne 0x140078d78
cmp byte [rbx + 0x20], r14b
jne 0x140078d78
bts r9, 0x1d
mov edx, 0x105
jmp 0x140078d7d
mov edx, 0x101
mov rcx, qword [rbx + 0x28]
movzx r8d, dil
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x140078dee
cmp dil, 0xff
je 0x140078dbc
mov rcx, rsi
call fcn.140077dcc
cmp al, r9b
mov r8b, bpl
mov r9d, 3
mov dl, dil
mov rcx, rbx
je 0x140078db5
mov r9d, 2
call fcn.14007941c
jmp 0x140078dee
mov word [rsp + 0x3a], cx
lea rdx, [rsp + 0x30]
mov ecx, r9d
mov dword [rsp + 0x30], r9d
mov r8d, SafeArrayCreateEx
mov word [rsp + 0x38], r14w
mov qword [rsp + 0x3c], 6
mov qword [rsp + 0x48], r14
call qword [sym.imp.USER32.dll_SendInput]
mov rcx, rbx
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
jmp fcn.140077b68
Function at 0x140078e14
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x38]
sub rsp, 0x130
xor esi, esi
mov rbx, rdx
mov rdi, rcx
cmp byte [rdx], sil
jne 0x140078e58
cmp byte [rdx + 1], sil
jne 0x140078e58
cmp byte [rdx + 2], sil
jne 0x140078e58
cmp byte [rdx + 3], sil
jne 0x140078e58
cmp byte [rdx + 4], sil
je 0x140079016
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x140078f9c
call qword [sym.imp.USER32.dll_GetParent]
test rax, rax
je 0x140078f9c
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x140078ece
mov cl, 0x80
mov al, byte [rsp + 0x40]
cmp byte [rbx], sil
je 0x140078e97
or al, cl
or byte [rbp - 0x30], cl
mov byte [rsp + 0x40], al
cmp byte [rbx + 1], sil
je 0x140078ea6
or al, cl
or byte [rbp - 0x2f], cl
mov byte [rsp + 0x40], al
cmp byte [rbx + 2], sil
je 0x140078eb0
or byte [rsp + 0x41], cl
cmp byte [rbx + 3], sil
je 0x140078eba
or byte [rsp + 0x42], cl
cmp byte [rbx + 4], sil
je 0x140078ec3
or byte [rbp - 0x75], cl
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_SetKeyboardState]
cmp byte [rbx], sil
jne 0x140078ed9
cmp byte [rbx + 1], sil
je 0x140078efb
movzx r9d, byte [rdi + 0x32]
mov edx, 0x100
mov rcx, qword [rdi + 0x28]
mov r8d, reloc.WSOCK32.dll_recv
shl r9, 0x10
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
cmp byte [rbx + 2], sil
je 0x140078f23
movzx r9d, byte [rdi + 0x30]
mov edx, 0x100
mov rcx, qword [rdi + 0x28]
mov r8d, reloc.WSOCK32.dll_recvfrom
shl r9, 0x10
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
cmp byte [rbx + 3], sil
je 0x140078f6e
cmp byte [rbx + 2], sil
jne 0x140078f4c
cmp byte [rdi + 0x20], sil
jne 0x140078f4c
movzx r9d, byte [rdi + 0x31]
mov edx, 0x104
shl r9, 0x10
or r9, 0x20000001
jmp 0x140078f5e
movzx r9d, byte [rdi + 0x31]
mov edx, 0x100
shl r9, 0x10
or r9, 1
mov rcx, qword [rdi + 0x28]
mov r8d, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_PostMessageW]
cmp byte [rbx + 4], sil
je 0x14007900e
movzx r9d, byte [rdi + 0x35]
mov edx, 0x100
mov rcx, qword [rdi + 0x28]
mov r8d, 0x5b
shl r9, 0x10
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x14007900e
cmp byte [rbx], sil
je 0x140078fb2
mov r8b, byte [rdi + 0x33]
xor r9d, r9d
mov dl, 0xa0
mov rcx, rdi
call fcn.14007941c
cmp byte [rbx + 1], sil
je 0x140078fc9
mov r8b, byte [rdi + 0x34]
xor r9d, r9d
mov dl, 0xa1
mov rcx, rdi
call fcn.14007941c
cmp byte [rbx + 2], sil
je 0x140078fe0
mov r8b, byte [rdi + 0x30]
xor r9d, r9d
mov dl, reloc.WSOCK32.dll_recvfrom
mov rcx, rdi
call fcn.14007941c
cmp byte [rbx + 3], sil
je 0x140078ff7
mov r8b, byte [rdi + 0x31]
xor r9d, r9d
mov dl, reloc.WSOCK32.dll_select
mov rcx, rdi
call fcn.14007941c
cmp byte [rbx + 4], sil
je 0x14007900e
mov r8b, byte [rdi + 0x35]
xor r9d, r9d
mov dl, 0x5b
mov rcx, rdi
call fcn.14007941c
mov rcx, rdi
call fcn.140077b80
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret