Function at 0x1400045c0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x1400fe080]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov r14, r8
mov qword [rsp + 0x38], r8
mov rbx, rdx
mov rdi, rcx
xor r15d, r15d
mov dword [rbp - 0x58], r15d
call fcn.140003960
mov r8d, eax
xor edx, edx
lea ecx, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r13, rax
test rax, rax
jne 0x140004687
mov byte [0x1400ff576], 1
mov byte [0x1400ff59a], r15b
mov byte [0x1400ff59d], r15b
mov byte [0x1400ff58e], r15b
mov byte [0x1400ff58d], r15b
mov byte [0x1400ff599], r15b
mov byte [0x1400ff59f], r15b
mov byte [0x1400ff570], r15b
mov byte [0x1400ff583], r15b
mov byte [0x1400ff59e], r15b
mov byte [0x1400ff571], r15b
mov byte [0x1400ff574], r15b
mov byte [0x1400ff5ad], r15b
mov byte [0x1400ff58c], r15b
jmp 0x140004dfc
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], r15
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], r15
xor edx, edx
mov r8d, 0xf0
lea rcx, [rbp + 0x110]
call sub.VCRUNTIME140.dll_memset
lea rsi, [0x1400e0bc8]
mov qword [rbp + 0x110], rsi
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rbp - 0x58], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x120]
lea rcx, [rbp + 0x110]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x110], rax
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0x10c], edx
lea rax, [rbp + 0x120]
mov qword [rbp], rax
lea rcx, [rbp + 0x120]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea r12, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x120], r12
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x140004763
mov rdi, qword [rdi]
mov r9d, 2
mov rdx, rdi
lea rcx, [rbp + 0x120]
call fcn.140012f60
nop
xor edx, edx
mov r8d, 0xf0
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x20], rsi
lea rcx, [rbp + 0xb0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rbp - 0x58], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x20], rax
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0x1c], edx
lea rax, [rbp + 0x30]
mov qword [rbp], rax
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov qword [rbp + 0x30], r12
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140004803
mov rbx, qword [rbx]
mov r9d, 2
mov rdx, rbx
lea rcx, [rbp + 0x30]
call fcn.140012f60
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x38], 0
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x110]
call fcn.1400134d0
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x1400048e3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rax
lea rbx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rbx, qword [rbp - 0x38]
mov dword [rax], r15d
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp rbx, qword [rsp + 0x40]
je 0x14000496e
cmp dword [rdi], 0x22
je 0x140004960
mov byte [rsp + 0x30], al
mov rdx, qword [rbp - 0x10]
cmp rdx, qword [rbp - 8]
je 0x1400048ad
mov byte [rdx], al
inc qword [rbp - 0x10]
jmp 0x1400048bb
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.140015860
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x110]
call fcn.1400134d0
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
jne 0x140004855
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x20]
call fcn.1400134d0
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x1400049af
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rax
lea rbx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rbx, qword [rbp - 0x38]
mov dword [rax], r15d
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp rbx, qword [rsp + 0x40]
je 0x140004a8f
cmp dword [rdi], 0x22
je 0x140004a81
mov byte [rsp + 0x30], al
mov rdx, qword [rbp - 0x48]
cmp rdx, qword [rbp - 0x40]
je 0x14000497c
mov byte [rdx], al
inc qword [rbp - 0x48]
jmp 0x14000498a
lea rcx, str.stoi_argument_out_of_range
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
lea rcx, str.invalid_stoi_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
int3
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x50]
call fcn.140015860
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x20]
call fcn.1400134d0
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
jne 0x140004908
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rsi, qword [rbp - 0x78]
mov qword [rsp + 0x40], rsi
mov r12, qword [rbp - 0x80]
mov rbx, qword [r14]
mov rdi, qword [r14 + 8]
cmp rbx, rdi
jne 0x140004c61
cmp r12, rsi
jae 0x140004c85
movabs rbx, 0x7fffffffffffffff
nop word [rax + rax]
mov r9d, Ordinal_50
lea r8, [rsp + 0x48]
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x140004c85
cmp dword [rsp + 0x68], 0x1000
jne 0x140004b76
test byte [rsp + 0x6c], 4
je 0x140004b76
xorps xmm0, xmm0
mov rdi, qword [rsp + 0x60]
movdqu xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], r15
test rdi, rdi
je 0x140004ac7
cmp rdi, rbx
ja 0x140004e26
cmp rdi, 0x1000
jb 0x140004a9d
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x140004e2c
call fcn.1400c7ecc
mov rcx, rax
test rax, rax
je 0x140004c5a
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140004aa5
lea rcx, str.stoi_argument_out_of_range
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
lea rcx, str.invalid_stoi_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
int3
mov rcx, rdi
call fcn.1400c7ecc
mov qword [rbp + 8], rax
lea rbx, [rax + rdi]
mov qword [rbp + 0x18], rbx
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x10], rbx
mov rdi, qword [rsp + 0x60]
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, qword [rbp + 8]
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rbp + 8]
test eax, eax
je 0x140004b33
mov rdi, r15
mov rsi, qword [rbp - 0x10]
mov r15, qword [rbp - 0x18]
sub rsi, r15
mov r14, qword [rbp]
sub r14, rsi
je 0x140004b2b
nop dword [rax]
nop word [rax + rax]
lea rcx, [rbx + rdi]
mov r8, rsi
mov rdx, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140004b89
inc rdi
cmp rdi, r14
jb 0x140004b10
xor r15d, r15d
mov rsi, qword [rsp + 0x40]
test rbx, rbx
je 0x140004b6c
mov rdx, qword [rbp + 0x18]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x140004b64
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004c5a
mov rcx, rbx
call fcn.1400c7c28
movabs rbx, 0x7fffffffffffffff
add r12, qword [rsp + 0x60]
cmp r12, rsi
jae 0x140004c85
jmp 0x1400049f0
mov r8, qword [rbp - 0x48]
sub r8, qword [rbp - 0x50]
lea rbx, [rdi + r12]
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r9, qword [rbp - 0x48]
mov r8, qword [rbp - 0x50]
sub r9, r8
xor r15d, r15d
mov qword [rsp + 0x20], r15
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r8, qword [rbp - 0x48]
sub r8, qword [rbp - 0x50]
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp - 0x58]
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea eax, [r12 + rdi]
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x140004c10
mov dword [rdx], eax
add qword [rcx + 8], 4
jmp 0x140004c1b
lea r8, [rsp + 0x40]
call fcn.1400159d0
nop
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x140004c8f
mov rdx, qword [rbp + 0x18]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004c53
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004c53
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c7c28
jmp 0x140004c8f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r9, qword [rbp - 0x48]
mov r8, qword [rbp - 0x50]
sub r9, r8
mov edx, dword [rbx]
mov qword [rsp + 0x20], r15
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
add rbx, 4
cmp rbx, rdi
jne 0x140004c61
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x140004ccd
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004cc8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004cc8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c7c28
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x38], 0
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x20], rbx
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0x1c], edx
lea rcx, [rbp + 0x30]
call fcn.140012230
lea rcx, [rbp + 0x38]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x110], rbx
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0x10c], edx
lea rcx, [rbp + 0x120]
call fcn.140012230
lea rcx, [rbp + 0x128]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140004dbf
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004dae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004dae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c7c28
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], r15
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140004dfc
mov rdx, qword [rbp - 8]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004df7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004df7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c7c28
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400c7c00
mov rbx, qword [rsp + 0x368]
add rsp, 0x310
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140015450
nop
call fcn.140002030
int3