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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rdi, rdx
mov rbp, r8
lea rdx, [0x14019a240]
call sym.fopen
mov rbx, rax
mov esi, 0
test rax, rax
je 0x140053b56
lea r8, [rsp + 0x2c]
mov rdx, rbp
mov rcx, rdi
call sym.qoi_encode
mov rdi, rax
test rax, rax
je 0x140053b61
mov esi, dword [rsp + 0x2c]
mov r9, rbx
movsxd r8, esi
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rcx, rbx
call sym.fflush
mov rcx, rbx
call sym.ferror
mov ebp, eax
mov rcx, rbx
call sym.fclose
mov rcx, rdi
call sym.free
test ebp, ebp
mov eax, 0
cmovne esi, eax
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbx
call sym.fclose
jmp 0x140053b56

Function at 0x140053b6b
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, rdx
mov r12d, r8d
lea rdx, [0x14019a000]
call sym.fopen
mov rbx, rax
test rax, rax
je 0x140053c0e
mov r8d, 2
mov edx, 0
mov rcx, rax
call sym.fseek
mov rcx, rbx
call sym.ftell
mov esi, eax
test eax, eax
jle 0x140053c20
mov r8d, 0
mov edx, 0
mov rcx, rbx
call sym.fseek
test eax, eax
jne 0x140053c20
movsxd r13, esi
mov rcx, r13
call sym.malloc
mov rdi, rax
test rax, rax
je 0x140053c2f
mov r9, rbx
mov r8, r13
mov edx, 1
mov rcx, rax
call sym.fread
mov r13, rax
mov rcx, rbx
call sym.fclose
mov ebx, 0
cmp esi, r13d
je 0x140053c3c
mov rcx, rdi
call sym.free
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rbx
call sym.fclose
mov ebx, 0
jmp 0x140053c0e
mov rcx, rbx
call sym.fclose
mov rbx, rdi
jmp 0x140053c0e
mov r9d, r12d
mov r8, rbp
mov edx, r13d
mov rcx, rdi
call sym.qoi_decode
mov rbx, rax
jmp 0x140053c06

Function at 0x140054eeb
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov rsi, rcx
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r9d
mov r9d, r8d
mov r8d, edx
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call sym.stbi_write_png_to_mem
mov rbx, rax
mov eax, 0
test rbx, rbx
je 0x140054f6b
lea rdx, [0x14019a240]
mov rcx, rsi
call sym.fopen
mov rsi, rax
test rax, rax
je 0x140054f72
mov r9, rax
movsxd r8, dword [rsp + 0x3c]
mov edx, 1
mov rcx, rbx
call sym.fwrite
mov rcx, rsi
call sym.fclose
mov rcx, rbx
call sym.free
mov eax, 1
add rsp, 0x48
pop rbx
pop rsi
ret
mov rcx, rbx
call sym.free
mov eax, 0
jmp 0x140054f6b
Function at 0x14006d2f4
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov rsi, rdx
mov dword [rdx], 0
test rcx, rcx
je 0x14006d46c
mov rax, qword [0x1401ef698]
test rax, rax
je 0x14006d336
call rax
mov rdi, rax
mov rax, rdi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [0x14019f34c]
call sym.fopen
mov rbp, rax
test rax, rax
je 0x14006d450
mov r8d, 2
mov edx, 0
mov rcx, rax
call sym.fseek
mov rcx, rbp
call sym.ftell
mov r12d, eax
mov r8d, 0
mov edx, 0
mov rcx, rbp
call sym.fseek
test r12d, r12d
jle 0x14006d42a
movsxd r13, r12d
mov rcx, r13
call sym.malloc
mov rdi, rax
test rax, rax
je 0x14006d414
mov r9, rbp
mov r8, r13
mov edx, 1
mov rcx, rax
call sym.fread
cmp rax, 0x7fffffff
ja 0x14006d3db
mov dword [rsi], eax
cmp eax, r12d
je 0x14006d3fe
mov qword [rsp + 0x20], rax
mov r9, rsi
mov r8, rbx
lea rdx, str.FILEIO:___s__File_partially_loaded___i_bytes_out_of__i_
mov ecx, 4
call sym.TraceLog
jmp 0x14006d443
mov r8, rbx
lea rdx, str.FILEIO:___s__File_is_bigger_than_2147483647_bytes__avoid_using_LoadFileData__
mov ecx, 4
call sym.TraceLog
mov rcx, rdi
call sym.free
mov edi, 0
jmp 0x14006d443
mov r8, rbx
lea rdx, str.FILEIO:___s__File_loaded_successfully
mov ecx, 3
call sym.TraceLog
jmp 0x14006d443
mov r8, rbx
lea rdx, str.FILEIO:___s__Failed_to_allocated_memory_for_file_reading
mov ecx, 4
call sym.TraceLog
jmp 0x14006d443
mov r8, rbx
lea rdx, str.FILEIO:___s__Failed_to_read_file
mov ecx, 4
call sym.TraceLog
mov edi, 0
mov rcx, rbp
call sym.fclose
jmp 0x14006d326
mov r8, rbx
lea rdx, str.FILEIO:___s__Failed_to_open_file
mov ecx, 4
call sym.TraceLog
mov rdi, rbp
jmp 0x14006d326
lea rdx, str.FILEIO:_File_name_provided_is_not_valid
mov ecx, 4
call sym.TraceLog
mov rdi, rbx
jmp 0x14006d326

Function at 0x14006d494
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
test rcx, rcx
je 0x14006d561
mov rax, qword [0x1401ef690]
test rax, rax
je 0x14006d4c5
call rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, [0x14019f4b8]
call sym.fopen
mov rbp, rax
test rax, rax
je 0x14006d543
mov r9, rax
movsxd r8, edi
mov edx, 1
mov rcx, rsi
call sym.fwrite
test eax, eax
je 0x14006d517
cmp edi, eax
je 0x14006d52d
mov r8, rbx
lea rdx, str.FILEIO:___s__File_partially_written
mov ecx, 4
call sym.TraceLog
mov rcx, rbp
call sym.fclose
test eax, eax
sete al
jmp 0x14006d4bc
mov r8, rbx
lea rdx, str.FILEIO:___s__Failed_to_write_file
mov ecx, 4
call sym.TraceLog
jmp 0x14006d508
mov r8, rbx
lea rdx, str.FILEIO:___s__File_saved_successfully
mov ecx, 3
call sym.TraceLog
jmp 0x14006d508
mov r8, rbx
lea rdx, str.FILEIO:___s__Failed_to_open_file
mov ecx, 4
call sym.TraceLog
mov eax, 0
jmp 0x14006d4bc
lea rdx, str.FILEIO:_File_name_provided_is_not_valid
mov ecx, 4
call sym.TraceLog
mov eax, 0
jmp 0x14006d4bc
Function at 0x14006d57c
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14006d6ad
mov rax, qword [0x1401ef688]
test rax, rax
je 0x14006d5b1
call rax
mov rsi, rax
mov rax, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdx, [0x14019f535]
call sym.fopen
mov rdi, rax
test rax, rax
je 0x14006d691
mov r8d, 2
mov edx, 0
mov rcx, rax
call sym.fseek
mov rcx, rdi
call sym.ftell
mov ebp, eax
mov r8d, 0
mov edx, 0
mov rcx, rdi
call sym.fseek
test ebp, ebp
je 0x14006d66b
lea ecx, [rbp + 1]
call sym.malloc
mov rsi, rax
test rax, rax
je 0x14006d655
mov r9, rdi
mov r8d, ebp
mov edx, 1
mov rcx, rax
call sym.fread
mov r12, rax
cmp eax, ebp
jb 0x14006d645
mov r12d, r12d
mov byte [rsi + r12], 0
mov r8, rbx
lea rdx, str.FILEIO:___s__Text_file_loaded_successfully
mov ecx, 3
call sym.TraceLog
jmp 0x14006d684
lea edx, [rax + 1]
mov rcx, rsi
call sym.realloc
mov rsi, rax
jmp 0x14006d627
mov r8, rbx
lea rdx, str.FILEIO:___s__Failed_to_allocated_memory_for_file_reading
mov ecx, 4
call sym.TraceLog
jmp 0x14006d684
mov r8, rbx
lea rdx, str.FILEIO:___s__Failed_to_read_text_file
mov ecx, 4
call sym.TraceLog
mov esi, 0
mov rcx, rdi
call sym.fclose
jmp 0x14006d5a3
mov r8, rbx
lea rdx, str.FILEIO:___s__Failed_to_open_text_file
mov ecx, 4
call sym.TraceLog
mov rsi, rdi
jmp 0x14006d5a3
lea rdx, str.FILEIO:_File_name_provided_is_not_valid
mov ecx, 4
call sym.TraceLog
mov rsi, rbx
jmp 0x14006d5a3

Function at 0x14006dfb6
Capabilities:
Hide graphical window

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x358]
mov edx, 0
call qword [sym.imp.USER32.dll_ShowWindow]
nop
add rsp, 0x28
ret

Function at 0x14006e224
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov ecx, 0x10
mov rbx, qword [sym.imp.USER32.dll_GetKeyState]
call rbx
movsx esi, ax
shr esi, 0x1f
mov ecx, 0x11
call rbx
mov ebx, esi
or ebx, 2
test ax, ax
cmovns ebx, esi
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
mov edx, eax
mov eax, ebx
or eax, 4
test dx, dx
cmovs ebx, eax
mov ecx, 0x5b
mov rdi, qword [sym.imp.USER32.dll_GetKeyState]
call rdi
mov esi, eax
mov ecx, 0x5c
call rdi
mov edx, eax
mov eax, ebx
or eax, 8
or si, dx
cmovs ebx, eax
mov ecx, 0x14
mov rdi, qword [sym.imp.USER32.dll_GetKeyState]
call rdi
mov esi, eax
mov ecx, 0x90
call rdi
and eax, 1
shl eax, 5
and esi, 1
shl esi, 4
or eax, esi
or eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x14006f8e9
Capabilities:
Log keystrokes via polling

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x90
mov rsi, qword [sym.imp.USER32.dll_PeekMessageW]
mov rbp, qword [sym.imp.USER32.dll_TranslateMessage]
mov rdi, qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x14006f92d
mov rbx, qword [0x1401efe38]
test rbx, rbx
je 0x14006f92d
mov rcx, rbx
call sym._glfwInputWindowCloseRequest
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14006f91d
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov edx, 0
call rsi
test eax, eax
je 0x14006f969
cmp dword [rsp + 0x68], 0x12
je 0x14006f911
lea rbx, [rsp + 0x60]
mov rcx, rbx
call rbp
mov rcx, rbx
call rdi
jmp 0x14006f92d
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x14006fa3b
lea rdx, str.GLFW
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rdi, rax
test rax, rax
je 0x14006fa3b
mov dword [rsp + 0x40], 0xa0
mov dword [rsp + 0x44], 0x154
mov dword [rsp + 0x48], 0xa1
mov dword [rsp + 0x4c], 0x158
mov dword [rsp + 0x50], 0x5b
mov dword [rsp + 0x54], 0x157
mov dword [rsp + 0x58], 0x5c
mov dword [rsp + 0x5c], 0x15b
lea rbx, [rsp + 0x40]
lea r13, [rsp + 0x60]
lea r12, [0x1401ef6c0]
mov rbp, qword [sym.imp.USER32.dll_GetKeyState]
jmp 0x14006f9f7
add rbx, 8
cmp rbx, r13
je 0x14006fa3b
mov esi, dword [rbx + 4]
movsxd rax, esi
movzx r14d, word [r12 + rax*2 + 0x1fa8]
mov ecx, dword [rbx]
call rbp
test ax, ax
js 0x14006f9ee
movsxd rax, esi
cmp byte [rdi + rax + 0x90], 1
jne 0x14006f9ee
call sym.getKeyMods
mov dword [rsp + 0x20], eax
mov r9d, 0
movsx r8d, r14w
mov edx, esi
mov rcx, rdi
call sym._glfwInputKey
jmp 0x14006f9ee
mov rbx, qword [0x1401f2008]
test rbx, rbx
je 0x14006faa9
lea rdx, [rsp + 0x3c]
lea r8, [rsp + 0x40]
mov rcx, rbx
call sym._glfwGetWindowSizeWin32
mov edx, dword [rsp + 0x3c]
mov eax, edx
shr eax, 0x1f
add eax, edx
sar eax, 1
cmp dword [rbx + 0x394], eax
jne 0x14006fa83
mov ecx, dword [rsp + 0x40]
mov edx, ecx
shr edx, 0x1f
add edx, ecx
sar edx, 1
cmp dword [rbx + 0x398], edx
je 0x14006faa9
mov ecx, dword [rsp + 0x40]
mov edx, ecx
shr edx, 0x1f
add edx, ecx
sar edx, 1
pxor xmm2, xmm2
cvtsi2sd xmm2, edx
pxor xmm1, xmm1
cvtsi2sd xmm1, eax
mov rcx, rbx
call sym._glfwSetCursorPosWin32
nop
add rsp, 0x90
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x1400709e5
Capabilities:
Log keystrokes

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x180
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x118], 0
mov qword [rsp + 0x120], 0
mov qword [rsp + 0x128], 0
mov qword [rsp + 0x130], 0
mov qword [rsp + 0x138], 0
mov qword [rsp + 0x140], 0
mov qword [rsp + 0x148], 0
mov qword [rsp + 0x150], 0
mov qword [rsp + 0x158], 0
mov qword [rsp + 0x160], 0
mov qword [rsp + 0x168], 0
mov qword [rsp + 0x170], 0
mov qword [rsp + 0x178], 0
mov qword [0x1401f1922], 0
mov qword [0x1401f1feb], 0
lea rdi, [0x1401f192a]
and rdi, 0xfffffffffffffff8
lea rcx, [0x1401f1922]
sub rcx, rdi
add ecx, 0x6d1
shr ecx, 3
mov ecx, ecx
mov eax, 0
rep stosq qword [rdi], rax
lea rbp, [0x1401f19c2]
mov esi, 0
mov r12, qword [sym.imp.USER32.dll_ToUnicode]
mov r13, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r14, r12
jmp 0x140070c92
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 [rsp + rsi*4 - 0x440]
jmp 0x140070cc2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
mov edx, ebx
mov ecx, edi
call r14
jmp 0x140070cf2
add rsi, 1
add rbp, 5
cmp rsi, 0x13d
je 0x140070d32
lea rax, [0x1401f16a8]
movzx ebx, word [rax + rsi*2]
cmp bx, 0xffff
je 0x140070c7d
lea eax, [rsi - 0x120]
cmp eax, 0xe
jbe 0x140070bd6
movsx ecx, bx
mov edx, 1
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
movsx ebx, bx
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
mov edx, ebx
mov ecx, edi
call r12
cmp eax, 0xffffffff
je 0x140070c57
test eax, eax
jle 0x140070c7d
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rbp
mov r9d, 1
lea r8, [rsp + 0x40]
mov edx, 0
mov ecx, 0xfde9
call r13
jmp 0x140070c7d
add rsp, 0x180
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x140071977
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [rcx], 1
jne 0x14007198e
mov ecx, dword [rcx + 4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x28
ret
mov r8d, 0x3f
lea rdx, str.external_glfw_src_win32_thread.c
lea rcx, str.tls__win32.allocated__GLFW_TRUE
call qword [sym.imp.msvcrt.dll__wassert]
nop
Function at 0x140071aee
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [rcx], 1
jne 0x140071b06
mov ecx, dword [rcx + 4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
add rsp, 0x28
ret
mov r8d, 0x45
lea rdx, str.external_glfw_src_win32_thread.c
lea rcx, str.tls__win32.allocated__GLFW_TRUE
call qword [sym.imp.msvcrt.dll__wassert]
nop
Function at 0x140079673
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
mov word [rsp + 0x20], 1
mov word [rsp + 0x22], 2
mov dword [rsp + 0x24], 1
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x20]
mov r8d, 0x10
mov edx, 1
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
je 0x1400796b5
add rsp, 0x38
ret
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call sym._glfwInputErrorWin32
jmp 0x1400796b0

Function at 0x1400797bb
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
mov word [rsp + 0x20], 1
mov word [rsp + 0x22], 2
mov dword [rsp + 0x24], 0
mov rax, qword [rcx + 0x358]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
mov r8d, 0x10
mov edx, 1
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
je 0x140079800
add rsp, 0x38
ret
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call sym._glfwInputErrorWin32
jmp 0x1400797fb

Function at 0x140079db2
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, rcx
mov edx, 0
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test eax, eax
jne 0x140079df4
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
movsxd rdx, eax
add rdx, rdx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x140079e76
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140079e8c
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, rsi
mov edx, 0
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [0x1401f1240]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140079eab
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, rdi
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x140079dec
lea rdx, str.Win32:_Failed_to_allocate_global_handle_for_clipboard
mov ecx, 0x10008
call sym._glfwInputErrorWin32
jmp 0x140079dec
lea rdx, str.Win32:_Failed_to_lock_global_handle
mov ecx, 0x10008
call sym._glfwInputErrorWin32
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140079dec
lea rdx, str.Win32:_Failed_to_open_clipboard
mov ecx, 0x10008
call sym._glfwInputErrorWin32
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140079dec
Function at 0x140079eca
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rcx, qword [0x1401f1240]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140079f40
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
test rax, rax
je 0x140079f58
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
test rax, rax
je 0x140079f71
mov rcx, qword [0x1401f1260]
call sym._glfw_free
mov rcx, rsi
call sym._glfwCreateUTF8FromWideStringWin32
mov qword [0x1401f1260], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [0x1401f1260]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
lea rdx, str.Win32:_Failed_to_open_clipboard
mov ecx, 0x10008
call sym._glfwInputErrorWin32
mov ebx, 0
jmp 0x140079f36
lea rdx, str.Win32:_Failed_to_convert_clipboard_to_string
mov ecx, 0x10009
call sym._glfwInputErrorWin32
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x140079f36
lea rdx, str.Win32:_Failed_to_lock_global_handle
mov ecx, 0x10008
call sym._glfwInputErrorWin32
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, rsi
jmp 0x140079f36

Function at 0x14007c44e
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov esi, dword [rcx]
test esi, esi
jne 0x14007c47f
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 4], eax
cmp eax, 0xffffffff
je 0x14007c499
mov dword [rbx], 1
mov esi, 1
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
ret
mov r8d, 0x29
lea rdx, str.external_glfw_src_win32_thread.c
lea rcx, str.tls__win32.allocated__GLFW_FALSE
call qword [sym.imp.msvcrt.dll__wassert]
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call sym._glfwInputError
jmp 0x14007c476
Function at 0x14007e857
Capabilities:
Link many functions at runtime

Disassembly:
push rsi
push rbx
sub rsp, 0x48
lea rax, str.libOSMesa.dll
mov qword [rsp + 0x20], rax
lea rax, str.OSMesa.dll
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
mov eax, 1
cmp qword [0x1401f11a0], 0
je 0x14007e894
add rsp, 0x48
pop rbx
pop rsi
ret
lea rbx, [rsp + 0x20]
lea rcx, str.libOSMesa.dll
mov rsi, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rsi
mov qword [0x1401f11a0], rax
test rax, rax
jne 0x14007e8d9
add rbx, 8
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14007e8a7
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call sym._glfwInputError
mov eax, 0
jmp 0x14007e88d
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rbx
mov qword [0x1401f11a8], rax
lea rdx, str.OSMesaCreateContextAttribs
mov rcx, qword [0x1401f11a0]
call rbx
mov qword [0x1401f11b0], rax
lea rdx, str.OSMesaDestroyContext
mov rcx, qword [0x1401f11a0]
call rbx
mov qword [0x1401f11b8], rax
lea rdx, str.OSMesaMakeCurrent
mov rcx, qword [0x1401f11a0]
call rbx
mov qword [0x1401f11c0], rax
lea rdx, str.OSMesaGetColorBuffer
mov rcx, qword [0x1401f11a0]
call rbx
mov qword [0x1401f11c8], rax
lea rdx, str.OSMesaGetDepthBuffer
mov rcx, qword [0x1401f11a0]
call rbx
mov qword [0x1401f11d0], rax
lea rdx, str.OSMesaGetProcAddress
mov rcx, qword [0x1401f11a0]
call rbx
mov rdx, rax
mov qword [0x1401f11d8], rax
cmp qword [0x1401f11a8], 0
je 0x14007e9c0
cmp qword [0x1401f11b8], 0
je 0x14007e9c0
cmp qword [0x1401f11c0], 0
je 0x14007e9c0
cmp qword [0x1401f11c8], 0
je 0x14007e9c0
cmp qword [0x1401f11d0], 0
je 0x14007e9c0
mov eax, 1
test rdx, rdx
jne 0x14007e88d
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call sym._glfwInputError
call sym._glfwTerminateOSMesa
mov eax, 0
jmp 0x14007e88d
Function at 0x14007f9b4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1401f2678]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1401f2674]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x14007fa02
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14007f9fa
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14007fae9
inc ebx
add rax, 0x28
jmp 0x14007f9da
mov rcx, r12
call sym.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
jne 0x14007fa21
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
movsxd rbx, ebx
mov rax, qword [0x1401f2678]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call sym._GetPEImageBase
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401f2678]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x14007fa83
mov rax, qword [0x1401f2678]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14007fae3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14007fae3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1401f2678]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14007fae3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
inc dword [0x1401f2674]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14007ff10
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1401f26e0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401f26c0]
test rbx, rbx
je 0x14007ff5c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x14007ff56
test eax, eax
jne 0x14007ff56
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x14007ff2e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140080110
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140080133
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140080133
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret