Function at 0x140006840
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 - 0x370]
sub rsp, 0x470
mov rax, qword [0x140084010]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov rdi, rdx
mov rsi, rcx
xor r15d, r15d
mov dword [rsp + 0x38], r15d
movabs rax, 0xa059ef967e8a54db
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs rax, 0xb3c08782230876e2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
movabs rax, 0xc5208efa2ea71093
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rbp], rax
movabs rax, 0xb3c087e75b6d5890
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rbp + 8], rax
movdqa xmm0, xmmword [rsp + 0x40]
pxor xmm0, xmmword [rbp]
movdqa xmmword [rsp + 0x40], xmm0
mov r14d, r15d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140006955
mov dword [rbp + 0x230], 0x130
lea rdx, [rbp + 0x230]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140006955
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x25c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000694e
lea rdx, [rbp + 0x230]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x140006922
mov r14d, dword [rbp + 0x238]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, r14d
xor edx, edx
lea ecx, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r13, rax
test rax, rax
jne 0x140006980
mov byte [0x140084070], r15b
jmp 0x1400070c9
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], r15
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], r15
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x140]
call sub.VCRUNTIME140.dll_memset
lea rbx, [0x14006dea0]
mov qword [rbp + 0x140], rbx
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x38], 2
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x150]
lea rcx, [rbp + 0x140]
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 + 0x140]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x140], r12
mov rax, qword [rbp + 0x140]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0x13c], edx
lea rax, [rbp + 0x150]
mov qword [rsp + 0x40], rax
lea rcx, [rbp + 0x150]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea r14, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x150], r14
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0x10
jb 0x140006a5e
mov rsi, qword [rsi]
mov r9d, 2
mov rdx, rsi
lea rcx, [rbp + 0x150]
call fcn.1400107b0
nop
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x50], rbx
lea rcx, [rbp + 0xe0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x38], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x50]
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 + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x50], r12
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0x4c], edx
lea rax, [rbp + 0x60]
mov qword [rsp + 0x40], rax
lea rcx, [rbp + 0x60]
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 + 0x60], r14
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x140006af9
mov rdi, qword [rdi]
mov r9d, 2
mov rdx, rdi
lea rcx, [rbp + 0x60]
call fcn.1400107b0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], r15
mov qword [rbp + 0x38], 0xf
mov byte [rbp + 0x20], 0
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x140]
call fcn.140010e20
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
jne 0x140006bcd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rax
lea rbx, [rbp + 0x20]
cmp qword [rbp + 0x38], 0x10
cmovae rbx, qword [rbp + 0x20]
mov dword [rax], r15d
mov r8d, 0x10
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp rbx, qword [rsp + 0x58]
je 0x140006c56
cmp dword [rdi], 0x22
je 0x140006c48
mov byte [rsp + 0x30], al
mov rdx, qword [rbp - 0x18]
cmp rdx, qword [rbp - 0x10]
je 0x140006b9d
mov byte [rdx], al
inc qword [rbp - 0x18]
jmp 0x140006bab
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.1400129a0
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x140]
call fcn.140010e20
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
je 0x140006b45
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x50]
call fcn.140010e20
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
jne 0x140006c91
nop dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rax
lea rbx, [rbp + 0x20]
cmp qword [rbp + 0x38], 0x10
cmovae rbx, qword [rbp + 0x20]
mov dword [rax], r15d
mov r8d, 0x10
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp rbx, qword [rsp + 0x50]
je 0x140006d64
cmp dword [rdi], 0x22
je 0x140006d56
mov byte [rsp + 0x30], al
mov rdx, qword [rbp - 0x38]
cmp rdx, qword [rbp - 0x30]
je 0x140006c64
mov byte [rdx], al
inc qword [rbp - 0x38]
jmp 0x140006c72
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 - 0x40]
call fcn.1400129a0
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x50]
call fcn.140010e20
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
je 0x140006bf0
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x50], rax
mov r12, qword [rbp - 0x68]
mov qword [rsp + 0x38], r12
cmp r12, rax
jae 0x140006f06
movabs rbx, 0x7fffffffffffffff
mov r9d, 0x30
lea r8, [rsp + 0x60]
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x140006f06
mov byte [0x140085053], 1
cmp dword [rbp - 0x80], 0x1000
jne 0x140006ef1
test byte [rbp - 0x7c], 4
je 0x140006ef1
mov rdi, qword [rsp + 0x78]
xorps xmm0, xmm0
movdqu xmmword [rbp], xmm0
mov qword [rbp + 0x10], r15
test rdi, rdi
je 0x140006d9c
cmp rdi, rbx
ja 0x1400070f3
cmp rdi, 0x1000
jb 0x140006d72
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x1400070f9
call fcn.14006400c
mov rcx, rax
test rax, rax
je 0x140006f8e
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140006d7a
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.14006400c
mov qword [rbp], rax
lea rbx, [rax + rdi]
mov qword [rbp + 0x10], rbx
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 8], rbx
mov rdi, qword [rsp + 0x78]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, qword [rbp]
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140006ea7
mov r14, qword [rbp - 0x18]
mov rcx, r14
mov rsi, qword [rbp - 0x20]
sub rcx, rsi
mov r15, qword [rbp + 0x40]
cmp r15, rcx
je 0x140006ea7
mov rbx, r12
neg r12
mov rdi, qword [rbp]
nop word [rax + rax]
lea rcx, [rdi + r12]
add rcx, rbx
mov r8, r14
sub r8, rsi
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140006e84
mov r8, qword [rbp - 0x38]
sub r8, qword [rbp - 0x40]
lea rax, [rbp - 0x28]
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 - 0x38]
mov r8, qword [rbp - 0x40]
sub r9, r8
xor r15d, r15d
mov qword [rsp + 0x20], r15
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140006f4f
mov r8, qword [rbp - 0x38]
sub r8, qword [rbp - 0x40]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp - 0x28]
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r14, qword [rbp - 0x18]
mov rsi, qword [rbp - 0x20]
mov rdi, qword [rbp]
mov r15, qword [rbp + 0x40]
inc rbx
mov rax, r14
sub rax, rsi
mov rcx, r15
sub rcx, rax
lea rax, [r12 + rbx]
cmp rax, rcx
jb 0x140006df0
mov r12, qword [rsp + 0x38]
jmp 0x140006eab
mov rdi, qword [rbp]
test rdi, rdi
je 0x140006ee4
mov rdx, qword [rbp + 0x10]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x140006edc
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006f8e
mov rcx, rdi
call fcn.140063e88
movabs rbx, 0x7fffffffffffffff
xor r15d, r15d
add r12, qword [rsp + 0x78]
mov qword [rsp + 0x38], r12
cmp r12, qword [rsp + 0x50]
jb 0x140006cc0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [0x140085053], 0
mov rdx, qword [rbp + 0x38]
cmp rdx, 0x10
jb 0x140006f9a
inc rdx
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006f95
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006f95
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [rbp]
test rcx, rcx
je 0x140006f16
mov rdx, qword [rbp + 0x10]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006f87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006f87
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140063e88
jmp 0x140006f16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140063e88
mov qword [rbp + 0x30], r15
mov qword [rbp + 0x38], 0xf
mov byte [rbp + 0x20], 0
mov rax, qword [rbp + 0x50]
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 + 0x50], rbx
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0x4c], edx
lea rcx, [rbp + 0x60]
call fcn.14000fbc0
lea rcx, [rbp + 0x68]
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 + 0xe0]
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 + 0x140]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x140], rbx
mov rax, qword [rbp + 0x140]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0x13c], edx
lea rcx, [rbp + 0x150]
call fcn.14000fbc0
lea rcx, [rbp + 0x158]
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 + 0x1d0]
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 - 0x40]
test rcx, rcx
je 0x14000708c
mov rdx, qword [rbp - 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000707b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000707b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140063e88
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], r15
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1400070c9
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400070c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400070c4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140063e88
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.140063e60
mov rbx, qword [rsp + 0x4c0]
add rsp, 0x470
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140012690
nop
call fcn.140001eb0
int3