joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005f860
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x18005f895
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.18005f440
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x18005f9d6
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x18005f950
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x18005f9c5
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x18005f98d
mov r10, qword [rdx]
cmp r10, rax
je 0x18005f987
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x18005f9c5
cmp r9, rdx
je 0x18005f9a1
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x18005f9e7
cmp r9, rdx
jne 0x18005f992
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x18005f900
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x18005f9c5
Function at 0x18006019c
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x180060200
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x1800601ee
mov r8, qword [rbx]
xor edx, edx
mov r8d, dword [r8 + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800601e7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x1800601bb
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x1800a6a08]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180060210
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x10], edx
push rdi
sub rsp, 0x20
mov eax, ecx
imul rdi, rax, 0x38
add rdi, qword [0x1800a7110]
mov rdx, qword [rdi]
mov cl, byte [rdi + 0x20]
mov rsi, rdx
lea rbx, [rdx - 5]
and cl, 1
je 0x180060249
mov rsi, rbx
movzx eax, cl
lea r9, [rsp + 0x38]
test cl, cl
mov r8d, 0x40
cmove rbx, rdx
lea rbp, [rax*2 + 5]
mov rcx, rbx
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18006027c
mov eax, 0xa
jmp 0x1800602c9
mov byte [rbx], 0xe9
mov eax, dword [rdi + 8]
sub eax, esi
sub eax, 5
mov dword [rbx + 1], eax
test byte [rdi + 0x20], 1
je 0x180060298
mov rax, qword [rdi]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rdi + 0x20], 6
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x180060648
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x18006065f
cmp r8b, 0x90
je 0x18006065f
cmp r8b, 0xcc
jne 0x180060681
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x18006067d
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x180060681
add edx, r10d
cmp edx, r9d
jb 0x18006066d
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x1800609e8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x180060a32
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x1800a7100]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
jmp 0x180060a6b
cmp rbx, r14
jb 0x180060a68
cmp rbx, r12
jae 0x180060a68
cmp qword [rbx + 8], rsi
jne 0x180060bcd
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180060a54
mov r15, rdi
cmp rdi, r14
jb 0x180060b87
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
jmp 0x180060ab7
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180060af1
cmp dword [rbp - 0x10], 0x10000
je 0x180060ac1
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x180060af1
sub r15, r13
cmp r15, r14
jae 0x180060a8d
jmp 0x180060af1
test r15, r15
je 0x180060af1
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180060b92
cmp r15, r14
jae 0x180060a7c
test rbx, rbx
jmp 0x180060b85
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x180060bcd
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180060bcd
cmp dword [rbp - 0x10], 0x10000
je 0x180060b60
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jbe 0x180060b1d
jmp 0x180060bcd
test rdi, rdi
je 0x180060bcd
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180060b92
cmp rdi, r12
jbe 0x180060af9
jmp 0x180060bcd
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x180060b9e
mov rax, qword [0x1800a7100]
mov qword [rbx], rax
mov qword [0x1800a7100], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x180064ca0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x1800a3c10], 0
jne 0x180064cb5
xor edx, edx
mov ecx, 0x10001
jmp fcn.180065830
jmp 0x180066640
push rbx
sub rsp, 0x80
mov rax, qword [0x1800a2040]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1800666d7
cmp dword [rsp + 0x38], 0x12
jne 0x1800666a2
mov rbx, qword [0x1800a4000]
test rbx, rbx
je 0x1800666b8
nop word [rax + rax]
mov rcx, rbx
call fcn.180064350
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180066690
jmp 0x1800666b8
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x180066677
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x180066802
lea rdx, str.GLFW
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rbx, rax
test rax, rax
je 0x180066802
mov qword [rsp + 0x90], rdi
mov ecx, 0xa0
movsx edi, word [0x1800a5990]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x180066746
cmp byte [rbx + 0x1dc], 1
jne 0x180066746
call fcn.180067e70
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x154
mov rcx, rbx
call fcn.180062770
movsx edi, word [0x1800a5998]
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x180066782
cmp byte [rbx + 0x1e0], 1
jne 0x180066782
call fcn.180067e70
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x158
mov rcx, rbx
call fcn.180062770
movsx edi, word [0x1800a5996]
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x1800667be
cmp byte [rbx + 0x1df], 1
jne 0x1800667be
call fcn.180067e70
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x157
mov rcx, rbx
call fcn.180062770
movsx edi, word [0x1800a599e]
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x1800667fa
cmp byte [rbx + 0x1e3], 1
jne 0x1800667fa
call fcn.180067e70
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x15b
mov rcx, rbx
call fcn.180062770
mov rdi, qword [rsp + 0x90]
mov rbx, qword [0x1800a6088]
test rbx, rbx
je 0x180066887
mov rcx, qword [rbx + 0x350]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x6c]
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
cmp dword [rbx + 0x388], eax
jne 0x180066849
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x180066887
mov rcx, qword [rbx + 0x350]
mov eax, r8d
cdq
mov dword [rsp + 0x60], r9d
sub eax, edx
mov dword [rbx + 0x388], r9d
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x38c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1800613b0
add rsp, 0x80
pop rbx
ret
Function at 0x180065f40
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbp, r9
mov r8, r9
mov rsi, rdx
mov rbx, rcx
call fcn.180067630
test eax, eax
je 0x180066093
cmp dword [rdi], 0
je 0x180066001
mov eax, dword [rdi + 4]
cmp eax, 0x36001
jne 0x180065fa0
call fcn.18006d7b0
test eax, eax
je 0x180066093
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.18006d330
jmp 0x180065fe6
cmp eax, 0x36002
jne 0x180065fc4
call fcn.18006eb10
test eax, eax
je 0x180066093
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.18006e640
jmp 0x180065fe6
cmp eax, 0x36003
jne 0x180065fee
call fcn.18006f990
test eax, eax
je 0x180066093
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.18006f760
test eax, eax
je 0x180066093
mov rdx, rdi
mov rcx, rbx
call fcn.1800695d0
test eax, eax
je 0x180066093
cmp qword [rbx + 0x48], 0
je 0x180066066
mov rcx, qword [rbx + 0x350]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_BringWindowToTop]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, rbx
call fcn.180067370
mov rcx, rbx
call fcn.180067dd0
cmp dword [rsi + 0x2c], 0
je 0x18006608c
mov rcx, rbx
call fcn.180062460
mov eax, 1
jmp 0x180066095
cmp dword [rsi + 0x14], 0
je 0x18006608c
mov rcx, qword [rbx + 0x350]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
cmp dword [rsi + 0x1c], 0
je 0x18006608c
mov rcx, rbx
call fcn.180066190
mov eax, 1
jmp 0x180066095
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180066640
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x1800a3c10], 0
jne 0x180064cb5
xor edx, edx
mov ecx, 0x10001
jmp fcn.180065830
jmp 0x180066640
push rbx
sub rsp, 0x80
mov rax, qword [0x1800a2040]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1800666d7
cmp dword [rsp + 0x38], 0x12
jne 0x1800666a2
mov rbx, qword [0x1800a4000]
test rbx, rbx
je 0x1800666b8
nop word [rax + rax]
mov rcx, rbx
call fcn.180064350
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180066690
jmp 0x1800666b8
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x180066677
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x180066802
lea rdx, str.GLFW
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rbx, rax
test rax, rax
je 0x180066802
mov qword [rsp + 0x90], rdi
mov ecx, 0xa0
movsx edi, word [0x1800a5990]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x180066746
cmp byte [rbx + 0x1dc], 1
jne 0x180066746
call fcn.180067e70
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x154
mov rcx, rbx
call fcn.180062770
movsx edi, word [0x1800a5998]
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x180066782
cmp byte [rbx + 0x1e0], 1
jne 0x180066782
call fcn.180067e70
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x158
mov rcx, rbx
call fcn.180062770
movsx edi, word [0x1800a5996]
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x1800667be
cmp byte [rbx + 0x1df], 1
jne 0x1800667be
call fcn.180067e70
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x157
mov rcx, rbx
call fcn.180062770
movsx edi, word [0x1800a599e]
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x1800667fa
cmp byte [rbx + 0x1e3], 1
jne 0x1800667fa
call fcn.180067e70
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x15b
mov rcx, rbx
call fcn.180062770
mov rdi, qword [rsp + 0x90]
mov rbx, qword [0x1800a6088]
test rbx, rbx
je 0x180066887
mov rcx, qword [rbx + 0x350]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x6c]
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
cmp dword [rbx + 0x388], eax
jne 0x180066849
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x180066887
mov rcx, qword [rbx + 0x350]
mov eax, r8d
cdq
mov dword [rsp + 0x60], r9d
sub eax, edx
mov dword [rbx + 0x388], r9d
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x38c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1800613b0
add rsp, 0x80
pop rbx
ret
Function at 0x180067b20
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x1800a6088], rcx
lea rdi, [rcx + 0x350]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x180067b7c
mov rcx, qword [rdi]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [rsp + 0x40]
movd xmm1, dword [rsp + 0x44]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
movsd qword [0x1800a6078], xmm0
movsd qword [0x1800a6080], xmm1
cmp dword [rbx + 0x7c], 0x34001
jne 0x180067bc0
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x180067ba1
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SetCursor]
lea rdi, [rbx + 0x350]
jmp 0x180067bc8
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
lea rdi, [rbx + 0x350]
jmp 0x180067bc8
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.180062460
mov rcx, rbx
call fcn.1800675b0
cmp dword [rbx + 0x1f8], 0
je 0x180067c1b
mov rax, qword [rdi]
lea rcx, [rsp + 0x20]
mov edx, 1
mov qword [rsp + 0x20], 0x20001
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x180067c1b
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.18006c2b0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x180067c30
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
mov edx, 1
mov dword [rsp + 0x20], 0x20001
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], 0
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x180067c72
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.18006c2b0
add rsp, 0x38
ret
Function at 0x180067c80
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x1f8], 0
mov rbx, rcx
je 0x180067cd0
mov edx, 1
mov dword [rsp + 0x20], 0x20001
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], 0
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x180067cd0
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.18006c2b0
xor ecx, ecx
mov qword [0x1800a6088], 0
call qword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si ecx, qword [0x1800a6078]
mov qword [0x1800a6090], 0
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x1800a6080]
mov dword [rsp + 0x40], ecx
mov dword [rbx + 0x388], ecx
mov rcx, qword [rbx + 0x350]
mov dword [rsp + 0x44], eax
mov dword [rbx + 0x38c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetCursorPos]
cmp dword [rbx + 0x7c], 0x34001
jne 0x180067d70
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x180067d54
mov rcx, qword [rcx + 8]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
xor ecx, ecx
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]

Function at 0x180067d80
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx + 0x350]
mov edx, 1
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], 0x20001
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x180067dc2
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.18006c2b0
add rsp, 0x38
ret

Function at 0x180067e70
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 0x11
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, 0x12
or edi, 2
test ax, ax
cmovns edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov esi, edi
mov ecx, 0x5c
or esi, 4
test ax, ax
cmovns esi, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x5b
movzx ebx, ax
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, esi
mov ecx, 0x14
or edi, 8
or bx, ax
cmovns edi, esi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, edi
mov ecx, 0x90
or ebx, 0x10
test al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov rsi, qword [rsp + 0x38]
mov ecx, ebx
or ecx, 0x20
test al, 1
cmove ecx, ebx
mov rbx, qword [rsp + 0x30]
mov eax, ecx
add rsp, 0x20
pop rdi
ret

Function at 0x18006b180
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 4], eax
cmp eax, 0xffffffff
jne 0x18006b1b0
lea rdx, [0x18008b480]
mov ecx, 0x10008
call fcn.18006c2b0
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x18006cae0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x1b0
mov rax, qword [0x1800a2040]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x1800a59a2]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1d0], rdi
sub r14, 0x480
lea rbp, [0x1800a5728]
xor r12d, r12d
lea r15, [0x1800a5a42]
mov ebx, 0x20
movsx esi, word [rbp]
cmp esi, 0xffffffff
je 0x18006cc98
cmp ebx, 0x140
jb 0x18006cbff
cmp ebx, 0x14e
ja 0x18006cbff
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x44], 0x61
mov dword [rsp + 0x48], 0x62
mov dword [rsp + 0x4c], 0x63
mov dword [rsp + 0x50], 0x64
mov dword [rsp + 0x54], 0x65
mov dword [rsp + 0x58], 0x66
mov dword [rsp + 0x5c], 0x67
mov dword [rsp + 0x60], 0x68
mov dword [rsp + 0x64], 0x69
mov dword [rsp + 0x68], 0x6e
mov dword [rsp + 0x6c], 0x6f
mov dword [rsp + 0x70], 0x6a
mov dword [rsp + 0x74], 0x6d
mov dword [rsp + 0x78], 0x6b
mov edi, dword [r14]
jmp 0x18006cc0e
mov edx, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x18006cc61
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x18006cc98
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x80]
mov qword [rsp + 0x30], r12
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r15, 5
add r14, 4
add rbp, 2
cmp ebx, 0x15c
jle 0x18006cb61
mov rdi, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1800613b0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret