joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003b90
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x68], 0
cmp qword [rax + 8], 0
sete al
and al, 1
cmp al, 0
je 0x140003be8
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x68], 0
mov qword [rax], 0
xor eax, eax
add rsp, 0x78
ret
mov ecx, 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
mov rax, qword [rsp + 0x30]
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x50], 0
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp rax, qword [rsp + 0x48]
setl al
and al, 1
cmp al, 0
je 0x140003cf6
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, qword [rsp + 0x50]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x40]
mov edx, ecx
mov ecx, 0x40000000
cmp edx, 0x40000000
cmovl ecx, edx
mov dword [rsp + 0x3c], ecx
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rax]
add rdx, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x3c]
lea r9, [rsp + 0x5c]
xor eax, eax
mov qword [rsp + 0x20], 0
call sub.KERNEL32.dll_WriteFile
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x5c], 0
setbe al
and al, 1
cmp al, 0
jne 0x140003cac
cmp dword [rsp + 0x38], 0
jne 0x140003ce3
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rsp + 0x28]
mov eax, eax
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], rax
mov qword [rcx], rdx
add rsp, 0x78
ret
mov eax, dword [rsp + 0x5c]
add rax, qword [rsp + 0x50]
mov qword [rsp + 0x50], rax
jmp 0x140003c28
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], rax
mov qword [rcx], rdx
add rsp, 0x78
ret

Function at 0x14000b0c0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x88
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x40]
Function at 0x14000c670
Capabilities:
Get file size

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x38]
call sub.KERNEL32.dll_GetFileSizeEx
cmp eax, 0
jne 0x14000c6b5
call sub.KERNEL32.dll_GetLastError
mov eax, eax
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov qword [rcx], rdx
add rsp, 0x48
ret

Function at 0x14000cce0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0xd8
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0xd0], rdx
mov qword [rsp + 0xc8], rax
mov rax, qword [rcx]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xc0], 0x40000000
setg al
and al, 1
cmp al, 0
je 0x14000cdae
mov rcx, qword [rsp + 0xc0]
mov rax, rsp
mov qword [rax + 0x20], rcx
lea rcx, str.C:_Users_Cristhofer_Projects_Odin_core_os_file_windows.odin
mov edx, 0xe5
mov r8d, 0xc
mov r9d, 0x40000000
call fcn.140002680
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], 0x40000000
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x98], 0
mov dword [rsp + 0x94], 0
mov dword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x80], 0
mov rdx, rcx
shr rdx, 0x20
mov dword [rsp + 0x94], edx
mov dword [rsp + 0x90], ecx
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
mov r8d, dword [rsp + 0x90]
mov r9d, dword [rsp + 0x94]
mov r10, qword [rsp + 0x98]
mov qword [rsp + 0x78], r10
mov dword [rsp + 0x74], r9d
mov dword [rsp + 0x70], r8d
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0xb8]
mov rax, qword [rsp + 0xc0]
mov r8d, eax
lea r9, [rsp + 0x54]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call sub.KERNEL32.dll_ReadFile
cmp eax, 0
jne 0x14000ceb6
call sub.KERNEL32.dll_GetLastError
mov eax, eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x54], 0
mov rcx, qword [rsp + 0x28]
mov eax, dword [rsp + 0x54]
mov edx, eax
mov rax, qword [rsp + 0x48]
mov qword [rcx], rdx
add rsp, 0xd8
ret
Function at 0x14000d5f0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0xd8
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0xd0], rdx
mov qword [rsp + 0xc8], rax
mov rax, qword [rcx]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xc0], 0x40000000
setg al
and al, 1
cmp al, 0
je 0x14000d6be
mov rcx, qword [rsp + 0xc0]
mov rax, rsp
mov qword [rax + 0x20], rcx
lea rcx, str.C:_Users_Cristhofer_Projects_Odin_core_os_file_windows.odin
mov edx, 0xfd
mov r8d, 0xc
mov r9d, 0x40000000
call fcn.140002680
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], 0x40000000
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x98], 0
mov dword [rsp + 0x94], 0
mov dword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x80], 0
mov rdx, rcx
shr rdx, 0x20
mov dword [rsp + 0x94], edx
mov dword [rsp + 0x90], ecx
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
mov r8d, dword [rsp + 0x90]
mov r9d, dword [rsp + 0x94]
mov r10, qword [rsp + 0x98]
mov qword [rsp + 0x78], r10
mov dword [rsp + 0x74], r9d
mov dword [rsp + 0x70], r8d
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0xb8]
mov rax, qword [rsp + 0xc0]
mov r8d, eax
lea r9, [rsp + 0x54]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call sub.KERNEL32.dll_WriteFile
cmp eax, 0
jne 0x14000d7c6
call sub.KERNEL32.dll_GetLastError
mov eax, eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x54], 0
mov rcx, qword [rsp + 0x28]
mov eax, dword [rsp + 0x54]
mov edx, eax
mov rax, qword [rsp + 0x48]
mov qword [rcx], rdx
add rsp, 0xd8
ret
Function at 0x1400336d0
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x50
mov qword [rsp], rdx
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
mov rcx, qword [rsp]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 8
movabs rdx, 0xcbf29ce484222325
add rcx, rdx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x18], 0
cmp qword [rsp + 0x20], 8
jge 0x140033783
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
movzx ecx, byte [rcx]
xor rax, rcx
movabs rcx, 0x100000001b3
imul rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
add rax, 1
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
add rax, 1
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x18]
add rax, 1
mov qword [rsp + 0x18], rax
jmp 0x140033722
movabs rax, 0x7fffffffffffffff
and rax, qword [rsp + 0x30]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x30], 0
sete cl
and cl, 1
movzx ecx, cl
or rax, rcx
add rsp, 0x50
ret

Function at 0x140036b20
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 0x140036b50
lea rdx, [0x140086808]
mov ecx, 0x10008
call fcn.140034430
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140039140
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 [0x140098dc0]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, pe_nt_image_headers64
call fcn.14005ff80
xor edx, edx
lea rcx, [0x14009baf2]
mov r8d, 0x6d1
call fcn.14005ff80
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1d0], rdi
sub r14, 0x480
lea rbp, [0x14009b878]
xor r12d, r12d
lea r15, [0x14009bb92]
mov ebx, 0x20
movsx esi, word [rbp]
cmp esi, 0xffffffff
je 0x1400392f8
cmp ebx, 0x140
jb 0x14003925f
cmp ebx, 0x14e
ja 0x14003925f
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 0x14003926e
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 0x1400392c1
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 0x1400392f8
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 0x1400391c1
mov rdi, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140044bd0
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 0x14003e0b0
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x14009c1d8], rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14003e109
mov rcx, qword [rbx + 0x360]
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 [0x14009c1c8], xmm0
movsd qword [0x14009c1d0], xmm1
mov eax, dword [rbx + 0x8c]
cmp eax, 0x34001
je 0x14003e126
cmp eax, 0x34004
je 0x14003e126
mov rcx, qword [0x14009c1f8]
jmp 0x14003e145
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x14003e135
mov rcx, qword [rcx + 8]
jmp 0x14003e145
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.140035dd0
mov rcx, rbx
call fcn.14003d6d0
cmp dword [rbx + 0x208], 0
je 0x14003e1a2
mov rax, qword [rbx + 0x360]
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 0x14003e1a2
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.140038d90
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14003e1b0
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 0x14003e1f2
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.140038d90
add rsp, 0x38
ret
Function at 0x14003e200
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x208], 0
mov rbx, rcx
je 0x14003e250
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 0x14003e250
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.140038d90
xor ecx, ecx
mov qword [0x14009c1d8], 0
call qword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si ecx, qword [0x14009c1c8]
mov qword [0x14009c1e0], 0
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x14009c1d0]
mov dword [rsp + 0x40], ecx
mov dword [rbx + 0x3a0], ecx
mov rcx, qword [rbx + 0x360]
mov dword [rsp + 0x44], eax
mov dword [rbx + 0x3a4], 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]
mov eax, dword [rbx + 0x8c]
cmp eax, 0x34001
je 0x14003e2d9
cmp eax, 0x34004
je 0x14003e2d9
mov rcx, qword [0x14009c1f8]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x14003e2f2
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]

Function at 0x14003e310
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx + 0x360]
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 0x14003e352
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.140038d90
add rsp, 0x38
ret

Function at 0x14003e400
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 0x140043510
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
cmp qword [0x14009b370], 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 0x140043549
mov eax, 1
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
mov rcx, rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x14009b370], rax
mov rcx, rax
test rax, rax
jne 0x140043574
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x140043550
mov rbx, qword [rsp + 0x40]
test rcx, rcx
jne 0x140043596
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.140034430
xor eax, eax
add rsp, 0x48
ret
lea rdx, str.OSMesaCreateContextExt
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14009b370]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x14009b378], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14009b370]
lea rdx, str.OSMesaDestroyContext
mov qword [0x14009b380], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14009b370]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x14009b388], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14009b370]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x14009b390], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14009b370]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x14009b398], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14009b370]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x14009b3a0], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x14009b378], 0
mov qword [0x14009b3a8], rax
je 0x140043680
cmp qword [0x14009b388], 0
je 0x140043680
cmp qword [0x14009b390], 0
je 0x140043680
cmp qword [0x14009b398], 0
je 0x140043680
cmp qword [0x14009b3a0], 0
je 0x140043680
test rax, rax
jne 0x14004353f
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140034430
mov rcx, qword [0x14009b370]
test rcx, rcx
je 0x1400436ad
call fcn.14003a0d0
mov qword [0x14009b370], 0
xor eax, eax
add rsp, 0x48
ret

Function at 0x140045088
Capabilities:
Parse pe header

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

Function at 0x140053774
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140053564
Function at 0x14005845c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14005848c
xor eax, eax
jmp 0x14005854f
mov rbp, rbx
cmp word [rax], si
je 0x1400584b1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140058498
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140058494
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400583ac
movsxd r14, eax
test eax, eax
jne 0x1400584ef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140058485
mov rcx, r14
call fcn.1400546fc
mov rdi, rax
test rax, rax
jne 0x140058508
xor ecx, ecx
call fcn.1400546c0
jmp 0x1400584e4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400583ac
test eax, eax
jne 0x140058539
mov rcx, rdi
call fcn.1400546c0
jmp 0x140058543
xor ecx, ecx
call fcn.1400546c0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14005cd7c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14004f0fc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14005ce06
cmp byte [rbp - 0x21], r15b
je 0x14005ce01
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14005ce3c
call fcn.14005985c
test eax, eax
jne 0x14005ce28
cmp byte [rbp - 0x21], r15b
je 0x14005ce20
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14005ce3c
cmp byte [rbp - 0x21], r15b
je 0x14005ce39
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140056b28
test eax, eax
jne 0x14005cedc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14004f0fc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14005ce7b
cmp byte [rbp - 0x21], r15b
je 0x14005ceb0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14005ceb0
call fcn.14005985c
test eax, eax
jne 0x14005ce9c
cmp byte [rbp - 0x21], r15b
je 0x14005ce95
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14005ceb0
cmp byte [rbp - 0x21], r15b
je 0x14005cead
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140056b28
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14005cedc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14005cedf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14005ceed
mov rcx, rdi
call fcn.1400546c0
cmp byte [rbp + 0x3f], r15b
je 0x14005cefc
mov rcx, qword [rbp + 0x27]
call fcn.1400546c0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14005fc20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14005fc48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14005fc48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002f20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x1406b82c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
xor eax, eax
mov word [rsp + 0x35], ax
mov byte [rsp + 0x37], al
mov rbp, qword [rcx + 8]
mov r14, qword [rcx]
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x30], eax
mov byte [rsp + 0x34], al
call fcn.140002900
test rax, rax
je 0x140002f92
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov rdx, rbp
mov rcx, r14
call rax
test eax, eax
setne byte [rsp + 0x34]
movzx eax, byte [rsi]
mov byte [rdi + 0x10], al
mov ecx, 1
lea rdx, [rbx - 1]
cmp rbx, rcx
jbe 0x140003060
cmp rdx, 0x40
jb 0x140003040
lea r8, [rdi + 0x20]
movsx eax, byte [r8]
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
lea r9, [rdx + rsi]
lea rax, [rsi + 1]
cmp rax, r8
ja 0x140002fdf
cmp r9, r8
jae 0x140003040
and edx, 0x3f
mov r8, rbx
sub r8, rdx
lea rax, [rsi + 0x21]
nop dword [rax]
movdqu xmm0, xmmword [rax - 0x20]
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
movdqu xmm0, xmmword [rax - 0x10]
xorps xmm0, xmm2
movdqu xmmword [rax - 0x10], xmm0
movdqu xmm0, xmmword [rax]
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rax], xmm1
movdqu xmm0, xmmword [rax + 0x10]
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rax + 0x10], xmm1
add rcx, 0x40
lea rax, [rax + 0x40]
cmp rcx, r8
jb 0x140002ff0
cmp rcx, rbx
jae 0x140003060
lea rax, [rsi + rcx]
sub rbx, rcx
nop word [rax + rax]
movzx ecx, byte [rdi + 0x20]
xor byte [rax], cl
lea rax, [rax + 1]
sub rbx, 1
jne 0x140003050
mov rax, qword [rdi]
mov byte [rax], 0xcc
cmp byte [rsp + 0x34], 0
je 0x14000308e
call fcn.140002900
test rax, rax
je 0x14000308e
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call rax
nop
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14028f2f0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret