Function at 0x140005050
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 [0x140102080]
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.140004280
mov r8d, eax
xor edx, edx
lea ecx, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r13, rax
test rax, rax
jne 0x140005153
mov byte [0x1401034c1], 1
mov byte [0x1401034df], r15b
mov byte [0x1401034e3], r15b
mov byte [0x1401034b4], r15b
mov byte [0x1401034de], r15b
mov byte [0x1401034b0], r15b
mov byte [0x1401034ce], r15b
mov byte [0x1401034e6], r15b
mov byte [0x1401034e2], r15b
mov byte [0x1401034e4], r15b
mov byte [0x1401034c2], r15b
mov byte [0x1401034db], r15b
mov byte [0x1401034da], r15b
mov byte [0x1401034dd], r15b
mov byte [0x1401034e7], r15b
mov byte [0x1401034b1], r15b
mov byte [0x1401034cf], r15b
mov byte [0x1401034e5], r15b
mov byte [0x1401034b2], r15b
mov byte [0x1401034b6], r15b
mov byte [0x1401034f5], r15b
mov byte [0x1401034d9], r15b
jmp 0x1400058cc
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, [0x1400e3d60]
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 0x14000522f
mov rdi, qword [rdi]
mov r9d, 2
mov rdx, rdi
lea rcx, [rbp + 0x120]
call fcn.140015290
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 0x1400052cf
mov rbx, qword [rbx]
mov r9d, 2
mov rdx, rbx
lea rcx, [rbp + 0x30]
call fcn.140015290
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.140015800
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 0x1400053af
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 0x14000543a
cmp dword [rdi], 0x22
je 0x14000542c
mov byte [rsp + 0x30], al
mov rdx, qword [rbp - 0x10]
cmp rdx, qword [rbp - 8]
je 0x140005379
mov byte [rdx], al
inc qword [rbp - 0x10]
jmp 0x140005387
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.140017b90
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x110]
call fcn.140015800
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 0x140005321
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x20]
call fcn.140015800
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 0x14000547b
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 0x14000555f
cmp dword [rdi], 0x22
je 0x140005551
mov byte [rsp + 0x30], al
mov rdx, qword [rbp - 0x48]
cmp rdx, qword [rbp - 0x40]
je 0x140005448
mov byte [rdx], al
inc qword [rbp - 0x48]
jmp 0x140005456
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.140017b90
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x20]
call fcn.140015800
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 0x1400053d4
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 0x140005731
cmp r12, rsi
jae 0x140005755
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 0x140005755
cmp dword [rsp + 0x68], 0x1000
jne 0x140005646
test byte [rsp + 0x6c], 4
je 0x140005646
xorps xmm0, xmm0
mov rdi, qword [rsp + 0x60]
movdqu xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], r15
test rdi, rdi
je 0x140005597
cmp rdi, rbx
ja 0x1400058f6
cmp rdi, 0x1000
jb 0x14000556d
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x1400058fc
call fcn.1400ca32c
mov rcx, rax
test rax, rax
je 0x14000572a
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140005575
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.1400ca32c
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 0x140005603
mov rdi, r15
mov rsi, qword [rbp - 0x10]
mov r15, qword [rbp - 0x18]
sub rsi, r15
mov r14, qword [rbp]
sub r14, rsi
je 0x1400055fb
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 0x140005659
inc rdi
cmp rdi, r14
jb 0x1400055e0
xor r15d, r15d
mov rsi, qword [rsp + 0x40]
test rbx, rbx
je 0x14000563c
mov rdx, qword [rbp + 0x18]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x140005634
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000572a
mov rcx, rbx
call fcn.1400ca088
movabs rbx, 0x7fffffffffffffff
add r12, qword [rsp + 0x60]
cmp r12, rsi
jae 0x140005755
jmp 0x1400054c0
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 0x1400056e0
mov dword [rdx], eax
add qword [rcx + 8], 4
jmp 0x1400056eb
lea r8, [rsp + 0x40]
call fcn.140017d00
nop
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x14000575f
mov rdx, qword [rbp + 0x18]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005723
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005723
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ca088
jmp 0x14000575f
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 0x140005731
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x14000579d
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005798
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005798
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ca088
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.140014560
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.140014560
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 0x14000588f
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000587e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000587e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ca088
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], r15
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400058cc
mov rdx, qword [rbp - 8]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400058c7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400058c7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ca088
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400ca060
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.140017780
nop
call fcn.140002950
int3