Function at 0x140003be0
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 - 0x250]
sub rsp, 0x350
mov rax, qword [0x1400d4098]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x68], rdx
mov qword [rbp - 0x18], rcx
mov dword [rbp - 0x20], 0
mov byte [rsp + 0x40], 0x5b
mov al, reloc.WS2_32.dll_send
mov cl, Ordinal_32
mov dl, 0x76
mov r8b, listen
mov r9b, gethostname
mov r10b, Ordinal_60
mov r11b, Ordinal_35
mov bl, 0x3e
mov dil, reloc.WLDAP32.dll_Ordinal_41
mov sil, 0x75
movzx r14d, bl
mov r15b, reloc.WLDAP32.dll_Ordinal_35
movzx r12d, bl
xor r13d, r13d
xor al, 0x5b
mov byte [rsp + 0x41], al
xor cl, 0x5b
mov byte [rsp + 0x42], cl
xor dl, 0x5b
mov byte [rsp + 0x43], dl
xor r8b, 0x5b
mov byte [rsp + 0x44], r8b
xor r9b, 0x5b
mov byte [rsp + 0x45], r9b
xor r10b, 0x5b
mov byte [rsp + 0x46], r10b
xor r11b, 0x5b
mov byte [rsp + 0x47], r11b
xor bl, 0x5b
mov byte [rsp + 0x48], bl
xor dil, 0x5b
mov byte [rsp + 0x49], dil
xor sil, 0x5b
mov byte [rsp + 0x4a], sil
xor r14b, 0x5b
mov byte [rsp + 0x4b], r14b
xor r15b, 0x5b
mov byte [rsp + 0x4c], r15b
xor r12b, 0x5b
mov byte [rsp + 0x4d], r12b
mov byte [rsp + 0x4e], r13b
lea rcx, [rsp + 0x41]
call fcn.140002c60
mov r8d, eax
xor edx, edx
lea ecx, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x38], rax
test rax, rax
mov r13, qword [rsp + 0x68]
jne 0x140003d7f
mov byte [0x1400d5179], 0
mov byte [0x1400d517b], 0
mov byte [0x1400d5159], 0
mov byte [0x1400d514f], 0
mov byte [0x1400d515b], 0
mov byte [0x1400d517e], 0
mov byte [0x1400d5132], 0
mov byte [0x1400d514d], 0
mov byte [0x1400d517d], 0
mov byte [0x1400d5133], 0
mov byte [0x1400d5135], 0
mov byte [0x1400d5189], 0
mov byte [0x1400d514e], 0
mov byte [0x1400d5131], 0
mov byte [0x1400d5130], 0
mov byte [0x1400d517c], 0
mov byte [0x1400d5136], 0
mov byte [0x1400d514c], 0
mov byte [0x1400d5137], 0
mov byte [0x1400d5147], 0
jmp 0x1400045a8
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
xor esi, esi
mov qword [rsp + 0x50], rsi
mov qword [rbp + 0x10], rsi
xor r12d, r12d
mov qword [rbp + 0x18], r12
xor r14d, r14d
mov qword [rsp + 0x68], r14
mov qword [rbp + 0x20], r14
xor eax, eax
movups xmmword [rbp + 0x28], xmm0
mov qword [rsp + 0x58], rax
mov qword [rbp + 0x28], rax
xor r15d, r15d
mov qword [rbp + 0x30], r15
mov qword [rsp + 0x60], rax
mov qword [rbp + 0x38], rax
xor edx, edx
mov r8d, 0xf0
lea rcx, [rbp + 0x150]
call sub.VCRUNTIME140.dll_memset
lea rbx, [0x1400c1638]
mov qword [rbp + 0x150], rbx
lea rcx, [rbp + 0x1e0]
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 - 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x160]
lea rcx, [rbp + 0x150]
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 + 0x150]
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 + 0x150], rax
mov rax, qword [rbp + 0x150]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0x14c], edx
lea rax, [rbp + 0x160]
mov qword [rsp + 0x40], rax
lea rcx, [rbp + 0x160]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rdi, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x160], rdi
mov rax, qword [rbp - 0x18]
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x140003e81
mov rax, qword [rax]
mov r9d, 2
mov rdx, rax
lea rcx, [rbp + 0x160]
call fcn.140013a20
nop
xor edx, edx
mov r8d, 0xf0
lea rcx, [rbp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x60], rbx
lea rcx, [rbp + 0xf0]
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 - 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x60]
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 + 0x60]
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 + 0x60], rax
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0x5c], edx
lea rax, [rbp + 0x70]
mov qword [rsp + 0x40], rax
lea rcx, [rbp + 0x70]
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 + 0x70], rdi
mov r8, qword [r13 + 0x10]
cmp qword [r13 + 0x18], 0x10
jb 0x140003f23
mov r13, qword [r13]
mov r9d, 2
mov rdx, r13
lea rcx, [rbp + 0x70]
call fcn.140013a20
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
xor r13d, r13d
mov qword [rbp], r13
mov qword [rbp + 8], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x10], r13b
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x150]
call fcn.140013c90
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 0x14000401d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rax
lea rbx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rbx, qword [rbp - 0x10]
mov dword [rax], r13d
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x18]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp rbx, qword [rbp - 0x18]
je 0x1400040aa
cmp dword [rdi], 0x22
je 0x14000409c
mov byte [rsp + 0x30], al
cmp r12, r14
je 0x140003fce
mov byte [r12], al
inc r12
mov qword [rbp + 0x18], r12
jmp 0x140003fec
lea r8, [rsp + 0x30]
mov rdx, r12
lea rcx, [rbp + 0x10]
call fcn.140016580
mov r14, qword [rbp + 0x20]
mov qword [rsp + 0x68], r14
mov r12, qword [rbp + 0x18]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x150]
call fcn.140013c90
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 0x140003f78
mov rsi, qword [rbp + 0x10]
mov qword [rsp + 0x50], rsi
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x60]
call fcn.140013c90
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 0x140004107
mov r14, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rax
lea rbx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rbx, qword [rbp - 0x10]
mov dword [rax], r13d
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x18]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp rbx, qword [rbp - 0x18]
je 0x1400041ec
cmp dword [rdi], 0x22
je 0x1400041de
mov byte [rsp + 0x30], al
cmp r15, r14
je 0x1400040b8
mov byte [r15], al
inc r15
mov qword [rbp + 0x30], r15
jmp 0x1400040d9
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]
mov rdx, r15
lea rcx, [rbp + 0x28]
call fcn.140016580
mov rax, qword [rbp + 0x38]
mov qword [rsp + 0x60], rax
mov r15, qword [rbp + 0x30]
mov r14, rax
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x60]
call fcn.140013c90
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 0x140004047
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x58], rax
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x40], rax
mov r13, qword [rbp - 0x48]
mov qword [rbp - 0x20], r13
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rdi]
mov rdi, qword [rdi + 8]
cmp rbx, rdi
jne 0x140004428
cmp r13, rax
jae 0x1400042f9
movabs r14, 0x7fffffffffffffff
mov rbx, qword [rsp + 0x38]
nop
mov r9d, Ordinal_50
lea r8, [rbp - 0x80]
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x1400042f4
cmp dword [rbp - 0x60], 0x1000
jne 0x1400042e1
test byte [rbp - 0x5c], 4
je 0x1400042e1
xorps xmm0, xmm0
mov rdi, qword [rbp - 0x68]
movdqu xmmword [rbp + 0x40], xmm0
xor esi, esi
mov qword [rbp + 0x50], rsi
xor ebx, ebx
test rdi, rdi
je 0x14000422b
cmp rdi, r14
ja 0x1400045d2
cmp rdi, 0x1000
jb 0x1400041fa
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x1400045d8
call fcn.1400aaf4c
test rax, rax
je 0x140004421
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140004205
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.1400aaf4c
mov rbx, rax
mov r14, rbx
mov qword [rbp + 0x40], rbx
lea rsi, [rbx + rdi]
mov qword [rbp + 0x50], rsi
mov r8, rdi
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x48], rsi
mov rdi, qword [rbp - 0x68]
jmp 0x14000422f
mov r14, qword [rbp + 0x40]
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, rbx
mov rdx, r13
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14000429a
xor edi, edi
mov rax, r12
mov rdx, qword [rsp + 0x50]
sub rax, rdx
mov qword [rsp + 0x78], rax
mov r13, qword [rbp - 0x18]
sub r13, rax
je 0x140004296
nop dword [rax + rax]
lea rcx, [rbx + rdi]
mov r8, rax
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14000430e
inc rdi
cmp rdi, r13
mov rax, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x50]
jb 0x140004270
mov r13, qword [rbp - 0x20]
test r14, r14
je 0x1400042d2
sub rsi, r14
mov rax, r14
cmp rsi, 0x1000
jb 0x1400042c7
add rsi, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004421
mov rdx, rsi
mov rcx, r14
call fcn.1400ab1d8
movabs r14, 0x7fffffffffffffff
mov rbx, qword [rsp + 0x38]
add r13, qword [rbp - 0x68]
mov qword [rbp - 0x20], r13
cmp r13, qword [rsp + 0x40]
jb 0x140004150
mov rsi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400043e4
mov r13, qword [rsp + 0x58]
sub r15, r13
mov r12, qword [rbp - 0x20]
lea rbx, [rdi + r12]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8, r15
mov rdx, rbx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov qword [rsp + 0x20], 0
mov r9, r15
mov r8, r13
mov rdx, rbx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp - 0x20]
mov r8, r15
mov rdx, rbx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea eax, [r12 + rdi]
mov dword [rsp + 0x38], eax
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x140004399
mov dword [rdx], eax
add qword [rcx + 8], 4
jmp 0x1400043a4
lea r8, [rsp + 0x38]
call fcn.1400166f0
nop
test r14, r14
je 0x1400043df
sub rsi, r14
mov rax, r14
cmp rsi, 0x1000
jb 0x1400043d4
add rsi, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400043d4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rsi
mov rcx, r14
call fcn.1400ab1d8
mov rsi, qword [rsp + 0x50]
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x14000447d
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004478
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004478
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r13, qword [rsp + 0x58]
sub r15, r13
mov rsi, qword [rsp + 0x38]
nop word [rax + rax]
mov edx, dword [rbx]
mov qword [rsp + 0x20], 0
mov r9, r15
mov r8, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
add rbx, 4
cmp rbx, rdi
jne 0x140004440
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400043e4
call fcn.1400ab1d8
mov qword [rbp], 0
mov qword [rbp + 8], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x10], 0
mov rax, qword [rbp + 0x60]
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 + 0x60], rbx
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0x5c], edx
lea rcx, [rbp + 0x70]
call fcn.140012b00
lea rcx, [rbp + 0x78]
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 + 0xf0]
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 + 0x150]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x150], rbx
mov rax, qword [rbp + 0x150]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0x14c], edx
lea rcx, [rbp + 0x160]
call fcn.140012b00
lea rcx, [rbp + 0x168]
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 + 0x1e0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
test r13, r13
je 0x14000456b
mov rcx, qword [rsp + 0x60]
sub rcx, r13
mov rax, r13
cmp rcx, 0x1000
jb 0x14000455f
add rcx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000455f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rcx
mov rcx, r13
call fcn.1400ab1d8
nop
test rsi, rsi
je 0x1400045a8
mov rdx, qword [rsp + 0x68]
sub rdx, rsi
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400045a0
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400045a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1400ab1d8
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.1400aac90
mov rbx, qword [rsp + 0x3a8]
add rsp, 0x350
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400161e0
nop
call fcn.1400018e0
int3