joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401c9f50
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x1402a1fc0]
xor rax, rsp
mov qword [rsp + 0x288], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor edi, edi
xorps xmm0, xmm0
movss dword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x210]
call fcn.1400186a0
nop
xor eax, eax
mov qword [rsp + 0x250], rax
lea r9, [rsp + 0x1e0]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14020b8b0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov qword [rsp + 0x50], rdi
movdqa xmm0, xmmword [0x1402579f0]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], di
mov rdx, qword [rsp + 0x1e0]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x1401c9fe0
lea rcx, [rsp + 0x50]
call fcn.140101d90
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.1401c9e10
nop
mov r8d, 0x18
lea rdx, str._DineNBash_UserData.json
mov rcx, rax
call fcn.1400055a0
mov qword [rsp + 0x1e8], rdi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x1f8], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x1e8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x1f8], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rsp + 0x70]
call fcn.1400053c0
nop
lea rcx, [rsp + 0x50]
call fcn.140101d20
nop
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x1d8], rdi
lea rdx, [rsp + 0x1e8]
cmp qword [rsp + 0x200], 0x10
cmovae rdx, qword [rsp + 0x1e8]
mov r8d, 1
lea rcx, [rsp + 0x90]
call fcn.140030110
mov rax, qword [rsp + 0x90]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x90], rdi
mov rax, qword [rsp + 0x90]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x8c], edx
lea r8, [rsp + 0x1a0]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x260]
call fcn.14012a4b0
nop
mov rax, qword [rsp + 0x90]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x90], rdi
mov rax, qword [rsp + 0x90]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x8c], edx
lea rcx, [rsp + 0xa0]
call fcn.140030d90
lea rcx, [rsp + 0xa8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x140]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0x260]
call fcn.1401ca540
nop
movzx edx, byte [rsp + 0x260]
lea rcx, [rsp + 0x268]
call fcn.140018780
nop
jmp 0x1401ca188
lea rdx, [rsp + 0x210]
mov rcx, rbx
call fcn.1400181c0
movzx ecx, byte [rsp + 0x250]
mov byte [rbx + 0x40], cl
movzx ecx, byte [rsp + 0x251]
mov byte [rbx + 0x41], cl
lea rcx, [rsp + 0x1e8]
call fcn.1400053c0
nop
lea rcx, [rsp + 0x210]
call fcn.140017c90
mov rax, rbx
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.1401e0b10
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x290
pop rdi
ret
Function at 0x1401cf6a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
mov eax, 0x13c0
call fcn.1401e23e0
sub rsp, rax
mov rax, qword [0x1402a1fc0]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
mov ebx, r8d
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x24], eax
mov r8d, 0x270
nop dword [rax]
nop dword [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x24], eax
inc rdx
cmp rdx, r8
jb 0x1401cf6f0
mov dword [rsp + 0x20], r8d
cmp ebx, 0x80000000
jb 0x1401cf7a2
cmp ebx, 0xffffffff
jne 0x1401cf7a2
lea r9, [rsp + 0x28]
nop word [rax + rax]
mov edx, dword [r9 - 4]
xor edx, dword [r9]
lea r9, [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x62c]
xor ecx, edx
mov dword [r9 + 0x9b8], ecx
sub r8, 1
jne 0x1401cf730
mov r8d, dword [rsp + 0x20]
mov ecx, dword [rsp + r8*4 + 0x24]
mov eax, ecx
shr eax, 0xb
and eax, dword [rsp + 0x13a4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
jmp 0x1401cf808
mov qword [rsp + 0x13d0], rdi
lea edi, [rbx + 1]
nop dword [rax]
xor r9d, r9d
xor r8d, r8d
test ebx, ebx
je 0x1401cf7d8
nop word [rax + rax]
lea rcx, [rsp + 0x20]
call fcn.14002ae40
mov r8d, 0xffffffff
mov r9d, eax
cmp r8d, ebx
jb 0x1401cf7c0
xor edx, edx
mov eax, r8d
div edi
xor edx, edx
mov ecx, eax
mov eax, r9d
div edi
cmp eax, ecx
jb 0x1401cf7f7
xor edx, edx
mov eax, r8d
div edi
cmp edx, ebx
jne 0x1401cf7b0
xor edx, edx
mov eax, r9d
div edi
mov rdi, qword [rsp + 0x13d0]
mov eax, edx
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.1401e0b10
add rsp, 0x13c0
pop rbx
ret
Function at 0x1401d0750
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, qword [rcx + 0xb8]
lea rcx, [0x1402bdd10]
call qword [sym.imp.VCRUNTIME140.dll___std_type_info_hash]
mov qword [rsp + 0x50], rax
mov r8, rax
movzx ecx, byte [rsp + 0x51]
movabs r9, 0x100000001b3
movzx edx, al
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movzx eax, byte [rsp + 0x52]
imul rdx, r9
xor rdx, rcx
mov rcx, qword [rbx + 0x98]
imul rdx, r9
xor rdx, rax
movzx eax, byte [rsp + 0x53]
imul rdx, r9
xor rdx, rax
movzx eax, byte [rsp + 0x54]
imul rdx, r9
xor rdx, rax
movzx eax, byte [rsp + 0x55]
imul rdx, r9
xor rdx, rax
movzx eax, byte [rsp + 0x56]
imul rdx, r9
xor rdx, rax
movzx eax, byte [rsp + 0x57]
imul rdx, r9
xor rdx, rax
imul rdx, r9
and rcx, rdx
mov rdx, qword [rbx + 0x70]
shl rcx, 4
add rcx, qword [rbx + 0x80]
mov rax, qword [rcx + 8]
cmp rax, rdx
je 0x1401d0821
mov rcx, qword [rcx]
cmp r8, qword [rax + 0x10]
je 0x1401d0823
nop
cmp rax, rcx
je 0x1401d0821
mov rax, qword [rax + 8]
cmp r8, qword [rax + 0x10]
jne 0x1401d0810
jmp 0x1401d0823
xor eax, eax
test rax, rax
cmove rax, rdx
cmp rax, rdx
je 0x1401d0839
add rax, 0x18
add rsp, 0x40
pop rbx
ret
lea rdx, str.Table_could_not_be_found__Use_an_auto_table_type
lea rcx, [rsp + 0x20]
call fcn.140009ee0
lea rdx, [0x14029c130]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1401d4c50
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x140366900], 0
jne 0x1401d4c65
xor edx, edx
mov ecx, 0x10001
jmp fcn.1401d6d10
jmp 0x1401d7c20
push rbx
sub rsp, 0xa0
mov rax, qword [0x1402a1fc0]
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 0x1401d7cba
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x1401d7c85
mov rbx, qword [0x140366cf0]
test rbx, rbx
je 0x1401d7c9b
mov rcx, rbx
call fcn.1401d43a0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1401d7c73
jmp 0x1401d7c9b
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 0x1401d7c60
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x1401d7db7
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 0x1401d7daf
movdqa xmm0, xmmword [0x140209e20]
xor ebx, ebx
movdqa xmm1, xmmword [0x140209e30]
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, [0x1403683d8]
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 0x1401d7d7e
cmp byte [rbp + rdi + 0x88], 1
jne 0x1401d7d7e
call fcn.1401d9490
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.1401d29f0
inc rbx
cmp rbx, 4
jl 0x1401d7d40
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 [0x140368d78]
test rbx, rbx
je 0x1401d7e3c
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 0x1401d7dfe
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x1401d7e3c
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.1401e0b10
add rsp, 0xa0
pop rbx
ret
Function at 0x1401d4cf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [0x140366900], 0
mov r10d, r9d
mov r11d, r8d
jne 0x1401d4d0b
xor edx, edx
mov ecx, 0x10001
jmp fcn.1401d6d10
mov r8d, dword [rsp + 0x28]
mov r9d, dword [rsp + 0x30]
test r8d, r8d
jle 0x1401d4d60
test r9d, r9d
jle 0x1401d4d60
mov eax, dword [rsp + 0x38]
cmp eax, 0xfffffffe
jg 0x1401d4d3c
mov r8d, eax
lea rdx, str.Invalid_refresh_rate__i
mov ecx, 0x10004
jmp fcn.1401d6d10
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.1401d8140
lea rdx, str.Invalid_window_size__ix_i
mov ecx, 0x10004
jmp fcn.1401d6d10

