Function at 0x140001700
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rbp + 0x27], rax
lea rdx, str.Choose_option__1_for_binary_file__2_for_hex_string_:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002dc0
lea rdx, [rbp - 0x21]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___int____ptr64____ptr64]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
xor r12d, r12d
mov r14d, r12d
mov qword [rbp - 0x29], r12
mov eax, dword [rbp - 0x21]
cmp eax, 1
jne 0x1400019b5
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x1f], 0xf
mov byte [rbp + 7], r12b
lea rdx, str.Enter_filename:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002dc0
lea rdx, [rbp + 7]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.140002fd0
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
mov qword [rbp - 0x49], r12
mov qword [rbp - 0x41], r12
lea rsi, [rbp + 7]
mov r15, qword [rbp + 7]
mov r13, qword [rbp + 0x1f]
cmp r13, 0xf
cmova rsi, r15
movabs rbx, 0x7fffffffffffffff
mov rdi, qword [rbp + 0x17]
cmp rdi, rbx
ja 0x140001c13
cmp rdi, 0xf
ja 0x140001803
mov qword [rbp - 0x49], rdi
mov qword [rbp - 0x41], 0xf
movups xmm0, xmmword [rsi]
movups xmmword [rbp - 0x59], xmm0
jmp 0x140001894
mov rax, rdi
or rax, 0xf
cmp rax, rbx
jbe 0x14000183f
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140003ad8
mov rcx, rax
test rax, rax
je 0x140001903
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140001879
mov rbx, rax
mov ecx, 0x16
cmp rax, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14000186a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001c07
jmp 0x14000181d
test rcx, rcx
je 0x140001876
call fcn.140003ad8
jmp 0x140001879
mov rax, r12
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x49], rdi
mov qword [rbp - 0x41], rbx
lea r8, [rdi + 1]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x11]
call fcn.140001040
lea rcx, [rbp - 0x39]
cmp rcx, rax
je 0x1400018ce
mov rsi, qword [rax]
mov qword [rbp - 0x39], rsi
mov rcx, qword [rax + 8]
mov qword [rbp - 0x31], rcx
mov r14, qword [rax + 0x10]
mov qword [rbp - 0x29], r14
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x10], r12
jmp 0x1400018d2
mov rsi, qword [rbp - 0x39]
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x140001910
mov rdx, qword [rbp - 1]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000190a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000190a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003ad0
nop
cmp r13, 0xf
jbe 0x140001947
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x14000193f
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001b91
mov rcx, r15
call fcn.140003ad0
mov rdi, qword [rbp - 0x31]
sub rdi, rsi
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
call rbx
nop
test rsi, rsi
je 0x140001ba3
sub r14, rsi
mov rax, rsi
cmp r14, 0x1000
jb 0x140001b98
add r14, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b98
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp eax, 2
jne 0x140001bd2
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x1f], 0xf
mov byte [rbp + 7], 0
lea rdx, str.Enter_hex_string:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002dc0
lea rdx, [rbp + 7]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.140002fd0
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
mov qword [rbp - 0x49], r12
mov qword [rbp - 0x41], r12
lea rsi, [rbp + 7]
mov r15, qword [rbp + 7]
mov r13, qword [rbp + 0x1f]
cmp r13, 0xf
cmova rsi, r15
movabs rbx, 0x7fffffffffffffff
mov rdi, qword [rbp + 0x17]
cmp rdi, rbx
ja 0x140001c01
cmp rdi, 0xf
ja 0x140001a4d
mov qword [rbp - 0x49], rdi
mov qword [rbp - 0x41], 0xf
movups xmm0, xmmword [rsi]
movups xmmword [rbp - 0x59], xmm0
jmp 0x140001ade
mov rax, rdi
or rax, 0xf
cmp rax, rbx
jbe 0x140001a89
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140003ad8
mov rcx, rax
test rax, rax
je 0x140001b4d
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140001ac3
mov rbx, rax
mov ecx, 0x16
cmp rax, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140001ab4
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001c0d
jmp 0x140001a67
test rcx, rcx
je 0x140001ac0
call fcn.140003ad8
jmp 0x140001ac3
mov rax, r12
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x49], rdi
mov qword [rbp - 0x41], rbx
lea r8, [rdi + 1]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x11]
call fcn.140001380
lea rcx, [rbp - 0x39]
cmp rcx, rax
je 0x140001b18
mov rsi, qword [rax]
mov qword [rbp - 0x39], rsi
mov rcx, qword [rax + 8]
mov qword [rbp - 0x31], rcx
mov r14, qword [rax + 0x10]
mov qword [rbp - 0x29], r14
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x10], r12
jmp 0x140001b1c
mov rsi, qword [rbp - 0x39]
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x140001b5a
mov rdx, qword [rbp - 1]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b54
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b54
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003ad0
nop
cmp r13, 0xf
jbe 0x140001947
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x14000193f
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000193f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, r14
mov rcx, rsi
call fcn.140003ad0
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140003ab0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rdx, str.Invalid_option
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002dc0
lea rdx, [0x140002f90]
mov rcx, rax
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 ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
call fcn.1400037e0
nop
call fcn.140003910
nop
call fcn.140003910
nop
call fcn.1400037e0
int3