Function at 0x140004e60
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.140004200
mov r8d, eax
xor edx, edx
lea ecx, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r13, rax
test rax, rax
jne 0x140004f27
mov byte [0x1400ff4b6], 1
mov byte [0x1400ff4da], r15b
mov byte [0x1400ff4dd], r15b
mov byte [0x1400ff4ce], r15b
mov byte [0x1400ff4cd], r15b
mov byte [0x1400ff4d9], r15b
mov byte [0x1400ff4df], r15b
mov byte [0x1400ff4b0], r15b
mov byte [0x1400ff4c3], r15b
mov byte [0x1400ff4de], r15b
mov byte [0x1400ff4b1], r15b
mov byte [0x1400ff4b4], r15b
mov byte [0x1400ff4ed], r15b
mov byte [0x1400ff4cc], r15b
jmp 0x14000569c
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, [0x1400e0b80]
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 0x140005003
mov rdi, qword [rdi]
mov r9d, 2
mov rdx, rdi
lea rcx, [rbp + 0x120]
call fcn.140012e40
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 0x1400050a3
mov rbx, qword [rbx]
mov r9d, 2
mov rdx, rbx
lea rcx, [rbp + 0x30]
call fcn.140012e40
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.1400133b0
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 0x140005183
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 0x14000520e
cmp dword [rdi], 0x22
je 0x140005200
mov byte [rsp + 0x30], al
mov rdx, qword [rbp - 0x10]
cmp rdx, qword [rbp - 8]
je 0x14000514d
mov byte [rdx], al
inc qword [rbp - 0x10]
jmp 0x14000515b
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.140015740
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x110]
call fcn.1400133b0
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 0x1400050f5
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x20]
call fcn.1400133b0
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 0x14000524f
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 0x14000532f
cmp dword [rdi], 0x22
je 0x140005321
mov byte [rsp + 0x30], al
mov rdx, qword [rbp - 0x48]
cmp rdx, qword [rbp - 0x40]
je 0x14000521c
mov byte [rdx], al
inc qword [rbp - 0x48]
jmp 0x14000522a
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.140015740
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x20]
call fcn.1400133b0
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 0x1400051a8
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 0x140005501
cmp r12, rsi
jae 0x140005525
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 0x140005525
cmp dword [rsp + 0x68], 0x1000
jne 0x140005416
test byte [rsp + 0x6c], 4
je 0x140005416
xorps xmm0, xmm0
mov rdi, qword [rsp + 0x60]
movdqu xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], r15
test rdi, rdi
je 0x140005367
cmp rdi, rbx
ja 0x1400056c6
cmp rdi, 0x1000
jb 0x14000533d
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x1400056cc
call fcn.1400c7edc
mov rcx, rax
test rax, rax
je 0x1400054fa
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140005345
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.1400c7edc
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 0x1400053d3
mov rdi, r15
mov rsi, qword [rbp - 0x10]
mov r15, qword [rbp - 0x18]
sub rsi, r15
mov r14, qword [rbp]
sub r14, rsi
je 0x1400053cb
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 0x140005429
inc rdi
cmp rdi, r14
jb 0x1400053b0
xor r15d, r15d
mov rsi, qword [rsp + 0x40]
test rbx, rbx
je 0x14000540c
mov rdx, qword [rbp + 0x18]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x140005404
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400054fa
mov rcx, rbx
call fcn.1400c7c38
movabs rbx, 0x7fffffffffffffff
add r12, qword [rsp + 0x60]
cmp r12, rsi
jae 0x140005525
jmp 0x140005290
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 0x1400054b0
mov dword [rdx], eax
add qword [rcx + 8], 4
jmp 0x1400054bb
lea r8, [rsp + 0x40]
call fcn.1400158b0
nop
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x14000552f
mov rdx, qword [rbp + 0x18]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400054f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400054f3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c7c38
jmp 0x14000552f
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 0x140005501
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x14000556d
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005568
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005568
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c7c38
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.140012110
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.140012110
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 0x14000565f
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000564e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000564e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c7c38
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], r15
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14000569c
mov rdx, qword [rbp - 8]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005697
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005697
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c7c38
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400c7c10
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.140015330
nop
call fcn.1400028d0
int3