joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18006a030
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1800eb040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov ecx, dword [rcx + 0x20]
test ecx, ecx
je 0x18006a0ee
cmp ecx, 1
jne 0x18006a164
lea edx, [rcx + 0xb]
mov dword [rsp + 0x20], 0
lea r8d, [rcx + 0x3f]
mov rcx, qword [rbx + 0x10]
lea r9, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rbx]
lea r9, [rsp + 0x20]
mov rcx, qword [rbx + 0x18]
add eax, 0xc
movsxd rdx, eax
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movsxd rdx, dword [rbx]
lea r9, [rsp + 0x20]
mov rcx, qword [rbx + 8]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movsxd r8, dword [rbx]
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 8]
call sub.VCRUNTIME140.dll_memcpy
movsxd rdx, dword [rbx]
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rbx + 0x10]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rbx + 0x18]
jmp 0x18006a156
mov eax, dword [rbx]
lea r9, [rsp + 0x20]
mov rcx, qword [rbx + 0x10]
add eax, 0xc
movsxd rdx, eax
mov r8d, 0x40
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movsxd rdx, dword [rbx]
lea r9, [rsp + 0x20]
mov rcx, qword [rbx + 8]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movsxd r8, dword [rbx]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 8]
call sub.VCRUNTIME140.dll_memcpy
movsxd rdx, dword [rbx]
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rbx + 0x10]
mov r8d, 0x8000
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, 0x28
mov rcx, rbx
call fcn.180090ab0
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800903f0
add rsp, 0x30
pop rbx
ret
Function at 0x18006d1e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, rdx
mov r8, rcx
mov r10, qword [rcx + 0x10]
mov rdx, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x18006d20e
mov rdx, qword [rcx]
movabs rbx, 0xcbf29ce484222325
mov r9, rbx
xor edi, edi
mov ecx, edi
movabs rsi, 0x100000001b3
test r10, r10
je 0x18006d243
nop
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, rsi
inc rcx
cmp rcx, r10
jb 0x18006d230
lea rdx, [rsp + 0x28]
call fcn.180073900
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x18006d2b4
lea r10, [rax + 0x30]
mov rdx, qword [r14 + 0x10]
mov rcx, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x18006d26c
mov rcx, qword [r14]
test rdx, rdx
je 0x18006d284
movzx eax, byte [rdi + rcx]
xor rbx, rax
imul rbx, rsi
inc rdi
cmp rdi, rdx
jb 0x18006d271
mov r9, rbx
mov r8, r14
lea rdx, [rsp + 0x28]
mov rcx, r10
call fcn.1800742e0
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x18006d2a7
mov rax, qword [rax + 0x30]
jmp 0x18006d2c4
lea rcx, str.invalid_unordered_map_K__T__key
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
lea rcx, str.invalid_unordered_map_K__T__key
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
nop
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x18006d2e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x40
mov rdi, rdx
mov r8, rcx
mov r10, qword [rcx + 0x10]
mov rdx, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x18006d30e
mov rdx, qword [rcx]
movabs rbx, 0xcbf29ce484222325
mov r9, rbx
xor esi, esi
mov ecx, esi
movabs r14, 0x100000001b3
test r10, r10
je 0x18006d343
nop
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r14
inc rcx
cmp rcx, r10
jb 0x18006d330
lea rdx, [rsp + 0x28]
call fcn.180073900
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x18006d417
mov r8, qword [rdi + 0x10]
mov rcx, rdi
mov r9, qword [rdi + 0x18]
cmp r9, 0xf
jbe 0x18006d36f
mov rcx, qword [rdi]
test r8, r8
je 0x18006d393
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rsi + rcx]
xor rbx, rax
imul rbx, r14
inc rsi
cmp rsi, r8
jb 0x18006d380
mov rcx, qword [rdx + 0xa0]
and rcx, rbx
add rcx, rcx
mov rax, qword [rdx + 0x88]
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [rdx + 0x78]
je 0x18006d40a
mov rsi, qword [rax + rcx*8]
nop word [rax + rax]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x18006d3d2
mov rdx, qword [rdx]
mov rcx, rdi
cmp r9, 0xf
jbe 0x18006d3de
mov rcx, qword [rdi]
cmp r8, rax
jne 0x18006d3ff
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18006d3f7
test rbx, rbx
je 0x18006d40a
mov rax, qword [rbx + 0x30]
jmp 0x18006d427
mov r8, qword [rdi + 0x10]
mov r9, qword [rdi + 0x18]
cmp rbx, rsi
je 0x18006d40a
mov rbx, qword [rbx + 8]
jmp 0x18006d3c0
lea rcx, str.invalid_unordered_map_K__T__key
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
lea rcx, str.invalid_unordered_map_K__T__key
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
nop
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x180070e10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, qword [rdx + 0x18]
mov rdi, rdx
mov rsi, qword [rdx + 0x10]
mov r10, rcx
mov r9, rdx
cmp r14, 0xf
jbe 0x180070e3f
mov r9, qword [rdx]
xor edx, edx
movabs r8, 0xcbf29ce484222325
test rsi, rsi
je 0x180070e74
movabs rcx, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rdx + r9]
inc rdx
xor r8, rax
imul r8, rcx
cmp rdx, rsi
jb 0x180070e60
mov rcx, qword [r10 + 0x30]
mov rax, qword [r10 + 0x18]
and rcx, r8
add rcx, rcx
mov qword [rsp + 0x30], rbp
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [r10 + 8]
je 0x180070efe
mov rbp, qword [rax + rcx*8]
nop word [rax + rax]
cmp qword [rbx + 0x28], 0xf
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
jbe 0x180070eb2
mov rdx, qword [rdx]
mov rcx, rdi
cmp r14, 0xf
jbe 0x180070ebe
mov rcx, qword [rdi]
cmp rsi, rax
jne 0x180070ecf
mov r8, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x180070eda
cmp rbx, rbp
je 0x180070efe
mov rbx, qword [rbx + 8]
jmp 0x180070ea0
test rbx, rbx
je 0x180070efe
mov rbp, qword [rsp + 0x30]
lea rax, [rbx + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
lea rcx, str.invalid_unordered_map_K__T__key
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
Function at 0x180072e00
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rdi
push r13
push r14
sub rsp, 0x40
mov qword [rsp + 0x70], rbx
mov r13, rcx
mov qword [rsp + 0x38], rbp
mov rbp, qword [rdx + 0x10]
mov qword [rsp + 0x30], rsi
mov rsi, rdx
mov qword [rsp + 0x28], r12
mov r12, qword [rdx + 0x18]
cmp r12, 0xf
jbe 0x180072e35
mov rdx, qword [rdx]
xor edi, edi
movabs r14, 0xcbf29ce484222325
mov ecx, edi
test rbp, rbp
je 0x180072e65
movabs r8, 0x100000001b3
movzx eax, byte [rcx + rdx]
inc rcx
xor r14, rax
imul r14, r8
cmp rcx, rbp
jb 0x180072e52
mov rcx, qword [r13 + 0x30]
mov rax, qword [r13 + 0x18]
and rcx, r14
add rcx, rcx
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [r13 + 8]
je 0x180072ed2
mov qword [rsp + 0x20], r15
mov r15, qword [rax + rcx*8]
nop word [rax + rax]
cmp qword [rbx + 0x28], 0xf
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
jbe 0x180072ea2
mov rdx, qword [rdx]
mov rcx, rsi
cmp r12, 0xf
jbe 0x180072eae
mov rcx, qword [rsi]
cmp rbp, rax
jne 0x180072ebf
mov r8, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x180072eca
cmp rbx, r15
je 0x180072ecd
mov rbx, qword [rbx + 8]
jmp 0x180072e90
mov rdi, rbx
mov r15, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x70]
test rdi, rdi
je 0x180072f71
mov rcx, qword [r13 + 0x18]
mov rax, qword [r13 + 0x30]
and rax, r14
add rax, rax
lea r8, [rcx + rax*8]
lea rdx, [rcx + rax*8]
mov rax, qword [rcx + rax*8]
cmp qword [r8 + 8], rdi
jne 0x180072f2b
cmp rax, rdi
jne 0x180072f21
mov rax, qword [r13 + 8]
mov qword [rdx], rax
mov qword [r8 + 8], rax
jmp 0x180072f36
mov rax, qword [rdi + 8]
mov qword [r8 + 8], rax
jmp 0x180072f36
cmp rax, rdi
jne 0x180072f36
mov rax, qword [rdi]
mov qword [rdx], rax
mov rdx, qword [rdi]
lea rcx, [rdi + 0x10]
dec qword [r13 + 0x10]
mov rax, qword [rdi + 8]
mov qword [rax], rdx
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
call fcn.18006d150
mov edx, 0x40
mov rcx, rdi
call fcn.180090ab0
mov eax, 1
add rsp, 0x40
pop r14
pop r13
pop rdi
ret
xor eax, eax
add rsp, 0x40
pop r14
pop r13
pop rdi
ret
Function at 0x180076ea0
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x180076ed1
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1800ec708]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x1800ec718]
lea rdx, [rdi + rdi]
call fcn.1800721e0
mov rax, qword [0x1800ec708]
lea r9, [rdi - 1]
mov qword [0x1800ec730], r9
mov qword [0x1800ec738], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180077072
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x14]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x15]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x16]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x17]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x1800ec718]
mov r9, qword [r11]
cmp r9, rbx
jne 0x180076fbc
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180077033
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x180076ff9
mov r10, qword [rdx]
cmp r10, rax
je 0x180076ff3
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x180077033
cmp r9, rdx
je 0x18007700f
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x180077047
cmp r9, rdx
jne 0x180077000
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x18007706d
mov r9, qword [0x1800ec730]
jmp 0x180076f41
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x180077033
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180082fd0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x180083031
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x180082ff0
mov ecx, dword [r9]
jmp 0x180083118
cmp ecx, 0x4e0
jb 0x180083118
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x180083050
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x1800830a0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x180087540
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
cmp byte [rcx + 8], 0
je 0x1800876ce
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1800876ce
mov rsi, qword [0x1800ecb90]
cmp qword [rsi + 8], 0
je 0x1800876ce
mov rbx, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, 0x14
lea rdx, str.rightClickDelayTimer
lea rcx, [rsp + 0x20]
call fcn.1800636e0
nop
lea rdx, [rsp + 0x20]
lea rcx, [0x1800eca30]
call fcn.18006d1e0
mov rdx, qword [rbx]
mov r9, qword [rdx + 0x320]
mov r8, rax
mov rdx, qword [rsi + 8]
mov rcx, rbx
call r9
mov ebx, eax
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x180087618
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180087613
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180087613
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180090ab0
cmp ebx, 4
jne 0x1800876ce
mov rsi, qword [0x1800ecb90]
mov edi, dword [rdi + 0x10]
cmp qword [rsi + 8], 0
je 0x1800876ce
mov rbx, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, 0x14
lea rdx, str.rightClickDelayTimer
lea rcx, [rsp + 0x20]
call fcn.1800636e0
nop
lea rdx, [rsp + 0x20]
lea rcx, [0x1800eca30]
call fcn.18006d1e0
mov r8, qword [rbx]
mov r10, qword [r8 + 0x368]
mov r9d, edi
mov r8, rax
mov rdx, qword [rsi + 8]
mov rcx, rbx
call r10
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x1800876ce
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800876c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800876c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180090ab0
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1800900b0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1800eb040]
xor rax, rsp
mov qword [rsp + 0x50], rax
call fcn.180087390
call fcn.18008ec00
mov rbx, qword [0x1800ecb90]
test rbx, rbx
je 0x1800900f0
mov rcx, rbx
call fcn.1800678a0
mov edx, 0xa8
mov rcx, rbx
call fcn.180090ab0
call fcn.180063d10
cmp qword [0x1800ec798], 0
je 0x18009011c
lea r8, [0x1800ec798]
lea rdx, [rsp + 0x40]
call fcn.180073590
mov rcx, qword [rax]
add rcx, 0x18
call fcn.180070f10
mov rbx, qword [0x1800ec7c0]
test rbx, rbx
je 0x18009013d
mov rcx, rbx
call fcn.180071800
mov edx, 0x10
mov rcx, rbx
call fcn.180090ab0
mov rcx, qword [0x1800ec7c8]
test rcx, rcx
je 0x180090155
mov rax, qword [rcx]
mov rdx, qword [rax + 0x3f0]
call rdx
mov byte [0x1800ec7b8], 0
mov rdx, qword [0x1800ec678]
mov rcx, qword [0x1800ec680]
call qword [sym.imp.OPENGL32.dll_wglMakeCurrent]
call fcn.18003f4a0
call fcn.1800409f0
call fcn.180008e50
mov r8, qword [0x1800ec688]
mov edx, 0xfffffffc
mov rcx, qword [0x1800ec7b0]
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
mov rdx, qword [0x1800ec6a8]
mov rcx, qword [0x1800ec680]
call qword [sym.imp.OPENGL32.dll_wglMakeCurrent]
mov rcx, qword [0x1800ec678]
call qword [sym.imp.OPENGL32.dll_wglDeleteContext]
mov rcx, qword [0x1800ec690]
test rcx, rcx
je 0x1800901ca
call fcn.18006a030
mov rcx, qword [0x1800ec748]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [0x1800ec768]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [0x1800ec760]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov rcx, qword [0x1800ec770]
test rcx, rcx
je 0x180090208
call fcn.18006a030
mov ecx, 0x10
call fcn.180090b28
mov rcx, qword [0x1800ec7f0]
mov qword [rax], rcx
mov rcx, qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rax + 8], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1800902d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18009029c
cmp dword [rsp + 0x38], 0
je 0x180090290
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x180090290
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800903f0
add rsp, 0x60
pop rbx
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000c7e0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000c7f0]
mov dword [rax], 1
mov rax, qword [0x14000c800]
mov dword [rax], 1
mov rax, qword [0x14000c780]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000c7d0]
mov dword [0x14000f020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14000c8b0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14000c890]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14000c730]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x1400015ce
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
sub rsp, 0x430
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3c0], rcx
jmp 0x14000168b
mov dword [rbp + 0x3ac], 0
jmp 0x14000161b
mov eax, dword [rbp + 0x3ac]
cdqe
movzx eax, byte [rbp + rax - 0x60]
xor eax, 0x55
mov edx, eax
mov eax, dword [rbp + 0x3ac]
cdqe
mov byte [rbp + rax - 0x60], dl
add dword [rbp + 0x3ac], 1
mov eax, dword [rbp + 0x3ac]
cdqe
cmp rax, qword [rbp + 0x3a0]
jb 0x1400015f6
mov rax, qword [rbp + 0x3a0]
neg eax
mov edx, eax
mov rax, qword [rbp + 0x3c0]
mov r8d, 1
mov rcx, rax
call sym.fseek
mov rcx, qword [rbp + 0x3c0]
mov rdx, qword [rbp + 0x3a0]
lea rax, [rbp - 0x60]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp + 0x3c0]
mov r8d, 1
mov edx, 0
mov rcx, rax
call sym.fseek
mov rdx, qword [rbp + 0x3c0]
lea rax, [rbp - 0x60]
mov r9, rdx
mov r8d, 0x400
mov edx, 1
mov rcx, rax
call sym.fread
mov qword [rbp + 0x3a0], rax
cmp qword [rbp + 0x3a0], 0
jne 0x1400015ea
nop
nop
add rsp, 0x430
pop rbp
ret

Function at 0x140001bd0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001c40
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000f0b4]
mov rbx, rcx
test esi, esi
jle 0x140001d70
mov rax, qword [0x14000f0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001c8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001d15
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001c70
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001d92
mov rax, qword [0x14000f0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000f0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001d77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001d0e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001d20
add dword [0x14000f0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
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 [0x14000f0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001d0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001c98
mov rax, qword [0x14000f0b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]