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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x6010], 0
lea rbx, [rcx + 0x6018]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1400199a7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001995a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001c190
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140003f00
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x6010]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x6020]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14004f818]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1400199af
mov rcx, rbx
call fcn.140003f00
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140019cd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x14004f820]
xor ebp, ebp
cmp byte [rbx + 0x5f68], bpl
jne 0x140019daf
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140019da8
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.1400037c0
mov rsi, rax
test rax, rax
je 0x140019da8
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140019d34
mov rcx, rax
call fcn.140019f00
mov r8, qword [0x14004f820]
test r8, r8
je 0x140019d9f
movsx rdx, word [r8 + 0x60f0]
lea rcx, [r8 + 0x60f4]
mov r9d, dword [r8 + 0x3f58]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140019d94
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60f0], cx
movsx rax, cx
lea rcx, [r8 + 0x60f4]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x60ec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5f68], 1
movss xmm0, dword [rbx + 0x5f6c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x140019e3e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5f6c], xmm0
jb 0x140019e3e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140019e31
mov rax, qword [0x14004f820]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5f6c], ebp
call fcn.14001a160
lea rdx, [0x140042734]
mov rcx, rdi
mov rsi, rax
call fcn.140003610
mov rdi, rax
test rax, rax
je 0x140019e38
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140019e38
mov byte [rbx + 0xce], 1
mov dword [rbx + 0x5f6c], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140019e60
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x14004f820]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140019ec3
mov qword [rsp], rbx
lea rbx, [0x140042c20]
nop dword [rax]
cmp r9b, 0x23
jne 0x140019ea3
cmp byte [r8], r9b
jne 0x140019ea3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140019e90
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f80]
not eax
mov r8, qword [r10 + 0x5f88]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x140019eef
cmp dword [r8 + 8], eax
je 0x140019ef6
add r8, 0x48
cmp r8, rcx
jne 0x140019ee0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x14002ed90
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x14004f040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x14004f820]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14002efae
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14002efae
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x14004f820]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x14002ee64
movsx rdx, word [r8 + 0x60f0]
lea rax, [r8 + 0x60f4]
mov r9d, dword [r8 + 0x3f58]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x14002ee59
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60f0], cx
movsx rax, cx
lea rax, [rax*8 + 0x60f4]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x60e8]
test rdi, rdi
je 0x14002ee81
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x14002ee84
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x140047828]
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x14002eec7
mov rsi, qword [r8 + 0x90]
jmp 0x14002eeca
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14002eef5
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x14004f820]
mov rcx, qword [rax + 0x4b10]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14002ef6e
inc rbx
cmp rbx, 5
jl 0x14002ef50
jmp 0x14002ef9a
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x14002efb0
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14003f030
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x14003fa48
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003fa92
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003fa92
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003fa92
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003fa92
cmp dword [rcx + 0x84], 0xe
jbe 0x14003fa92
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003fa94
xor al, al
add rsp, 0x28
ret
Function at 0x140001d00
Capabilities:
Encrypt data using rc4 via systemfunction032
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
movups xmm0, xmmword [str.Hello_from_5pider]
movzx edi, word [0x140003550]
lea rcx, str.ntdll
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x140001e3c
lea rdx, str.RtlDeleteTimerQueue
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlCreateTimer
mov rcx, rbx
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlCreateTimerQueue
mov rcx, rbx
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateEvent
mov rcx, rbx
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtWaitForSingleObject
mov rcx, rbx
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtSignalAndWaitForSingleObject
mov rcx, rbx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtContinue
mov rcx, rbx
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.Advapi32
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.SystemFunction032
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov edx, 8
mov r8d, 0x12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
movups xmm0, xmmword [rsp + 0x20]
mov r8, rax
lea rcx, str.___Start_data:__s___p__n
mov rdx, rax
movups xmmword [rax], xmm0
mov word [rax + 0x10], di
call fcn.140001010
nop word [rax + rax]
lea rcx, [rsp + 0x30]
call fcn.1400013e0
jmp 0x140001e30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____GetModuleHandleA_Failed_with_Error:__ld_n
call fcn.140001010
lea rcx, str.____Failed_to_initialize_win32_api
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
mov rbx, qword [rsp + 0x80]
mov eax, 0xffffffff
add rsp, 0x70
pop rdi
ret

