joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400809a0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ecx, dword [0x14016b930]
mov rbx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 1
je 0x1400809c6
and rax, 0xfffffffffffffffe
jmp 0x1400809d3
xor edx, edx
mov r8b, 1
lea ecx, [rdx - 1]
call fcn.14007cac0
mov r8, rbx
mov rdx, rdi
mov rcx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp method.tbb::internal::custom_scheduler_struct_tbb::internal::IntelSchedulerTraits_.virtual_40

Function at 0x140080c10
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, 1
xor eax, eax
mov ebx, edi
lock cmpxchg byte [0x14016b970], dil
je 0x140080c5e
nop
cmp ebx, 0x10
jg 0x140080c4b
movsxd rax, ebx
test ebx, ebx
je 0x140080c47
nop dword [rax]
pause
sub rax, rdi
jne 0x140080c40
add ebx, ebx
jmp 0x140080c51
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
xor eax, eax
lock cmpxchg byte [0x14016b970], dil
jne 0x140080c30
cmp byte [0x14016b96b], 0
jne 0x140080d29
lock xadd dword [0x14016b96c], edi
inc edi
cmp edi, 1
jne 0x140080c7f
call fcn.14007c940
lea rcx, str.TBB_VERSION
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
je 0x140080ccf
lea rdx, [0x1401115f0]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strspn]
mov rdi, rax
cmp byte [rbx + rax], 0x31
jne 0x140080ccf
inc rdi
lea rdx, [0x1401115f0]
lea rcx, [rbx + rdi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strspn]
add rdi, rax
cmp byte [rbx + rdi], 0
jne 0x140080ccf
call fcn.14007afb0
call fcn.14007c7c0
call fcn.14007cc00
xor ecx, ecx
call fcn.14007d2d0
cmp dword [0x14016b934], 0
jne 0x140080cf4
call fcn.1400824b0
mov dword [0x14016b934], eax
cmp qword [0x14016b938], 0
jne 0x140080d0a
call fcn.14007aed0
mov qword [0x14016b938], rax
call fcn.14007cd60
lea rdx, str.disabled
lea rcx, str.Tools_support
call fcn.14007aef0
mov byte [0x14016b96b], 1
mov rbx, qword [rsp + 0x30]
nop
mov byte [0x14016b970], 0
add rsp, 0x20
pop rdi
ret

Function at 0x140080d80
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, 1
lock xadd dword [0x14016b96c], eax
inc eax
cmp eax, 1
je fcn.14007c940
ret

Function at 0x1400810f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ecx, dword [0x14016b930]
lea rbx, [rdx - 8]
xor eax, eax
test rdx, rdx
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov rcx, rbx
and rdi, 0xfffffffffffffffe
cmp rdi, rbx
je 0x140081147
call fcn.14007c990
test rdi, rdi
mov rcx, rbx
setne dl
call fcn.14007d990
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14007c990
mov dl, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14007d990
Function at 0x1400826b0
Capabilities:
Get system information on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x78
xor r9d, r9d
mov dword [rsp + 0x20], 7
lea rdx, str.GetActiveProcessorCount
lea rcx, str.Kernel32.dll
lea r8d, [r9 + 4]
call fcn.140082380
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edi, 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov r8, qword [rsp + 0x90]
lea edx, [rdi + 0x1f]
xor ebx, ebx
mov ecx, ebx
nop word [rax + rax]
test rdi, r8
lea eax, [rcx + 1]
cmove eax, ecx
add rdi, rdi
test rdi, r8
lea ecx, [rax + 1]
cmove ecx, eax
add rdi, rdi
sub rdx, 1
jne 0x140082720
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0xa8], rsi
mov dword [0x14016b99c], ecx
mov dword [0x14016b998], ecx
cmp ecx, dword [rsp + 0x60]
jne 0x140082833
cmp qword [0x14016bd90], rbx
je 0x140082833
call qword [0x14016bd98]
movzx r8d, ax
mov dword [0x1401537c0], r8d
cmp r8d, 0x40
jbe 0x140082794
mov dword [0x1401537c0], 0x40
jmp 0x14008279e
cmp r8d, 1
jbe 0x14008283a
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea rdx, [rsp + 0x30]
call qword [0x14016bda8]
test eax, eax
je 0x1400827c1
movzx eax, word [rsp + 0x38]
mov dword [0x14016b980], eax
mov r8d, dword [0x1401537c0]
mov ebp, ebx
movzx esi, bx
test r8d, r8d
jle 0x14008283a
mov qword [rsp + 0x70], r14
lea r14, [0x14016b990]
nop
movzx edi, si
movzx ecx, si
add rdi, rdi
call qword [0x14016bd90]
mov dword [r14 + rdi*8 + 8], eax
mov ecx, eax
cmp eax, 0x40
jne 0x140082804
mov rdx, 0xffffffffffffffff
jmp 0x14008280f
mov edx, 1
shl rdx, cl
dec rdx
mov r8d, dword [0x1401537c0]
inc si
add ebp, ecx
movzx eax, si
mov qword [r14 + rdi*8], rdx
mov dword [r14 + rdi*8 + 0xc], ebp
cmp eax, r8d
jl 0x1400827e0
mov r14, qword [rsp + 0x70]
jmp 0x14008283a
mov r8d, dword [0x1401537c0]
lea rdx, [0x140113d28]
lea rcx, str.Processor_groups
call fcn.14007aef0
mov eax, dword [0x1401537c0]
mov rsi, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0xa0]
cmp eax, 1
jle 0x14008289a
test eax, eax
jle 0x14008289a
lea rdi, [0x14016b998]
mov r9d, dword [rdi]
lea rdx, str._d:_size__d
mov r8d, ebx
lea rcx, str.______Group
call fcn.14007aef0
inc ebx
lea rdi, [rdi + 0x10]
cmp ebx, dword [0x1401537c0]
jl 0x140082873
add rsp, 0x78
pop rdi
pop rbx
ret

Function at 0x140083b80
Capabilities:
Terminate process

Disassembly:
test edx, edx
jns 0x140083b89
lock add dword [rcx + 0x20], edx
ret
jg fcn.140084050
ret
Function at 0x140085e20
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x14016be40], 0
jne 0x140085e35
xor edx, edx
mov ecx, 0x10001
jmp fcn.140084890
jmp fcn.14008b9e0

Function at 0x140085ea0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x14016be40], 0
jne 0x140085eb5
xor edx, edx
mov ecx, 0x10001
jmp fcn.140084890
jmp 0x14008c410
sub rsp, 0x28
call qword [sym.imp.USER32.dll_WaitMessage]
add rsp, 0x28
jmp fcn.14008b9e0
Function at 0x140088f90
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 [0x140168fc0]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, pe_nt_image_headers64
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x14016d45a]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1d0], rdi
sub r14, 0x480
lea rbp, [0x14016d1e0]
xor r12d, r12d
lea r15, [0x14016d4fa]
mov ebx, 0x20
movsx esi, word [rbp]
cmp esi, 0xffffffff
je 0x140089148
cmp ebx, 0x140
jb 0x1400890af
cmp ebx, 0x14e
ja 0x1400890af
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 0x1400890be
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 0x140089111
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 0x140089148
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 0x140089011
mov rdi, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140108410
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
Function at 0x14008b320
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 0x14008b350
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.140088790
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x14008b9e0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x140168fc0]
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 0x14008ba77
cmp dword [rsp + 0x38], 0x12
jne 0x14008ba42
mov rbx, qword [0x14016c238]
test rbx, rbx
je 0x14008ba58
nop word [rax + rax]
mov rcx, rbx
call fcn.140085720
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14008ba30
jmp 0x14008ba58
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 0x14008ba17
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x14008bba2
lea rdx, str.GLFW
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rbx, rax
test rax, rax
je 0x14008bba2
mov qword [rsp + 0x90], rdi
mov ecx, 0xa0
movsx edi, word [0x14016d448]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x14008bae6
cmp byte [rbx + 0x1dc], 1
jne 0x14008bae6
call fcn.14008ced0
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x154
mov rcx, rbx
call fcn.140086610
movsx edi, word [0x14016d450]
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x14008bb22
cmp byte [rbx + 0x1e0], 1
jne 0x14008bb22
call fcn.14008ced0
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x158
mov rcx, rbx
call fcn.140086610
movsx edi, word [0x14016d44e]
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x14008bb5e
cmp byte [rbx + 0x1df], 1
jne 0x14008bb5e
call fcn.14008ced0
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x157
mov rcx, rbx
call fcn.140086610
movsx edi, word [0x14016d456]
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x14008bb9a
cmp byte [rbx + 0x1e3], 1
jne 0x14008bb9a
call fcn.14008ced0
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x15b
mov rcx, rbx
call fcn.140086610
mov rdi, qword [rsp + 0x90]
mov rbx, qword [0x14016db40]
test rbx, rbx
je 0x14008bc27
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 + 0x38c], eax
jne 0x14008bbe9
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x390], eax
je 0x14008bc27
mov rcx, qword [rbx + 0x350]
mov eax, r8d
cdq
mov dword [rsp + 0x60], r9d
sub eax, edx
mov dword [rbx + 0x38c], r9d
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x390], 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.140108410
add rsp, 0x80
pop rbx
ret
Function at 0x14008c410
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x14016be40], 0
jne 0x140085eb5
xor edx, edx
mov ecx, 0x10001
jmp fcn.140084890
jmp 0x14008c410
sub rsp, 0x28
call qword [sym.imp.USER32.dll_WaitMessage]
add rsp, 0x28
jmp fcn.14008b9e0

Function at 0x14008cc20
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x14016db40], rcx
lea rdi, [rcx + 0x350]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14008cc7c
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 [0x14016db30], xmm0
movsd qword [0x14016db38], xmm1
cmp dword [rbx + 0x7c], 0x34001
jne 0x14008ccc0
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14008cca1
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SetCursor]
lea rdi, [rbx + 0x350]
jmp 0x14008ccc8
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 0x14008ccc8
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.140086450
mov rcx, rbx
call fcn.14008d010
cmp dword [rbx + 0x1f8], 0
je 0x14008cd1b
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 0x14008cd1b
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.140088790
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14008cd30
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x1f8], 0
mov rbx, rcx
je 0x14008cd80
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 0x14008cd80
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.140088790
xor ecx, ecx
mov qword [0x14016db40], 0
call fcn.14008d010
cvttsd2si ecx, qword [0x14016db30]
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x14016db38]
mov dword [rsp + 0x40], ecx
mov dword [rbx + 0x38c], ecx
mov rcx, qword [rbx + 0x350]
mov dword [rsp + 0x44], eax
mov dword [rbx + 0x390], 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 0x14008ce14
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14008cdf8
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 0x14008ced0
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 0x140090980
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
cmp qword [0x14016ddb0], 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 0x1400909b9
mov eax, 1
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14016ddb0], rax
mov rcx, rax
test rax, rax
jne 0x1400909e5
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x1400909c0
mov rbx, qword [rsp + 0x40]
test rcx, rcx
jne 0x140090a07
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.140084890
xor eax, eax
add rsp, 0x48
ret
lea rdx, str.OSMesaCreateContextExt
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14016ddb0]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x14016ddb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14016ddb0]
lea rdx, str.OSMesaDestroyContext
mov qword [0x14016ddc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14016ddb0]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x14016ddc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14016ddb0]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x14016ddd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14016ddb0]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x14016ddd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14016ddb0]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x14016dde0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x14016ddb8], 0
mov qword [0x14016dde8], rax
je 0x140090af8
cmp qword [0x14016ddc8], 0
je 0x140090af8
cmp qword [0x14016ddd0], 0
je 0x140090af8
cmp qword [0x14016ddd8], 0
je 0x140090af8
cmp qword [0x14016dde0], 0
je 0x140090af8
test rax, rax
jne 0x1400909af
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140084890
mov rcx, qword [0x14016ddb0]
test rcx, rcx
je 0x140090b26
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x14016ddb0], 0
xor eax, eax
add rsp, 0x48
ret
Function at 0x140093160
Capabilities:
Encode data using xor

Disassembly:
cmp rdx, r8
jge 0x140093210
mov r9, qword [rcx + 8]
mov rax, r8
mov rcx, qword [rcx]
sub rax, rdx
movss xmm2, dword [0x140112d70]
cmp rax, 4
jl 0x1400931f4
lea r10, [r8 - 3]
nop dword [rax + rax]
mov rax, qword [r9 + 8]
movss xmm0, dword [rax + rdx*4]
mov rax, qword [rcx]
xorps xmm0, xmm2
movss dword [rax + rdx*4], xmm0
mov rax, qword [r9 + 8]
movss xmm1, dword [rax + rdx*4 + 4]
mov rax, qword [rcx]
xorps xmm1, xmm2
movss dword [rax + rdx*4 + 4], xmm1
mov rax, qword [r9 + 8]
movss xmm0, dword [rax + rdx*4 + 8]
mov rax, qword [rcx]
xorps xmm0, xmm2
movss dword [rax + rdx*4 + 8], xmm0
mov rax, qword [r9 + 8]
movss xmm1, dword [rax + rdx*4 + 0xc]
mov rax, qword [rcx]
xorps xmm1, xmm2
movss dword [rax + rdx*4 + 0xc], xmm1
add rdx, 4
cmp rdx, r10
jl 0x140093190
cmp rdx, r8
jge 0x140093210
mov rax, qword [r9 + 8]
movss xmm0, dword [rax + rdx*4]
mov rax, qword [rcx]
xorps xmm0, xmm2
movss dword [rax + rdx*4], xmm0
inc rdx
cmp rdx, r8
jl 0x1400931f4
ret
Function at 0x1400c28a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r12, r9
mov rbx, rdx
mov r15, rcx
mov rdx, qword [rcx]
mov rsi, rbx
sub rsi, rdx
mov rax, qword [rcx + 8]
sub rax, rdx
sar rax, 4
movabs r9, 0xfffffffffffffff
cmp rax, r9
je 0x1400c2ae3
lea r8, [rax + 1]
mov qword [rsp + 0x40], r8
mov rcx, qword [rcx + 0x10]
sub rcx, rdx
sar rcx, 4
mov rdx, rcx
shr rdx, 1
mov rax, r9
sub rax, rdx
cmp rcx, rax
ja 0x1400c2add
lea rax, [rdx + rcx]
mov r14, r8
cmp rax, r8
cmovae r14, rax
cmp r14, r9
ja 0x1400c2add
mov rcx, r14
shl rcx, 4
mov qword [rsp + 0x30], r14
cmp rcx, 0x1000
jb 0x1400c296d
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400c2add
mov rcx, rax
call fcn.140108140
test rax, rax
je 0x1400c2966
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x1400c298d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x1400c2986
call fcn.140108140
mov rdi, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
jmp 0x1400c2992
xor edi, edi
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], rdi
and rsi, 0xfffffffffffffff0
lea r13, [rsi + rdi]
lea rax, [r13 + 0x10]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0xa8], rax
mov ecx, 0x20
call fcn.140108140
mov r9, rax
test r9, r9
je 0x1400c29f1
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax]
mov qword [r9], rcx
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax]
mov qword [r9 + 8], rcx
mov rax, qword [r12]
mov qword [r9 + 0x10], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov qword [r9 + 0x18], rax
mov qword [rsp + 0x50], r9
lea r12, [r13 + 8]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0
lea r8, [0x1400c2fc0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [r13], rax
test rax, rax
je 0x1400c2ae9
mov qword [rsp + 0xa8], r13
mov rdx, qword [r15 + 8]
mov rax, qword [r15]
mov rcx, rdi
cmp rbx, rdx
jne 0x1400c2a6b
cmp rax, rdx
je 0x1400c2ab7
nop dword [rax]
nop word [rax + rax]
xorps xmm0, xmm0
movups xmm1, xmmword [rax]
movups xmmword [rax], xmm0
movups xmmword [rcx], xmm1
lea rcx, [rcx + 0x10]
add rax, 0x10
cmp rax, rdx
jne 0x1400c2a50
jmp 0x1400c2ab7
cmp rax, rbx
je 0x1400c2a89
xorps xmm0, xmm0
movups xmm1, xmmword [rax]
movups xmmword [rax], xmm0
movups xmmword [rcx], xmm1
lea rcx, [rcx + 0x10]
add rax, 0x10
cmp rax, rbx
jne 0x1400c2a70
mov qword [rsp + 0xa8], rdi
mov rax, qword [r15 + 8]
cmp rbx, rax
je 0x1400c2ab7
sub rsi, rbx
add rsi, rdi
xorps xmm0, xmm0
movups xmm1, xmmword [rbx]
movups xmmword [rbx], xmm0
movups xmmword [rsi + rbx + 0x10], xmm1
add rbx, 0x10
cmp rbx, rax
jne 0x1400c2aa0
mov r9, r14
mov r8, qword [rsp + 0x40]
mov rdx, rdi
mov rcx, r15
call fcn.1400c4ea0
mov rax, r13
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
call fcn.14000df60
int3
call fcn.14000e090
nop
mov dword [r12], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3