joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800c2710
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov r15, r8
mov r14, rdx
mov rdi, rcx
xor r12d, r12d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x45], xmm0
movups xmmword [rbp - 0x35], xmm0
movups xmmword [rbp - 0x25], xmm0
movups xmmword [rbp - 0x15], xmm0
movups xmmword [rbp - 5], xmm0
movups xmmword [rbp + 0xb], xmm0
mov dword [rbp + 0x1b], eax
mov dword [rbp - 0x49], 0x68
movups xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1801862b0]
movdqu xmmword [rbp - 0x79], xmm1
mov word [rsp + 0x50], r12w
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.180009c90
mov rbx, qword [r14]
mov rsi, qword [r14 + 8]
cmp rbx, rsi
je 0x1800c2851
movabs r13, 0x7ffffffffffffffe
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
mov rax, r13
sub rax, rcx
cmp rax, 1
jb 0x1800c295b
mov rax, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1800c27d1
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 1
lea r9, [0x180180f68]
lea rcx, [rbp - 0x69]
call fcn.180009f50
nop
lea rdx, [rbp - 0x69]
lea rcx, [rsp + 0x50]
call fcn.180009c90
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 7
jbe 0x1800c2844
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800c283f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800c296d
call fcn.1800d95dc
add rbx, 0x20
cmp rbx, rsi
jne 0x1800c27b0
lea rdx, [rsp + 0x50]
cmp qword [rbp - 0x71], 7
cmova rdx, qword [rsp + 0x50]
mov qword [rsp + 0x48], r15
lea rax, [rbp - 0x49]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne bl
mov rdx, qword [rbp - 0x71]
cmp rdx, 7
jbe 0x1800c28d7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800c28d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800c2967
call fcn.1800d95dc
movdqa xmm0, xmmword [0x1801862b0]
movdqu xmmword [rbp - 0x79], xmm0
mov word [rsp + 0x50], r12w
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x1800c2925
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1800c2920
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800c2961
mov rcx, r8
call fcn.1800d95dc
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
mov rcx, r14
call fcn.180013f50
movzx eax, bl
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1800035b0
nop
call fcn.1800e5940
nop
call fcn.1800e5940
nop
call fcn.1800e5940
int3
Function at 0x1800c51f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 7
jbe 0x1800c51fe
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800c5214
test al, 0x10
je 0x1800c5214
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret

Function at 0x1800c5300
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x130
mov dword [rsp + 0x80], 0
lea rdx, [0x180180fd4]
lea rcx, [rsp + 0xd0]
call fcn.180007a50
nop
lea r8, [rsp + 0xd0]
mov rdx, qword [rsp + 0x140]
lea rcx, [rsp + 0x68]
call fcn.1800c5040
nop
lea rcx, [rsp + 0xd0]
call fcn.180007900
lea rcx, [rsp + 0x68]
call fcn.180007590
movzx eax, al
test eax, eax
je 0x1800c5392
mov byte [rsp + 0x40], 0
lea rcx, [rsp + 0x68]
call fcn.180013e80
nop
mov rcx, qword [rsp + 0x148]
call fcn.1800075f0
movzx eax, byte [rsp + 0x40]
jmp 0x1800c55f0
lea rcx, [rsp + 0x68]
call fcn.1800c5e80
lea rcx, [rsp + 0xb0]
call fcn.180007bc0
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1800075b0
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x60]
call fcn.1800075a0
mov qword [rsp + 0x88], rax
jmp 0x1800c53e5
mov rax, qword [rsp + 0x50]
add rax, 0x20
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x50], rax
je 0x1800c548d
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x90], rax
lea r8, [0x180180fd0]
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0xf0]
call fcn.1800088a0
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0xb0]
call fcn.180009c90
nop
lea rcx, [rsp + 0xf0]
call fcn.180007900
lea rcx, [rsp + 0xb0]
call fcn.1800c51f0
movzx eax, al
test eax, eax
jne 0x1800c5488
lea rcx, [rsp + 0xb0]
call fcn.1800078b0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x1800c53d7
call fcn.1803b4200
push rax
cmpsb byte [rsi], byte [rdi]
invalid
add rsp, 0x130
pop rdi
ret
Function at 0x1800c7fc0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x18039f280], 0
jne 0x1800c7fd5
xor edx, edx
mov ecx, 0x10001
jmp fcn.1800c83d0
jmp 0x1800c90c0
push rbx
sub rsp, 0xa0
mov rax, qword [0x18019d440]
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 0x1800c915a
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x1800c9125
mov rbx, qword [0x18039f670]
test rbx, rbx
je 0x1800c913b
mov rcx, rbx
call fcn.1800c77d0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1800c9113
jmp 0x1800c913b
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 0x1800c9100
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x1800c9257
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 0x1800c924f
movdqa xmm0, xmmword [0x180130350]
xor ebx, ebx
movdqa xmm1, xmmword [0x180130360]
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, [0x1803a05d8]
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 0x1800c921e
cmp byte [rbp + rdi + 0x80], 1
jne 0x1800c921e
call fcn.1800ca5e0
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.1800cbd80
inc rbx
cmp rbx, 4
jl 0x1800c91e0
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 [0x1803a0f78]
test rbx, rbx
je 0x1800c92d9
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 + 0x378], eax
jne 0x1800c929d
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x37c], eax
je 0x1800c92d9
mov eax, r8d
mov dword [rsp + 0x60], ecx
cdq
mov dword [rbx + 0x378], ecx
mov rcx, qword [rbx + 0x348]
sub eax, edx
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x37c], 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.1800d9fd0
add rsp, 0xa0
pop rbx
ret
Function at 0x1800c7fe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [0x18039f280], 0
mov r10d, r9d
mov r11d, r8d
jne 0x1800c7ffb
xor edx, edx
mov ecx, 0x10001
jmp fcn.1800c83d0
mov r8d, dword [rsp + 0x28]
mov r9d, dword [rsp + 0x30]
test r8d, r8d
jle 0x1800c8050
test r9d, r9d
jle 0x1800c8050
mov eax, dword [rsp + 0x38]
cmp eax, 0xfffffffe
jg 0x1800c802c
mov r8d, eax
lea rdx, str.Invalid_refresh_rate__i
mov ecx, 0x10004
jmp fcn.1800c83d0
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.1800c95e0
lea rdx, str.Invalid_window_size__ix_i
mov ecx, 0x10004
jmp fcn.1800c83d0
Function at 0x1800c90c0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x18039f280], 0
jne 0x1800c7fd5
xor edx, edx
mov ecx, 0x10001
jmp fcn.1800c83d0
jmp 0x1800c90c0
push rbx
sub rsp, 0xa0
mov rax, qword [0x18019d440]
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 0x1800c915a
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x1800c9125
mov rbx, qword [0x18039f670]
test rbx, rbx
je 0x1800c913b
mov rcx, rbx
call fcn.1800c77d0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1800c9113
jmp 0x1800c913b
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 0x1800c9100
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x1800c9257
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 0x1800c924f
movdqa xmm0, xmmword [0x180130350]
xor ebx, ebx
movdqa xmm1, xmmword [0x180130360]
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, [0x1803a05d8]
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 0x1800c921e
cmp byte [rbp + rdi + 0x80], 1
jne 0x1800c921e
call fcn.1800ca5e0
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.1800cbd80
inc rbx
cmp rbx, 4
jl 0x1800c91e0
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 [0x1803a0f78]
test rbx, rbx
je 0x1800c92d9
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 + 0x378], eax
jne 0x1800c929d
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x37c], eax
je 0x1800c92d9
mov eax, r8d
mov dword [rsp + 0x60], ecx
cdq
mov dword [rbx + 0x378], ecx
mov rcx, qword [rbx + 0x348]
sub eax, edx
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x37c], 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.1800d9fd0
add rsp, 0xa0
pop rbx
ret
Function at 0x1800ca5e0
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, send
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov esi, 0x8000
or edi, 2
mov ecx, send
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, socket
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 0x1800cd380
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 0x1800cd3b0
lea rdx, [0x1801305a0]
mov ecx, 0x10008
call fcn.1800cd620
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x1800cdd20
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 [0x18019d440]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x100
call fcn.18010b740
xor edx, edx
lea rcx, [0x1803a0892]
mov r8d, 0x6d1
call fcn.18010b740
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1e0], rdi
sub r14, 0x480
lea r15, [0x1803a0618]
xor r13d, r13d
lea r12, [0x1803a0932]
mov ebx, 0x20
movsx esi, word [r15]
cmp esi, 0xffffffff
je 0x1800cdec5
cmp ebx, 0x140
jb 0x1800cde40
cmp ebx, 0x14e
ja 0x1800cde40
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], WSAGetLastError
mov dword [rsp + 0x68], WSAGetLastError
mov dword [rsp + 0x6c], reloc.WS2_32.dll_WSAGetLastError
mov dword [rsp + 0x70], WSAGetLastError
mov dword [rsp + 0x74], WSAGetLastError
mov dword [rsp + 0x78], WSAGetLastError
mov edi, dword [r14]
jmp 0x1800cde4f
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], reloc.WS2_32.dll_recv
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x1800cde92
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
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 0x1800cdec5
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 0x1800cdda2
mov rdi, qword [rsp + 0x1e0]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1800d9fd0
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 0x1800d34d0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x18019d440]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x1803a11a0], 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 0x1800d3525
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800d9fd0
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 [0x1803a11a0], rax
test rax, rax
jne 0x1800d3568
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x1800d3530
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.1800c83d0
jmp 0x1800d368d
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803a11a0]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x1803a11a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803a11a0]
lea rdx, str.OSMesaDestroyContext
mov qword [0x1803a11b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803a11a0]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x1803a11b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803a11a0]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x1803a11c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803a11a0]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x1803a11c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803a11a0]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x1803a11d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1803a11a8], 0
mov qword [0x1803a11d8], rax
je 0x1800d365f
cmp qword [0x1803a11b8], 0
je 0x1800d365f
cmp qword [0x1803a11c0], 0
je 0x1800d365f
cmp qword [0x1803a11c8], 0
je 0x1800d365f
cmp qword [0x1803a11d0], 0
je 0x1800d365f
test rax, rax
je 0x1800d365f
mov eax, 1
jmp 0x1800d368f
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1800c83d0
mov rcx, qword [0x1803a11a0]
test rcx, rcx
je 0x1800d368d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1803a11a0], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800d9fd0
add rsp, 0x48
ret
Function at 0x1800d48f0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800d492a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800d492f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800d4978
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1800d4978
dec r8
sub rdx, 1
jne 0x1800d495e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1800d5f80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x1800d91d0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r12, rdx
mov rdi, rcx
test rcx, rcx
je 0x1800d92d9
movsxd r8, dword [rcx + 0x3c]
add r8, rcx
je 0x1800d92d9
movzx eax, word [rcx]
add eax, dword [r8]
cmp eax, dword [0x18019d424]
jne 0x1800d92d9
mov esi, dword [r8 + 0x88]
add rsi, rcx
je 0x1800d92d9
mov ebp, dword [rsi + 0x20]
xor ebx, ebx
mov r14d, dword [rsi + 0x24]
add rbp, rcx
mov r15d, dword [rsi + 0x1c]
add r14, rcx
add r15, rcx
cmp dword [rsi + 0x14], ebx
jbe 0x1800d92d9
nop dword [rax + rax]
mov edx, dword [rbp + rbx*4]
lea rcx, [rsp + 0x20]
add rdx, rdi
call fcn.1800d5f90
mov r10, qword [rsp + 0x38]
lea rax, [rsp + 0x20]
mov r8, qword [rsp + 0x20]
cmp r10, 0xf
mov r9, r12
cmova rax, r8
sub r9, rax
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x1800d9293
inc rax
test ecx, ecx
jne 0x1800d9280
test edx, edx
je 0x1800d92fa
cmp r10, 0xf
jbe 0x1800d92ca
lea rdx, [r10 + 1]
mov rax, r8
cmp rdx, 0x1000
jb 0x1800d92c2
mov r8, qword [r8 - 8]
add rdx, 0x27
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800d933e
mov rcx, r8
call fcn.1800d95dc
mov eax, dword [rsi + 0x14]
inc rbx
cmp rbx, rax
jb 0x1800d9250
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
movzx eax, word [r14 + rbx*2]
mov ebx, dword [r15 + rax*4]
add rbx, rdi
cmp r10, 0xf
jbe 0x1800d9339
lea rdx, [r10 + 1]
mov rax, r8
cmp rdx, 0x1000
jb 0x1800d9331
mov r8, qword [r8 - 8]
add rdx, 0x27
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800d933e
mov rcx, r8
call fcn.1800d95dc
mov rax, rbx
jmp 0x1800d92db
call fcn.1800e5940
int3
Function at 0x1800d91d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x1800d91d0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r12, rdx
mov rdi, rcx
test rcx, rcx
je 0x1800d92d9
movsxd r8, dword [rcx + 0x3c]
add r8, rcx
je 0x1800d92d9
movzx eax, word [rcx]
add eax, dword [r8]
cmp eax, dword [0x18019d424]
jne 0x1800d92d9
mov esi, dword [r8 + 0x88]
add rsi, rcx
je 0x1800d92d9
mov ebp, dword [rsi + 0x20]
xor ebx, ebx
mov r14d, dword [rsi + 0x24]
add rbp, rcx
mov r15d, dword [rsi + 0x1c]
add r14, rcx
add r15, rcx
cmp dword [rsi + 0x14], ebx
jbe 0x1800d92d9
nop dword [rax + rax]
mov edx, dword [rbp + rbx*4]
lea rcx, [rsp + 0x20]
add rdx, rdi
call fcn.1800d5f90
mov r10, qword [rsp + 0x38]
lea rax, [rsp + 0x20]
mov r8, qword [rsp + 0x20]
cmp r10, 0xf
mov r9, r12
cmova rax, r8
sub r9, rax
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x1800d9293
inc rax
test ecx, ecx
jne 0x1800d9280
test edx, edx
je 0x1800d92fa
cmp r10, 0xf
jbe 0x1800d92ca
lea rdx, [r10 + 1]
mov rax, r8
cmp rdx, 0x1000
jb 0x1800d92c2
mov r8, qword [r8 - 8]
add rdx, 0x27
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800d933e
mov rcx, r8
call fcn.1800d95dc
mov eax, dword [rsi + 0x14]
inc rbx
cmp rbx, rax
jb 0x1800d9250
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
movzx eax, word [r14 + rbx*2]
mov ebx, dword [r15 + rax*4]
add rbx, rdi
cmp r10, 0xf
jbe 0x1800d9339
lea rdx, [r10 + 1]
mov rax, r8
cmp rdx, 0x1000
jb 0x1800d9331
mov r8, qword [r8 - 8]
add rdx, 0x27
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800d933e
mov rcx, r8
call fcn.1800d95dc
mov rax, rbx
jmp 0x1800d92db
call fcn.1800e5940
int3