Function at 0x140002740
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000278a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000278a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000278a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000278a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000278a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000278c
xor al, al
add rsp, 0x28
ret
Function at 0x1400052a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14001a040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005373
cmp byte [rcx + 0x71], 0
je 0x140005373
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000536f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140005334
sub eax, 1
je 0x140005338
cmp eax, 2
jne 0x14000536f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400121f0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005366
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000536f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000531c
xor al, al
jmp 0x14000531c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400121f0
add rsp, 0x60
pop rbx
ret
Function at 0x140008ce0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r10, rdx
mov r11, rcx
xor esi, esi
call fcn.1400054f0
movsx ebx, al
call fcn.1400054e0
movsx ecx, al
imul ebx, ecx
call fcn.140005520
movsx edi, al
xor edx, edx
movsx eax, byte [0x14001a004]
xorps xmm2, xmm2
movsx ecx, byte [0x14001a003]
lea r9d, [rdi + rbx*8]
add r9d, ebx
add eax, r9d
div ecx
movsx ecx, byte [section..data]
xor edx, edx
sub eax, ecx
cvtsi2sd xmm2, rax
movsx eax, byte [0x14001a002]
movd xmm1, eax
movsx eax, byte [0x14001a001]
cvtdq2pd xmm1, xmm1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm0
subsd xmm1, xmm0
mulsd xmm1, xmm2
movsd qword [rsp + 0x40], xmm1
movsx eax, byte [0x14001a004]
movsx ecx, byte [0x14001a003]
add eax, r9d
div ecx
movsx ecx, byte [section..data]
cmp eax, ecx
je 0x140008dc3
call fcn.140005500
movsx edx, al
movsx eax, byte [0x14001a340]
imul edx, eax
shl edx, 2
call fcn.140005530
movsx ecx, al
sub edx, ecx
call fcn.140005510
movsx ecx, al
add edx, ecx
movsx ecx, byte [0x14001a001]
add ecx, edx
jne 0x140008e23
movsx eax, byte [0x14001a004]
xor edx, edx
movsx ecx, byte [0x14001a003]
add eax, edi
add eax, ebx
div ecx
movsx ecx, byte [section..data]
cmp eax, ecx
je 0x140008e1b
movsx eax, byte [0x14001a004]
lea ecx, [rbx + rdi]
lea ecx, [rcx + rbx*4]
xor edx, edx
add eax, ecx
xorps xmm0, xmm0
movsx ecx, byte [0x14001a003]
div ecx
movsx ecx, byte [section..data]
sub eax, ecx
cvtsi2sd xmm0, rax
mulsd xmm0, qword [rsp + 0x40]
cvttsd2si eax, xmm0
jmp 0x140008e1f
mov eax, dword [rsp + 0x40]
cmp esi, eax
jge 0x140008e48
cmp qword [r10 + 0x18], 0xf
jbe 0x140008e2d
mov r10, qword [r10]
cmp qword [r11 + 0x18], 0xf
jbe 0x140008e37
mov r11, qword [r11]
mov rdx, r10
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140008e60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14001a040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x140008e8d
xor eax, eax
jmp 0x140008ff6
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x140008ecd
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x140008ecd
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x140008fee
cmp qword [rdi + 0x80], 0
je 0x140008fe9
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x140008f07
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140008f32
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x140008fee
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140008fa1
sub eax, 1
je 0x140008fa1
cmp eax, 2
jne 0x140008fe9
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x140008fee
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x140008fcf
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140008fe9
lea rax, [rsp + 0x50]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x140008fee
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400121f0
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400097c0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rsi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
jg 0x1400097e2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400097f8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x28], rbx
mov rbx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x140009842
cmp rax, rsi
mov rdi, rsi
mov rcx, r14
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, rbp
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, r14
add rbp, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [r14 + 0x80], 0
mov rdi, rbx
je 0x1400098b1
mov rcx, r14
call fcn.1400053b0
cmp rbx, 0xfff
jbe 0x140009891
mov r9, qword [r14 + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add rbp, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x1400098ca
cmp rbx, rax
ja 0x140009860
test rdi, rdi
je 0x1400098b1
mov r9, qword [r14 + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x28]
mov rax, rsi
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rsi, rbx
jmp 0x1400098b4
Function at 0x1400098d0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x1400098f8
add rsp, 0x20
pop r14
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x14000996c
test rax, rax
jle 0x14000994c
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x14000996c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000996c
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
Function at 0x1400128a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400128ea
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400128ea
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400128ea
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400128ea
cmp dword [rcx + 0x84], 0xe
jbe 0x1400128ea
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400128ec
xor al, al
add rsp, 0x28
ret
Function at 0x22dad2a10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
sub rsp, 0x20
cmp dword [0x22ddd96ec], 1
mov r12, rcx
je 0x22dad2a3c
mov r8d, 0x40
lea rdx, [0x22dd11068]
lea rcx, [0x22dd11190]
call qword [sym.imp.msvcrt.dll__wassert]
mov ecx, dword [0x22ddd96f0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x22ddd80c0]
test ecx, ecx
je 0x22dad2ab0
test r12, r12
je 0x22dad2a98
mov edx, dword [r12 + 0x208]
test edx, edx
je 0x22dad2ac8
test rax, rax
je 0x22dad2a80
mov edx, dword [rax + 0x20c]
cmp dword [r12 + 0x20c], edx
je 0x22dad2a80
xor ecx, ecx
call qword [rax + 0x250]
mov rax, qword [r12 + 0x250]
mov rcx, r12
add rsp, 0x20
pop r12
jmp rax
test rax, rax
je 0x22dad2ae0
mov rax, qword [rax + 0x250]
xor ecx, ecx
add rsp, 0x20
pop r12
jmp rax
xor edx, edx
mov ecx, 0x10001
add rsp, 0x20
pop r12
jmp fcn.22dad20f0
lea rdx, str.Cannot_make_current_with_a_window_that_has_no_OpenGL_or_OpenGL_ES_context
mov ecx, 0x1000a
add rsp, 0x20
pop r12
jmp fcn.22dad20f0
add rsp, 0x20
pop r12
ret

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

Disassembly:
push r12
sub rsp, 0x20
mov eax, dword [0x22ddd80c0]
mov r12d, ecx
test eax, eax
je 0x22dad2c60
cmp dword [0x22ddd96ec], 1
jne 0x22dad2c40
mov ecx, dword [0x22ddd96f0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x22dad2c78
mov rax, qword [rax + 0x260]
mov ecx, r12d
add rsp, 0x20
pop r12
jmp rax
mov r8d, 0x40
lea rdx, [0x22dd11068]
lea rcx, [0x22dd11190]
call qword [sym.imp.msvcrt.dll__wassert]
jmp 0x22dad2c1c
xor edx, edx
mov ecx, 0x10001
add rsp, 0x20
pop r12
jmp fcn.22dad20f0
lea rdx, [0x22dd115b0]
mov ecx, 0x10002
add rsp, 0x20
pop r12
jmp fcn.22dad20f0