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

Disassembly:
push rbx
movsxd rbx, r9d
mov r10, r8
mov r11, rdx
cmp rdx, r8
je 0x14013e892
mov qword [rsp + 0x10], rsi
lea rsi, [rcx - 1]
not rcx
shr rsi, 0x3f
shr rcx, 0x3f
and rsi, rcx
mov ecx, dword [rdx + 8]
xor ecx, dword [r8 + 8]
dec rsi
and ecx, esi
xor dword [rdx + 8], ecx
xor dword [r8 + 8], ecx
mov edx, dword [r8 + 0x10]
movq xmm4, rsi
xor edx, dword [r11 + 0x10]
and edx, esi
punpcklqdq xmm4, xmm4
xor dword [r11 + 0x10], edx
xor dword [r8 + 0x10], edx
mov ecx, dword [r11 + 0x14]
mov edx, dword [r8 + 0x14]
xor rdx, rcx
and edx, 4
and rdx, rsi
mov eax, edx
xor eax, ecx
xor ecx, ecx
mov dword [r11 + 0x14], eax
xor dword [r8 + 0x14], edx
mov edx, ecx
test r9d, r9d
jle 0x14013e852
cmp ebx, 2
jb 0x14013e852
mov r9, qword [r8]
lea rax, [rbx - 1]
mov r8, qword [r11]
mov qword [rsp + 0x18], rdi
lea rdi, [rbx - 1]
lea rdi, [r9 + rdi*8]
lea rax, [r8 + rax*8]
cmp r9, rax
ja 0x14013e7e1
cmp rdi, r8
jae 0x14013e84d
cmp r9, r10
ja 0x14013e7eb
cmp rdi, r10
jae 0x14013e84d
cmp r9, r11
ja 0x14013e7f5
cmp rdi, r11
jae 0x14013e84d
cmp r8, r10
ja 0x14013e7ff
cmp rax, r10
jae 0x14013e84d
cmp r8, r11
ja 0x14013e809
cmp rax, r11
jae 0x14013e84d
mov eax, ebx
and eax, 0xfffffffe
nop
movdqu xmm2, xmmword [rcx + r9]
add edx, 2
movdqu xmm1, xmmword [rcx + r8]
lea rcx, [rcx + 0x10]
movdqa xmm3, xmm2
pxor xmm3, xmm1
pand xmm3, xmm4
movdqa xmm0, xmm3
pxor xmm3, xmm2
pxor xmm0, xmm1
movdqu xmmword [rcx + r8 - 0x10], xmm0
movdqu xmmword [rcx + r9 - 0x10], xmm3
cmp edx, eax
jl 0x14013e810
mov rdi, qword [rsp + 0x18]
movsxd rax, edx
cmp rax, rbx
jge 0x14013e88d
nop word [rax + rax]
mov rcx, qword [r11]
mov rdx, qword [rcx + rax*8]
lea r8, [rcx + rax*8]
mov rcx, qword [r10]
mov r9, qword [rcx + rax*8]
xor r9, rdx
and r9, rsi
xor rdx, r9
mov qword [r8], rdx
mov rcx, qword [r10]
xor qword [rcx + rax*8], r9
inc rax
cmp rax, rbx
jl 0x14013e860
mov rsi, qword [rsp + 0x10]
pop rbx
ret
Function at 0x14015fba0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.140248ad0
sub rsp, rax
lea rcx, [0x140684810]
add rsp, 0x28
jmp fcn.140120fb0

Function at 0x14019d220
Capabilities:
Query environment variable

Disassembly:
push rbx
mov eax, 0x20
call fcn.140248ad0
sub rsp, rax
mov rbx, rcx
call fcn.1401007f0
test eax, eax
je 0x14019d243
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]

Function at 0x14019dfd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.140248ad0
sub rsp, rax
mov rcx, qword [rcx + 0x18]
add rsp, 0x28
jmp fcn.14013eca0
Function at 0x1401dd2f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, gethostname
call fcn.140248ad0
sub rsp, rax
cmp dword [rsp + 0x68], 0
je 0x1401dd319
lea rax, [0x1401db960]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.1401d48a0
lea rax, [0x1401dab20]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.1401d45e0
Function at 0x14023bad0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x140684e70], 0
jne 0x14023bae5
xor edx, edx
mov ecx, 0x10001
jmp fcn.14023a3e0
jmp 0x14023e780
push rbx
sub rsp, 0x80
mov rax, qword [0x14067d0d8]
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 0x14023e817
cmp dword [rsp + 0x38], 0x12
jne 0x14023e7e2
mov rbx, qword [0x140685260]
test rbx, rbx
je 0x14023e7f8
nop word [rax + rax]
mov rcx, rbx
call fcn.14023b1b0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14023e7d0
jmp 0x14023e7f8
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 0x14023e7b7
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x14023e942
lea rdx, str.GLFW
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rbx, rax
test rax, rax
je 0x14023e942
mov qword [rsp + 0x90], rdi
mov ecx, 0xa0
movsx edi, word [0x140686bf0]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x14023e886
cmp byte [rbx + 0x1dc], 1
jne 0x14023e886
call fcn.140240510
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x154
mov rcx, rbx
call fcn.14023c410
movsx edi, word [0x140686bf8]
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x14023e8c2
cmp byte [rbx + 0x1e0], 1
jne 0x14023e8c2
call fcn.140240510
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x158
mov rcx, rbx
call fcn.14023c410
movsx edi, word [0x140686bf6]
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x14023e8fe
cmp byte [rbx + 0x1df], 1
jne 0x14023e8fe
call fcn.140240510
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x157
mov rcx, rbx
call fcn.14023c410
movsx edi, word [0x140686bfe]
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x14023e93a
cmp byte [rbx + 0x1e3], 1
jne 0x14023e93a
call fcn.140240510
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x15b
mov rcx, rbx
call fcn.14023c410
mov rdi, qword [rsp + 0x90]
mov rbx, qword [0x1406872e8]
test rbx, rbx
je 0x14023e9c7
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 0x14023e989
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x14023e9c7
mov rcx, qword [rbx + 0x350]
mov eax, r8d
cdq
mov dword [rsp + 0x60], r9d
sub eax, edx
mov dword [rbx + 0x388], r9d
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x38c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140248540
add rsp, 0x80
pop rbx
ret
Function at 0x14023e090
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.14023fcd0
test eax, eax
je 0x14023e1e3
cmp dword [rdi], 0
je 0x14023e151
mov eax, dword [rdi + 4]
cmp eax, 0x36001
jne 0x14023e0f0
call fcn.140245eb0
test eax, eax
je 0x14023e1e3
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.140245a30
jmp 0x14023e136
cmp eax, 0x36002
jne 0x14023e114
call fcn.140247210
test eax, eax
je 0x14023e1e3
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.140246d40
jmp 0x14023e136
cmp eax, 0x36003
jne 0x14023e13e
call fcn.140248090
test eax, eax
je 0x14023e1e3
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.140247e60
test eax, eax
je 0x14023e1e3
mov rdx, rdi
mov rcx, rbx
call fcn.140241c70
test eax, eax
je 0x14023e1e3
cmp qword [rbx + 0x48], 0
je 0x14023e1b6
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.14023f770
mov rcx, rbx
call fcn.140240470
cmp dword [rsi + 0x2c], 0
je 0x14023e1dc
mov rcx, rbx
call fcn.14023c100
mov eax, 1
jmp 0x14023e1e5
cmp dword [rsi + 0x14], 0
je 0x14023e1dc
mov rcx, qword [rbx + 0x350]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
cmp dword [rsi + 0x1c], 0
je 0x14023e1dc
mov rcx, rbx
call fcn.14023e2e0
mov eax, 1
jmp 0x14023e1e5
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 0x14023e780
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x140684e70], 0
jne 0x14023bae5
xor edx, edx
mov ecx, 0x10001
jmp fcn.14023a3e0
jmp 0x14023e780
push rbx
sub rsp, 0x80
mov rax, qword [0x14067d0d8]
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 0x14023e817
cmp dword [rsp + 0x38], 0x12
jne 0x14023e7e2
mov rbx, qword [0x140685260]
test rbx, rbx
je 0x14023e7f8
nop word [rax + rax]
mov rcx, rbx
call fcn.14023b1b0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14023e7d0
jmp 0x14023e7f8
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 0x14023e7b7
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x14023e942
lea rdx, str.GLFW
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rbx, rax
test rax, rax
je 0x14023e942
mov qword [rsp + 0x90], rdi
mov ecx, 0xa0
movsx edi, word [0x140686bf0]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x14023e886
cmp byte [rbx + 0x1dc], 1
jne 0x14023e886
call fcn.140240510
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x154
mov rcx, rbx
call fcn.14023c410
movsx edi, word [0x140686bf8]
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x14023e8c2
cmp byte [rbx + 0x1e0], 1
jne 0x14023e8c2
call fcn.140240510
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x158
mov rcx, rbx
call fcn.14023c410
movsx edi, word [0x140686bf6]
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x14023e8fe
cmp byte [rbx + 0x1df], 1
jne 0x14023e8fe
call fcn.140240510
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x157
mov rcx, rbx
call fcn.14023c410
movsx edi, word [0x140686bfe]
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x14023e93a
cmp byte [rbx + 0x1e3], 1
jne 0x14023e93a
call fcn.140240510
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, edi
mov edx, 0x15b
mov rcx, rbx
call fcn.14023c410
mov rdi, qword [rsp + 0x90]
mov rbx, qword [0x1406872e8]
test rbx, rbx
je 0x14023e9c7
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 0x14023e989
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x14023e9c7
mov rcx, qword [rbx + 0x350]
mov eax, r8d
cdq
mov dword [rsp + 0x60], r9d
sub eax, edx
mov dword [rbx + 0x388], r9d
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x38c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140248540
add rsp, 0x80
pop rbx
ret
Function at 0x1402401c0
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x1406872e8], rcx
lea rdi, [rcx + 0x350]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14024021c
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 [0x1406872d8], xmm0
movsd qword [0x1406872e0], xmm1
cmp dword [rbx + 0x7c], 0x34001
jne 0x140240260
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140240241
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SetCursor]
lea rdi, [rbx + 0x350]
jmp 0x140240268
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 0x140240268
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.14023c100
mov rcx, rbx
call fcn.14023f9b0
cmp dword [rbx + 0x1f8], 0
je 0x1402402bb
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 0x1402402bb
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.140242790
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1402402d0
Capabilities:
Register raw input devices

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

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x1f8], 0
mov rbx, rcx
je 0x140240370
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 0x140240370
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.140242790
xor ecx, ecx
mov qword [0x1406872e8], 0
call qword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si ecx, qword [0x1406872d8]
mov qword [0x1406872f0], 0
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x1406872e0]
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 0x140240410
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1402403f4
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 0x140240420
Capabilities:
Register raw input devices

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

Function at 0x140240510
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, select
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, reloc.WS2_32.dll_select
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, shutdown
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 0x140242fc0
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 [0x14067d0d8]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x140686c02]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1d0], rdi
sub r14, 0x480
lea rbp, [0x140686988]
xor r12d, r12d
lea r15, [0x140686ca2]
mov ebx, 0x20
movsx esi, word [rbp]
cmp esi, 0xffffffff
je 0x140243178
cmp ebx, 0x140
jb 0x1402430df
cmp ebx, 0x14e
ja 0x1402430df
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], WSAGetLastError
mov dword [rsp + 0x64], WSASetLastError
mov dword [rsp + 0x68], WSASetLastError
mov dword [rsp + 0x6c], reloc.WS2_32.dll_WSAGetLastError
mov dword [rsp + 0x70], WSASetLastError
mov dword [rsp + 0x74], WSASetLastError
mov dword [rsp + 0x78], WSASetLastError
mov edi, dword [r14]
jmp 0x1402430ee
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], reloc.WS2_32.dll_recv
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x140243141
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x140243178
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 0x140243041
mov rdi, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140248540
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 0x1402446f0
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 0x140244720
lea rdx, [0x14031fe18]
mov ecx, 0x10008
call fcn.140242790
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140248090
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14067d0d8]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x140687520], 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 0x1402480e5
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140248540
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 [0x140687520], rax
mov rcx, rax
test rax, rax
jne 0x140248115
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x1402480f0
mov rbx, qword [rsp + 0x40]
test rcx, rcx
jne 0x140248144
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.14023a3e0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140248540
add rsp, 0x48
ret
lea rdx, str.OSMesaCreateContextExt
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140687520]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x140687528], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140687520]
lea rdx, str.OSMesaDestroyContext
mov qword [0x140687530], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140687520]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x140687538], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140687520]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x140687540], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140687520]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x140687548], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140687520]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x140687550], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140687528], 0
mov qword [0x140687558], rax
je 0x140248235
cmp qword [0x140687538], 0
je 0x140248235
cmp qword [0x140687540], 0
je 0x140248235
cmp qword [0x140687548], 0
je 0x140248235
cmp qword [0x140687550], 0
je 0x140248235
test rax, rax
jne 0x1402480ce
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.14023a3e0
mov rcx, qword [0x140687520]
test rcx, rcx
je 0x140248263
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x140687520], 0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140248540
add rsp, 0x48
ret

Function at 0x140249200
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140249640
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140321560]
cmp byte [rcx + rax], 0
je 0x140249640
dec r8
sub rdx, 1
jne 0x140249626
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret