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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [0x14010cfb0]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, rdx
mov r12, rcx
mov r14, qword [rcx]
cmp qword [rdx + 0x18], 0x10
jb 0x1400ae3df
mov rdx, qword [rdx]
movabs r9, 0xcbf29ce484222325
mov rsi, qword [rdi + 0x10]
xor ecx, ecx
test rsi, rsi
je 0x1400ae413
movabs r8, 0x100000001b3
nop
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r8
inc rcx
cmp rcx, rsi
jb 0x1400ae400
mov r8, rdi
lea rdx, [rbp - 0x49]
lea rcx, [r14 + 8]
call fcn.14008e890
mov rbx, qword [rax + 8]
test rbx, rbx
jne 0x1400ae430
mov rbx, qword [r14 + 0x10]
cmp rbx, qword [r14 + 0x10]
jne 0x1400ae4d7
lea rax, [rbp - 0x31]
mov qword [rbp - 0x79], rax
movabs rax, 0x7fffffffffffffff
sub rax, rsi
cmp rax, 0x34
jb 0x1400ae5bd
cmp qword [rdi + 0x18], 0x10
jb 0x1400ae463
mov rdi, qword [rdi]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0x34
lea r9, str.Trying_to_get_value_of_non_existent_action_mapping:
lea rcx, [rbp - 0x31]
call fcn.14006ddd0
lea rax, [rbp - 0x31]
mov qword [rbp - 0x71], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x69], xmm0
xor eax, eax
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rax
lea r8d, [rax + 0x34]
lea rdx, str._input_manager::get_action_mapping_was_just_relased_
lea rcx, [rbp - 0x69]
call fcn.14006db40
lea rax, [rbp - 0x69]
mov qword [rbp - 0x79], rax
cmp byte [0x1401126a4], 0
je 0x1400ae526
lea rcx, [rbp - 0x69]
call fcn.14006da40
nop
lea rcx, [rbp - 0x31]
call fcn.14006da40
mov rax, qword [r12]
cmp byte [rax], 0
je 0x1400ae4ec
cmp byte [rbx + 0x30], 0
jne 0x1400ae4fc
cmp byte [rbx + 0x31], 0
jmp 0x1400ae4f6
cmp byte [rbx + 0x31], 0
jne 0x1400ae4fc
cmp byte [rbx + 0x30], 0
je 0x1400ae4fc
mov al, 1
jmp 0x1400ae4fe
xor al, al
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400c61b0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea rcx, [rbp + 0xf]
call fcn.140071a20
nop
lea rdx, str._core_
lea rcx, [rbp + 0xf]
call fcn.14008c8d0
lea rcx, [rbp - 0x69]
call fcn.14006d9c0
mov rdx, rax
lea rcx, [rbp + 0xf]
call fcn.14006d9d0
mov dl, 0x3a
lea rcx, [rbp + 0xf]
call fcn.140071e50
mov dl, 0xa
lea rcx, [rbp + 0xf]
call fcn.140071e50
lea rcx, [rbp - 0x31]
call fcn.14006d9c0
mov rdx, rax
lea rcx, [rbp + 0xf]
call fcn.14006d9d0
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x11]
call fcn.140071900
mov rcx, rax
call fcn.1400a5540
mov byte [0x1401126a4], 1
lea rdx, str.Shutdown_call
lea rcx, [rbp - 0x49]
call fcn.14006e160
lea rdx, [0x140109158]
lea rcx, [rbp - 0x49]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.14006d050
int3
Function at 0x1400ae5d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [0x14010cfb0]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rbx, rdx
mov r14, qword [rcx]
cmp qword [rdx + 0x18], 0x10
jb 0x1400ae606
mov rdx, qword [rdx]
movabs r9, 0xcbf29ce484222325
mov rdi, qword [rbx + 0x10]
xor ecx, ecx
test rdi, rdi
je 0x1400ae643
movabs r8, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r8
inc rcx
cmp rcx, rdi
jb 0x1400ae630
mov r8, rbx
lea rdx, [rbp - 0x49]
lea rcx, [r14 + 0x48]
call fcn.14008e890
mov rsi, qword [rax + 8]
test rsi, rsi
jne 0x1400ae660
mov rsi, qword [r14 + 0x50]
cmp rsi, qword [r14 + 0x50]
jne 0x1400ae70f
lea rax, [rbp - 0x31]
mov qword [rbp - 0x79], rax
movabs rax, 0x7fffffffffffffff
sub rax, rdi
cmp rax, 0x32
jb 0x1400ae737
cmp qword [rbx + 0x18], 0x10
jb 0x1400ae693
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0x32
lea r9, str.Trying_to_get_value_of_non_existent_axis_mapping:
lea rcx, [rbp - 0x31]
call fcn.14006ddd0
lea rax, [rbp - 0x31]
mov qword [rbp - 0x71], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], 0
mov qword [rbp - 0x51], 0
mov r8d, 0x27
lea rdx, str._input_manager::get_axis_mapping_value_
lea rcx, [rbp - 0x69]
call fcn.14006db40
lea rax, [rbp - 0x69]
mov qword [rbp - 0x79], rax
cmp byte [0x1401126a4], 0
je 0x1400ae73d
lea rcx, [rbp - 0x69]
call fcn.14006da40
nop
lea rcx, [rbp - 0x31]
call fcn.14006da40
movss xmm0, dword [rsi + 0x30]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400c61b0
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14006d050
nop
lea rcx, [rbp + 0xf]
call fcn.140071a20
nop
lea rdx, str._core_
lea rcx, [rbp + 0xf]
call fcn.14008c8d0
lea rcx, [rbp - 0x69]
call fcn.14006d9c0
mov rdx, rax
lea rcx, [rbp + 0xf]
call fcn.14006d9d0
mov dl, 0x3a
lea rcx, [rbp + 0xf]
call fcn.140071e50
mov dl, 0xa
lea rcx, [rbp + 0xf]
call fcn.140071e50
lea rcx, [rbp - 0x31]
call fcn.14006d9c0
mov rdx, rax
lea rcx, [rbp + 0xf]
call fcn.14006d9d0
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x11]
call fcn.140071900
mov rcx, rax
call fcn.1400a5540
mov byte [0x1401126a4], 1
lea rdx, str.Shutdown_call
lea rcx, [rbp - 0x49]
call fcn.14006e160
lea rdx, [0x140109158]
lea rcx, [rbp - 0x49]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400bb8a0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x14010f270], 0
jne 0x1400bb8b5
xor edx, edx
mov ecx, 0x10001
jmp fcn.1400bd4a0
jmp 0x1400be040
push rbx
sub rsp, 0xa0
mov rax, qword [0x14010cfb0]
xor rax, rsp
mov qword [rsp + 0x80], 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 0x1400be0da
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x1400be0a5
mov rbx, qword [0x14010f660]
test rbx, rbx
je 0x1400be0bb
mov rcx, rbx
call fcn.1400bb1e0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400be093
jmp 0x1400be0bb
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 0x1400be080
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x1400be1d7
lea rdx, str.GLFW
mov qword [rsp + 0xc0], rdi
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rdi, rax
test rax, rax
je 0x1400be1cf
movdqa xmm0, xmmword [0x1400e6fe0]
xor ebx, ebx
movdqa xmm1, xmmword [0x1400e6ff0]
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x90], r15
lea r15, [0x140110d48]
movdqu xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm1
nop word [rax + rax]
movsxd rbp, dword [rsp + rbx*8 + 0x64]
mov ecx, dword [rsp + rbx*8 + 0x60]
movsx r14d, word [r15 + rbp*2]
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jb 0x1400be19e
cmp byte [rbp + rdi + 0x88], 1
jne 0x1400be19e
call fcn.1400bf420
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.1400bc1a0
inc rbx
cmp rbx, 4
jl 0x1400be160
mov r15, qword [rsp + 0x90]
mov r14, qword [rsp + 0x98]
mov r12, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xc0]
mov rbx, qword [0x1401116e8]
test rbx, rbx
je 0x1400be25c
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 0x1400be21e
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x1400be25c
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 + 0x80]
xor rcx, rsp
call fcn.1400c61b0
add rsp, 0xa0
pop rbx
ret
Function at 0x1400bb960
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [0x14010f270], 0
mov r10d, r9d
mov r11d, r8d
jne 0x1400bb97b
xor edx, edx
mov ecx, 0x10001
jmp fcn.1400bd4a0
mov r8d, dword [rsp + 0x28]
mov r9d, dword [rsp + 0x30]
test r8d, r8d
jle 0x1400bb9d0
test r9d, r9d
jle 0x1400bb9d0
mov eax, dword [rsp + 0x38]
cmp eax, 0xfffffffe
jg 0x1400bb9ac
mov r8d, eax
lea rdx, str.Invalid_refresh_rate__i
mov ecx, 0x10004
jmp fcn.1400bd4a0
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x28], r8d
mov dword [rcx + 0x2c], r8d
mov r8d, r11d
mov dword [rcx + 0x30], r9d
mov r9d, r10d
mov dword [rcx + 0x40], eax
jmp fcn.1400be3d0
lea rdx, str.Invalid_window_size__ix_i
mov ecx, 0x10004
jmp fcn.1400bd4a0

Function at 0x1400bda60
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 0x1400bda90
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.1400c2730
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x1400bdb50
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.1400bec70
test eax, eax
je 0x1400bdca3
cmp dword [rdi], 0
je 0x1400bdc11
mov eax, dword [rdi + 4]
cmp eax, 0x36001
jne 0x1400bdbb0
call fcn.1400c3c10
test eax, eax
je 0x1400bdca3
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.1400c3790
jmp 0x1400bdbf6
cmp eax, 0x36002
jne 0x1400bdbd4
call fcn.1400c5010
test eax, eax
je 0x1400bdca3
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.1400c4b00
jmp 0x1400bdbf6
cmp eax, 0x36003
jne 0x1400bdbfe
call fcn.1400c5e50
test eax, eax
je 0x1400bdca3
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.1400c5c10
test eax, eax
je 0x1400bdca3
mov rdx, rdi
mov rcx, rbx
call fcn.1400ba870
test eax, eax
je 0x1400bdca3
cmp qword [rbx + 0x48], 0
je 0x1400bdc76
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.1400bea30
mov rcx, rbx
call fcn.1400bf380
cmp dword [rsi + 0x2c], 0
je 0x1400bdc9c
mov rcx, rbx
call fcn.1400bbf20
mov eax, 1
jmp 0x1400bdca5
cmp dword [rsi + 0x14], 0
je 0x1400bdc9c
mov rcx, qword [rbx + 0x350]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
cmp dword [rsi + 0x1c], 0
je 0x1400bdc9c
mov rcx, rbx
call fcn.1400bdd80
mov eax, 1
jmp 0x1400bdca5
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 0x1400be040
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x14010f270], 0
jne 0x1400bb8b5
xor edx, edx
mov ecx, 0x10001
jmp fcn.1400bd4a0
jmp 0x1400be040
push rbx
sub rsp, 0xa0
mov rax, qword [0x14010cfb0]
xor rax, rsp
mov qword [rsp + 0x80], 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 0x1400be0da
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x1400be0a5
mov rbx, qword [0x14010f660]
test rbx, rbx
je 0x1400be0bb
mov rcx, rbx
call fcn.1400bb1e0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400be093
jmp 0x1400be0bb
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 0x1400be080
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x1400be1d7
lea rdx, str.GLFW
mov qword [rsp + 0xc0], rdi
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rdi, rax
test rax, rax
je 0x1400be1cf
movdqa xmm0, xmmword [0x1400e6fe0]
xor ebx, ebx
movdqa xmm1, xmmword [0x1400e6ff0]
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x90], r15
lea r15, [0x140110d48]
movdqu xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm1
nop word [rax + rax]
movsxd rbp, dword [rsp + rbx*8 + 0x64]
mov ecx, dword [rsp + rbx*8 + 0x60]
movsx r14d, word [r15 + rbp*2]
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jb 0x1400be19e
cmp byte [rbp + rdi + 0x88], 1
jne 0x1400be19e
call fcn.1400bf420
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.1400bc1a0
inc rbx
cmp rbx, 4
jl 0x1400be160
mov r15, qword [rsp + 0x90]
mov r14, qword [rsp + 0x98]
mov r12, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xc0]
mov rbx, qword [0x1401116e8]
test rbx, rbx
je 0x1400be25c
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 0x1400be21e
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x1400be25c
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 + 0x80]
xor rcx, rsp
call fcn.1400c61b0
add rsp, 0xa0
pop rbx
ret
Function at 0x1400bf170
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x1401116e8], rcx
lea rdi, [rcx + 0x350]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1400bf1cc
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 [0x1401116d8], xmm0
movsd qword [0x1401116e0], xmm1
cmp dword [rbx + 0x7c], 0x34001
jne 0x1400bf210
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1400bf1f1
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SetCursor]
lea rdi, [rbx + 0x350]
jmp 0x1400bf218
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 0x1400bf218
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.1400bbf20
mov rcx, rbx
call fcn.1400bf590
cmp dword [rbx + 0x1f8], 0
je 0x1400bf26b
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 0x1400bf26b
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.1400c2730
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400bf280
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x1f8], 0
mov rbx, rcx
je 0x1400bf2d0
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 0x1400bf2d0
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.1400c2730
xor ecx, ecx
mov qword [0x1401116e8], 0
call fcn.1400bf590
cvttsd2si ecx, qword [0x1401116d8]
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x1401116e0]
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 0x1400bf364
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1400bf348
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 0x1400bf420
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 esi, 0x8000
or edi, 2
mov ecx, 0x12
test si, ax
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
and ax, si
mov ecx, 0x5c
mov esi, edi
or esi, 4
test ax, ax
cmove 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 0x1400c2f50
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x14010cfb0]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, pe_nt_image_headers64
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x140111002]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1e0], rdi
sub r14, 0x480
lea r15, [0x140110d88]
xor r13d, r13d
lea r12, [0x1401110a2]
mov ebx, 0x20
movsx esi, word [r15]
cmp esi, 0xffffffff
je 0x1400c30f5
cmp ebx, 0x140
jb 0x1400c3070
cmp ebx, 0x14e
ja 0x1400c3070
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 0x1400c307f
mov edx, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x1400c30c2
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x1400c30f5
mov qword [rsp + 0x38], r13
lea r8, [rbp - 0x80]
mov qword [rsp + 0x30], r13
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r12, 5
add r14, 4
add r15, 2
cmp ebx, 0x15c
jle 0x1400c2fd2
mov rdi, qword [rsp + 0x1e0]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400c61b0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400c5e50
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14010cfb0]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x140111918], 0
lea rax, str.libOSMesa.dll
lea rcx, str.OSMesa.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
je 0x1400c5ea5
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400c61b0
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
nop dword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140111918], rax
test rax, rax
jne 0x1400c5ee8
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x1400c5eb0
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.1400bd4a0
jmp 0x1400c600d
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140111918]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x140111920], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140111918]
lea rdx, str.OSMesaDestroyContext
mov qword [0x140111928], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140111918]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x140111930], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140111918]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x140111938], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140111918]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x140111940], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140111918]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x140111948], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140111920], 0
mov qword [0x140111950], rax
je 0x1400c5fdf
cmp qword [0x140111930], 0
je 0x1400c5fdf
cmp qword [0x140111938], 0
je 0x1400c5fdf
cmp qword [0x140111940], 0
je 0x1400c5fdf
cmp qword [0x140111948], 0
je 0x1400c5fdf
test rax, rax
je 0x1400c5fdf
mov eax, 1
jmp 0x1400c600f
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1400bd4a0
mov rcx, qword [0x140111918]
test rcx, rcx
je 0x1400c600d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x140111918], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400c61b0
add rsp, 0x48
ret

Function at 0x1400c6d28
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c6d72
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c6d72
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c6d72
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c6d72
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c6d72
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400c6d74
xor al, al
add rsp, 0x28
ret