Function at 0x1401d5e90
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x140366900], 0
jne 0x1401d5eb0
xor edx, edx
mov ecx, 0x10001
call fcn.1401d6d10
xor eax, eax
add rsp, 0x28
ret
lea rcx, [0x140367f1c]
add rsp, 0x28
jmp fcn.1401dbb70

Function at 0x1401d7400
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.1401d8ce0
test eax, eax
je 0x1401d7553
cmp dword [rdi], 0
je 0x1401d74c1
mov eax, dword [rdi + 4]
cmp eax, 0x36001
jne 0x1401d7460
call fcn.1401de2f0
test eax, eax
je 0x1401d7553
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.1401dde70
jmp 0x1401d74a6
cmp eax, 0x36002
jne 0x1401d7484
call fcn.1401df6f0
test eax, eax
je 0x1401d7553
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.1401df1e0
jmp 0x1401d74a6
cmp eax, 0x36003
jne 0x1401d74ae
call fcn.1401e0530
test eax, eax
je 0x1401d7553
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.1401e02f0
test eax, eax
je 0x1401d7553
mov rdx, rdi
mov rcx, rbx
call fcn.1401d5670
test eax, eax
je 0x1401d7553
cmp qword [rbx + 0x48], 0
je 0x1401d7526
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.1401d8aa0
mov rcx, rbx
call fcn.1401d93f0
cmp dword [rsi + 0x2c], 0
je 0x1401d754c
mov rcx, rbx
call fcn.1401d26e0
mov eax, 1
jmp 0x1401d7555
cmp dword [rsi + 0x14], 0
je 0x1401d754c
mov rcx, qword [rbx + 0x350]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
cmp dword [rsi + 0x1c], 0
je 0x1401d754c
mov rcx, rbx
call fcn.1401d7700
mov eax, 1
jmp 0x1401d7555
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 0x1401d7c20
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x140366900], 0
jne 0x1401d4c65
xor edx, edx
mov ecx, 0x10001
jmp fcn.1401d6d10
jmp 0x1401d7c20
push rbx
sub rsp, 0xa0
mov rax, qword [0x1402a1fc0]
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 0x1401d7cba
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x1401d7c85
mov rbx, qword [0x140366cf0]
test rbx, rbx
je 0x1401d7c9b
mov rcx, rbx
call fcn.1401d43a0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1401d7c73
jmp 0x1401d7c9b
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 0x1401d7c60
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x1401d7db7
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 0x1401d7daf
movdqa xmm0, xmmword [0x140209e20]
xor ebx, ebx
movdqa xmm1, xmmword [0x140209e30]
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, [0x1403683d8]
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 0x1401d7d7e
cmp byte [rbp + rdi + 0x88], 1
jne 0x1401d7d7e
call fcn.1401d9490
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.1401d29f0
inc rbx
cmp rbx, 4
jl 0x1401d7d40
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 [0x140368d78]
test rbx, rbx
je 0x1401d7e3c
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 0x1401d7dfe
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x1401d7e3c
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.1401e0b10
add rsp, 0xa0
pop rbx
ret
Function at 0x1401d91e0
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x140368d78], rcx
lea rdi, [rcx + 0x350]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1401d923c
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 [0x140368d68], xmm0
movsd qword [0x140368d70], xmm1
cmp dword [rbx + 0x7c], 0x34001
jne 0x1401d9280
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1401d9261
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SetCursor]
lea rdi, [rbx + 0x350]
jmp 0x1401d9288
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 0x1401d9288
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.1401d26e0
mov rcx, rbx
call fcn.1401d9630
cmp dword [rbx + 0x1f8], 0
je 0x1401d92db
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 0x1401d92db
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.1401dce30
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1401d92f0
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x1f8], 0
mov rbx, rcx
je 0x1401d9340
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 0x1401d9340
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.1401dce30
xor ecx, ecx
mov qword [0x140368d78], 0
call fcn.1401d9630
cvttsd2si ecx, qword [0x140368d68]
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x140368d70]
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 0x1401d93d4
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1401d93b8
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 0x1401d9490
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 0x1401dbac0
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 0x1401dbaf0
lea rdx, [0x14020a200]
mov ecx, 0x10008
call fcn.1401dce30
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x1401dd650
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 [0x1402a1fc0]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x100
call fcn.1401e227b
xor edx, edx
lea rcx, [0x140368692]
mov r8d, 0x6d1
call fcn.1401e227b
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1e0], rdi
sub r14, 0x480
lea r15, [0x140368418]
xor r13d, r13d
lea r12, [0x140368732]
mov ebx, 0x20
movsx esi, word [r15]
cmp esi, 0xffffffff
je 0x1401dd7f5
cmp ebx, 0x140
jb 0x1401dd770
cmp ebx, 0x14e
ja 0x1401dd770
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 0x1401dd77f
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 0x1401dd7c2
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 0x1401dd7f5
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 0x1401dd6d2
mov rdi, qword [rsp + 0x1e0]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1401e0b10
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 0x1401e0530
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1402a1fc0]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x140368fa8], 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 0x1401e0585
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401e0b10
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 [0x140368fa8], rax
test rax, rax
jne 0x1401e05c8
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x1401e0590
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.1401d6d10
jmp 0x1401e06ed
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140368fa8]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x140368fb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140368fa8]
lea rdx, str.OSMesaDestroyContext
mov qword [0x140368fb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140368fa8]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x140368fc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140368fa8]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x140368fc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140368fa8]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x140368fd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140368fa8]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x140368fd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140368fb0], 0
mov qword [0x140368fe0], rax
je 0x1401e06bf
cmp qword [0x140368fc0], 0
je 0x1401e06bf
cmp qword [0x140368fc8], 0
je 0x1401e06bf
cmp qword [0x140368fd0], 0
je 0x1401e06bf
cmp qword [0x140368fd8], 0
je 0x1401e06bf
test rax, rax
je 0x1401e06bf
mov eax, 1
jmp 0x1401e06ef
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1401d6d10
mov rcx, qword [0x140368fa8]
test rcx, rcx
je 0x1401e06ed
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x140368fa8], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401e0b10
add rsp, 0x48
ret

Function at 0x1401e18f4
Capabilities:
Parse pe header

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