Function at 0x140001290
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rbx, rdx
cmp ecx, 2
je 0x140001311
lea rdx, str.Usage:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002840
mov rcx, rax
mov rdx, qword [rbx]
call fcn.140002840
mov rcx, rax
lea rdx, str.__raw_binary_file_
call fcn.140002840
mov rcx, rax
lea rdx, [0x140002a10]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
jmp 0x1400015bd
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
mov rdx, qword [rbx + 8]
lea rcx, [rbp - 0x80]
call fcn.140002310
nop
cmp qword [rbp + 0x10], 0
jne 0x140001370
lea rdx, str.Failed_to_open_file:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002840
mov rcx, rax
mov rdx, qword [rbx + 8]
call fcn.140002840
mov rcx, rax
lea rdx, [0x140002a10]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov esi, 1
jmp 0x1400015b2
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rax
xor esi, esi
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x58], 1
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx - 0x38]
mov qword [rsp + 0x40], rax
test rax, rax
sete byte [rsp + 0x48]
mov byte [rsp + 0x49], sil
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rsi
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x60], rcx
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm1
movzx r14d, byte [rsp + 0x49]
mov rbx, qword [rsp + 0x40]
movzx r12d, byte [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
test rax, rax
jne 0x1400013fa
movzx r15d, byte [rsp + 0x48]
jmp 0x140001420
test rbx, rbx
je 0x140001413
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x140001413
movzx r14d, al
jmp 0x140001416
mov rbx, rsi
mov r15b, 1
nop dword [rax]
test r12b, r12b
jne 0x14000143e
test rdi, rdi
je 0x140001438
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
jne 0x14000143b
mov rdi, rsi
mov r12b, 1
test rbx, rbx
jne 0x1400014c2
test rdi, rdi
jne 0x1400014c7
lea rcx, [rbp - 0x70]
call fcn.140002780
test rax, rax
jne 0x140001472
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rdx, qword [rsp + 0x70]
sub rdx, qword [rsp + 0x68]
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x14000153c
lea rdx, str.Failed_to_allocate_memory
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002840
mov rcx, rax
lea rdx, [0x140002a10]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140001565
test rdi, rdi
jne 0x140001448
test r15b, r15b
jne 0x1400014e8
test rbx, rbx
je 0x1400014e5
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x1400014e5
movzx r14d, al
jmp 0x1400014e8
mov rbx, rsi
mov byte [rsp + 0x30], r14b
mov rax, qword [rsp + 0x70]
cmp rax, qword [rsp + 0x78]
je 0x140001503
mov byte [rax], r14b
inc qword [rsp + 0x70]
jmp 0x140001517
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x68]
call fcn.140002db0
test rbx, rbx
je 0x140001413
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sbumpc_void____ptr64]
cmp eax, 0xffffffff
je 0x140001413
mov byte [rsp + 0x48], 0
jmp 0x1400013fa
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
sub r8, rdx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
call rbx
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400015b2
mov rdx, qword [rsp + 0x78]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000159f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000159f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002ffc
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rsi
lea rcx, [rbp - 0x80]
call fcn.1400015f0
mov eax, esi
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140002fa0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret