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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx r8d, byte [rdx]
mov r10, rcx
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
xor r8, rax
mov rbx, rdx
movzx eax, byte [rdx + 1]
mov rdi, qword [r10 + 0x18]
mov r9, qword [r10 + 8]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 2]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 3]
imul r8, rcx
xor r8, rax
imul r8, rcx
and r8, qword [r10 + 0x30]
mov r11, r8
shl r11, 4
add r11, rdi
mov rcx, qword [r11 + 8]
cmp rcx, r9
je 0x1400c9fd5
mov eax, dword [rbx]
mov rdx, qword [r11]
cmp eax, dword [rcx + 0x10]
je 0x1400c9f6e
nop dword [rax]
cmp rcx, rdx
je 0x1400c9fd5
mov rcx, qword [rcx + 8]
cmp eax, dword [rcx + 0x10]
jne 0x1400c9f60
test rcx, rcx
je 0x1400c9fd5
add r8, r8
mov rax, qword [rdi + r8*8]
cmp qword [r11 + 8], rcx
jne 0x1400c9f99
cmp rax, rcx
jne 0x1400c9f8f
mov qword [rdi + r8*8], r9
mov qword [r11 + 8], r9
jmp 0x1400c9fa5
mov r9, qword [rcx + 8]
mov qword [r11 + 8], r9
jmp 0x1400c9fa5
cmp rax, rcx
jne 0x1400c9fa5
mov rax, qword [rcx]
mov qword [rdi + r8*8], rax
mov rdx, qword [rcx]
dec qword [r10 + 0x10]
mov rax, qword [rcx + 8]
mov qword [rax], rdx
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov edx, 0x18
call fcn.1400f2d28
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x1400c9ff0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx r8d, byte [rdx]
mov r10, rcx
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
xor r8, rax
mov r11, rdx
movzx eax, byte [rdx + 1]
mov rdi, qword [r10 + 0x18]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 2]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 3]
mov rdx, qword [r10 + 8]
imul r8, rcx
xor r8, rax
imul r8, rcx
and r8, qword [r10 + 0x30]
mov r9, r8
shl r9, 4
add r9, rdi
mov rbx, qword [r9 + 8]
cmp rbx, rdx
je 0x1400ca0f1
mov eax, dword [r11]
mov rcx, qword [r9]
cmp eax, dword [rbx + 0x10]
je 0x1400ca07e
nop
cmp rbx, rcx
je 0x1400ca0f1
mov rbx, qword [rbx + 8]
cmp eax, dword [rbx + 0x10]
jne 0x1400ca070
test rbx, rbx
je 0x1400ca0f1
add r8, r8
mov rax, qword [rdi + r8*8]
cmp qword [r9 + 8], rbx
jne 0x1400ca0a9
cmp rax, rbx
jne 0x1400ca09f
mov qword [rdi + r8*8], rdx
mov qword [r9 + 8], rdx
jmp 0x1400ca0b5
mov rdx, qword [rbx + 8]
mov qword [r9 + 8], rdx
jmp 0x1400ca0b5
cmp rax, rbx
jne 0x1400ca0b5
mov rax, qword [rbx]
mov qword [rdi + r8*8], rax
mov rcx, qword [rbx]
dec qword [r10 + 0x10]
mov rax, qword [rbx + 8]
mov qword [rax], rcx
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
lea rcx, [rbx + 0x10]
call fcn.140095310
mov edx, 0x38
mov rcx, rbx
call fcn.1400f2d28
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1400ca730
Capabilities:
Hash data using fnv

Disassembly:
push rbx
mov r10, rcx
movzx r9d, dl
movabs r11, 0x100000001b3
movabs rax, 0xcbf29ce484222325
xor r9, rax
mov eax, edx
imul r9, r11
mov rbx, qword [r10 + 0x68]
sar eax, 8
movzx r8d, al
mov eax, edx
xor r9, r8
sar eax, 0x10
mov r8, qword [r10 + 0x58]
imul r9, r11
movzx ecx, al
mov eax, edx
xor r9, rcx
sar eax, 0x18
imul r9, r11
movzx ecx, al
xor r9, rcx
imul r9, r11
and r9, qword [r10 + 0x80]
mov r11, r9
shl r11, 4
add r11, rbx
mov rcx, qword [r11 + 8]
cmp rcx, r8
je 0x1400ca816
mov rax, qword [r11]
cmp edx, dword [rcx + 0x10]
je 0x1400ca7be
nop dword [rax]
cmp rcx, rax
je 0x1400ca816
mov rcx, qword [rcx + 8]
cmp edx, dword [rcx + 0x10]
jne 0x1400ca7b0
test rcx, rcx
je 0x1400ca816
add r9, r9
mov rax, qword [rbx + r9*8]
cmp qword [r11 + 8], rcx
jne 0x1400ca7e9
cmp rax, rcx
jne 0x1400ca7df
mov qword [rbx + r9*8], r8
mov qword [r11 + 8], r8
jmp 0x1400ca7f5
mov r8, qword [rcx + 8]
mov qword [r11 + 8], r8
jmp 0x1400ca7f5
cmp rax, rcx
jne 0x1400ca7f5
mov rax, qword [rcx]
mov qword [rbx + r9*8], rax
mov rdx, qword [rcx]
dec qword [r10 + 0x60]
mov rax, qword [rcx + 8]
mov qword [rax], rdx
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov edx, 0x20
pop rbx
jmp fcn.1400f2d28
pop rbx
ret
Function at 0x1400ca910
Capabilities:
Hash data using fnv

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov dword [rsp + 0x10], edx
push rsi
push rdi
push r14
sub rsp, 0x60
mov rbp, rcx
lea rax, [r11 - 0x38]
mov qword [r11 + 8], rax
lea r8, [r11 + 0x10]
lea rdx, [r11 - 0x58]
add rcx, 0x90
call fcn.1400c79e0
mov rdx, qword [rax]
add rdx, 0x18
cmp qword [rdx + 0x18], 0x10
jb 0x1400ca957
mov rdx, qword [rdx]
xor edi, edi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 0xf
mov rsi, 0xffffffffffffffff
mov r8, rsi
inc r8
cmp byte [rdx + r8], dil
jne 0x1400ca976
lea rcx, [rsp + 0x40]
call fcn.14007eee0
nop
call fcn.1400c3e90
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.1400c3f10
lea rcx, [rbp + 0x10]
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x30]
call fcn.1400c7cb0
mov rcx, qword [rax]
mov qword [rcx + 0x18], rdi
mov rbx, qword [rcx + 0x20]
mov qword [rcx + 0x20], rdi
test rbx, rbx
je 0x1400ca9ef
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400ca9ef
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400ca9ef
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edx, dword [rsp + 0x88]
movzx ecx, dl
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movabs r8, 0x100000001b3
imul rcx, r8
movzx eax, byte [rsp + 0x89]
xor rcx, rax
imul rcx, r8
movzx eax, byte [rsp + 0x8a]
xor rcx, rax
imul rcx, r8
movzx eax, byte [rsp + 0x8b]
xor rcx, rax
imul rcx, r8
and rcx, qword [rbp + 0x40]
mov r10, qword [rbp + 0x28]
mov r9, rcx
add r9, r9
mov r11, qword [r10 + r9*8 + 8]
mov rbx, r11
mov r8, qword [rbp + 0x18]
cmp r11, r8
je 0x1400cab11
mov rax, qword [r10 + r9*8]
cmp edx, dword [r11 + 0x10]
je 0x1400caa82
nop
cmp rbx, rax
je 0x1400cab11
mov rbx, qword [rbx + 8]
cmp edx, dword [rbx + 0x10]
jne 0x1400caa70
test rbx, rbx
je 0x1400cab11
add rcx, rcx
mov rax, qword [r10 + rcx*8]
cmp r11, rbx
jne 0x1400caab2
cmp rax, rbx
jne 0x1400caaa7
mov qword [r10 + rcx*8], r8
mov qword [r10 + r9*8 + 8], r8
jmp 0x1400caabe
mov r8, qword [rbx + 8]
mov qword [r10 + r9*8 + 8], r8
jmp 0x1400caabe
cmp rax, rbx
jne 0x1400caabe
mov rax, qword [rbx]
mov qword [r10 + rcx*8], rax
mov rcx, qword [rbx]
dec qword [rbp + 0x20]
mov rax, qword [rbx + 8]
mov qword [rax], rcx
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x1400cab04
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400cab04
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], esi
cmp esi, 1
jne 0x1400cab04
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edx, 0x28
mov rcx, rbx
call fcn.1400f2d28
lea rdx, [rsp + 0x88]
lea rcx, [rbp + 0x90]
call fcn.1400c9ff0
lea rcx, [rbp + 0xd0]
lea rdx, [rsp + 0x88]
call fcn.1400c9ff0
lea rcx, [rbp + 0x110]
lea rdx, [rsp + 0x88]
call fcn.1400c9ee0
lea rcx, [rbp + 0x150]
lea rdx, [rsp + 0x88]
call fcn.1400c9ee0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400cab80
Capabilities:
Print debug messages

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x278
mov rax, qword [0x14016f898]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbp, r8
mov qword [rsp + 0x58], 0
mov rsi, rdx
mov qword [rsp + 0x50], 0
mov rbx, rcx
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x60]
mov rdi, r9
call sub.VCRUNTIME140.dll_memset
mov rax, 0xffffffffffffffff
cmp byte [rbx + rax + 1], 0
lea rax, [rax + 1]
jne 0x1400cabd5
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], rcx
lea r9d, [rax + 1]
xor ecx, ecx
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x60]
lea rax, [rsp + 0x58]
mov r9, rsi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
lea r8d, [rdx + 1]
mov dword [rsp + 0x28], 0x800
mov qword [rsp + 0x20], rbp
call sub.D3DCOMPILER_47.dll_D3DCompileFromFile
test eax, eax
jns 0x1400cac7e
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400cac6c
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
cmp qword [rsp + 0x58], 0
je 0x1400cac7a
mov rax, qword [rcx]
call qword [rax + 0x10]
xor al, al
jmp 0x1400cac88
mov rax, qword [rsp + 0x58]
mov qword [rdi], rax
mov al, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400f2dc0
add rsp, 0x278
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400e72b0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x14017d6f0], 0
jne 0x1400e72c5
xor edx, edx
mov ecx, 0x10001
jmp fcn.1400e5da0
jmp 0x1400e9980
push rbx
sub rsp, 0xa0
mov rax, qword [0x14016f898]
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 0x1400e9a1a
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x1400e99e5
mov rbx, qword [0x14017dae0]
test rbx, rbx
je 0x1400e99fb
mov rcx, rbx
call fcn.1400e6a60
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400e99d3
jmp 0x1400e99fb
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 0x1400e99c0
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x1400e9b17
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 0x1400e9b0f
movdqa xmm0, xmmword [0x140148e30]
xor ebx, ebx
movdqa xmm1, xmmword [0x140148e40]
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, [0x14017ea48]
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 0x1400e9ade
cmp byte [rbp + rdi + 0x80], 1
jne 0x1400e9ade
call fcn.1400eaec0
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.1400e7c10
inc rbx
cmp rbx, 4
jl 0x1400e9aa0
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 [0x14017f3e8]
test rbx, rbx
je 0x1400e9b99
mov rcx, qword [rbx + 0x348]
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 ecx, eax
cmp dword [rbx + 0x380], eax
jne 0x1400e9b5d
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x384], eax
je 0x1400e9b99
mov eax, r8d
mov dword [rsp + 0x60], ecx
cdq
mov dword [rbx + 0x380], ecx
mov rcx, qword [rbx + 0x348]
sub eax, edx
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x384], 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.1400f2dc0
add rsp, 0xa0
pop rbx
ret
Function at 0x1400e7350
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [0x14017d6f0], 0
mov r10d, r9d
mov r11d, r8d
jne 0x1400e736b
xor edx, edx
mov ecx, 0x10001
jmp fcn.1400e5da0
mov r8d, dword [rsp + 0x28]
mov r9d, dword [rsp + 0x30]
test r8d, r8d
jle 0x1400e73c0
test r9d, r9d
jle 0x1400e73c0
mov eax, dword [rsp + 0x38]
cmp eax, 0xfffffffe
jg 0x1400e739c
mov r8d, eax
lea rdx, str.Invalid_refresh_rate__i
mov ecx, 0x10004
jmp fcn.1400e5da0
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x28], r8d
mov dword [rcx + 0x28], r8d
mov r8d, r11d
mov dword [rcx + 0x2c], r9d
mov r9d, r10d
mov dword [rcx + 0x3c], eax
jmp fcn.1400e9ea0
lea rdx, str.Invalid_window_size__ix_i
mov ecx, 0x10004
jmp fcn.1400e5da0
Function at 0x1400e9980
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x14017d6f0], 0
jne 0x1400e72c5
xor edx, edx
mov ecx, 0x10001
jmp fcn.1400e5da0
jmp 0x1400e9980
push rbx
sub rsp, 0xa0
mov rax, qword [0x14016f898]
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 0x1400e9a1a
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x1400e99e5
mov rbx, qword [0x14017dae0]
test rbx, rbx
je 0x1400e99fb
mov rcx, rbx
call fcn.1400e6a60
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400e99d3
jmp 0x1400e99fb
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 0x1400e99c0
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x1400e9b17
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 0x1400e9b0f
movdqa xmm0, xmmword [0x140148e30]
xor ebx, ebx
movdqa xmm1, xmmword [0x140148e40]
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, [0x14017ea48]
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 0x1400e9ade
cmp byte [rbp + rdi + 0x80], 1
jne 0x1400e9ade
call fcn.1400eaec0
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.1400e7c10
inc rbx
cmp rbx, 4
jl 0x1400e9aa0
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 [0x14017f3e8]
test rbx, rbx
je 0x1400e9b99
mov rcx, qword [rbx + 0x348]
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 ecx, eax
cmp dword [rbx + 0x380], eax
jne 0x1400e9b5d
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x384], eax
je 0x1400e9b99
mov eax, r8d
mov dword [rsp + 0x60], ecx
cdq
mov dword [rbx + 0x380], ecx
mov rcx, qword [rbx + 0x348]
sub eax, edx
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x384], 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.1400f2dc0
add rsp, 0xa0
pop rbx
ret
Function at 0x1400eac30
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov qword [0x14017f3e8], rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1400eac85
mov rcx, qword [rbx + 0x348]
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 [0x14017f3d8], xmm0
movsd qword [0x14017f3e0], xmm1
cmp dword [rbx + 0x74], 0x34001
jne 0x1400eacaf
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x1400eac9d
mov rcx, qword [rcx + 8]
jmp 0x1400eacb1
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
jmp 0x1400eacb1
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.1400e79c0
mov rcx, rbx
call fcn.1400eb050
cmp dword [rbx + 0x1f0], 0
je 0x1400ead0e
mov rax, qword [rbx + 0x348]
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 0x1400ead0e
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.1400ed0a0
add rsp, 0x30
pop rbx
ret

Function at 0x1400ead20
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x1f0], 0
mov rbx, rcx
je 0x1400ead70
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 0x1400ead70
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.1400ed0a0
xor ecx, ecx
mov qword [0x14017f3e8], 0
call fcn.1400eb050
cvttsd2si ecx, qword [0x14017f3d8]
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x14017f3e0]
mov dword [rsp + 0x40], ecx
mov dword [rbx + 0x380], ecx
mov rcx, qword [rbx + 0x348]
mov dword [rsp + 0x44], eax
mov dword [rbx + 0x384], 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 + 0x74], 0x34001
jne 0x1400eae04
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x1400eade8
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 0x1400eaec0
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
and ax, si
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
and al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov rsi, qword [rsp + 0x38]
mov ecx, ebx
or ecx, 0x20
and al, 1
cmove ecx, ebx
mov rbx, qword [rsp + 0x30]
mov eax, ecx
add rsp, 0x20
pop rdi
ret
Function at 0x1400ed8e0
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 [0x14016f898]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x14017ed02]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1e0], rdi
sub r14, 0x480
lea r15, [0x14017ea88]
xor r13d, r13d
lea r12, [0x14017eda2]
mov ebx, 0x20
movsx esi, word [r15]
cmp esi, 0xffffffff
je 0x1400eda85
cmp ebx, 0x140
jb 0x1400eda00
cmp ebx, 0x14e
ja 0x1400eda00
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 0x1400eda0f
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 0x1400eda52
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 0x1400eda85
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 0x1400ed962
mov rdi, qword [rsp + 0x1e0]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400f2dc0
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 0x1400ef090
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 0x1400ef0c0
lea rdx, [0x1401496c0]
mov ecx, 0x10008
call fcn.1400ed0a0
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x1400f2860
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14016f898]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x14017f618], 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 0x1400f28b5
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400f2dc0
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 [0x14017f618], rax
test rax, rax
jne 0x1400f28f8
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x1400f28c0
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.1400e5da0
jmp 0x1400f2a1d
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14017f618]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x14017f620], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14017f618]
lea rdx, str.OSMesaDestroyContext
mov qword [0x14017f628], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14017f618]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x14017f630], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14017f618]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x14017f638], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14017f618]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x14017f640], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14017f618]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x14017f648], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x14017f620], 0
mov qword [0x14017f650], rax
je 0x1400f29ef
cmp qword [0x14017f630], 0
je 0x1400f29ef
cmp qword [0x14017f638], 0
je 0x1400f29ef
cmp qword [0x14017f640], 0
je 0x1400f29ef
cmp qword [0x14017f648], 0
je 0x1400f29ef
test rax, rax
je 0x1400f29ef
mov eax, 1
jmp 0x1400f2a1f
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1400e5da0
mov rcx, qword [0x14017f618]
test rcx, rcx
je 0x1400f2a1d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x14017f618], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400f2dc0
add rsp, 0x48
ret
Function at 0x140003f40
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, [0x140003820]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
add rsp, 0x38
ret