Function at 0x140001530
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 [0x140064040]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov r14, rdx
mov qword [rbp - 0x80], rcx
mov dword [rbp - 0x18], 0
xor edi, edi
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400015e4
mov dword [rbp + 0x220], 0x130
lea rdx, [rbp + 0x220]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1400015e4
nop dword [rax]
nop dword [rax + rax]
lea rdx, str.HD_Player.exe
lea rcx, [rbp + 0x24c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400015de
lea rdx, [rbp + 0x220]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400015b0
jmp 0x1400015e4
mov edi, dword [rbp + 0x228]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, edi
xor edx, edx
mov ecx, 0x38
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140001dbe
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
xor r15d, r15d
mov qword [rsp + 0x38], r15
mov qword [rbp + 0x10], r15
xor r13d, r13d
mov qword [rbp + 0x18], r13
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rbp + 0x20], rdi
xor eax, eax
movups xmmword [rbp + 0x28], xmm0
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov qword [rbp + 0x28], rbx
xor r12d, r12d
mov qword [rbp + 0x30], r12
mov qword [rsp + 0x50], rax
mov qword [rbp + 0x38], rax
xor edx, edx
mov r8d, 0xf0
lea rcx, [rbp + 0x130]
call sub.VCRUNTIME140.dll_memset
lea rbx, [0x140058ff0]
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 - 0x18], 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 + 0x60], 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 - 0x80]
mov rdx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x140001711
mov rdx, qword [rax]
mov r9d, 2
mov r8, qword [rax + 0x10]
lea rcx, [rbp + 0x140]
call fcn.140005320
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 - 0x18], 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 + 0x60], 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 rdx, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x1400017b2
mov rdx, qword [r14]
mov r9d, 2
mov r8, qword [r14 + 0x10]
lea rcx, [rbp + 0x50]
call fcn.140005320
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], 0
mov qword [rbp + 8], 0xf
mov byte [rbp - 0x10], 0
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x130]
call fcn.1400056e0
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 0x1400018b6
mov r14, qword [rsp + 0x58]
xor r15d, r15d
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], 0xf
cmova rbx, qword [rbp - 0x10]
mov dword [rax], r15d
mov r8d, 0x10
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp rbx, qword [rbp - 0x80]
je 0x140001947
cmp dword [rdi], 0x22
je 0x140001939
mov byte [rsp + 0x30], al
cmp r13, r14
je 0x140001867
mov byte [r13], al
inc r13
mov qword [rbp + 0x18], r13
jmp 0x140001885
lea r8, [rsp + 0x30]
mov rdx, r13
lea rcx, [rbp + 0x10]
call fcn.1400062f0
mov r14, qword [rbp + 0x20]
mov qword [rsp + 0x58], r14
mov r13, qword [rbp + 0x18]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x130]
call fcn.1400056e0
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 0x140001811
mov r15, qword [rbp + 0x10]
mov qword [rsp + 0x38], r15
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x40]
call fcn.1400056e0
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 0x1400019a4
mov r14, qword [rsp + 0x50]
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], 0xf
cmova rbx, qword [rbp - 0x10]
mov dword [rax], 0
mov r8d, 0x10
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp rbx, qword [rbp - 0x80]
je 0x140001a72
cmp dword [rdi], 0x22
je 0x140001a64
mov byte [rsp + 0x30], al
cmp r12, r14
je 0x140001955
mov byte [r12], al
inc r12
mov qword [rbp + 0x30], r12
jmp 0x140001976
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 + 0x28]
call fcn.1400062f0
mov rax, qword [rbp + 0x38]
mov qword [rsp + 0x50], rax
mov r12, qword [rbp + 0x30]
mov r14, rax
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x40]
call fcn.1400056e0
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 0x1400018e0
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x48], rax
lea rcx, [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [rbp - 0x38]
mov qword [rsp + 0x60], rax
mov r14, qword [rbp - 0x40]
cmp r14, rax
jae 0x140001bfa
nop dword [rax]
nop dword [rax + rax]
mov r9d, 0x30
lea r8, [rbp - 0x78]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x140001bf5
mov byte [0x140095d71], 1
cmp dword [rbp - 0x58], 0x1000
jne 0x140001be6
test byte [rbp - 0x54], 4
je 0x140001be6
mov rbx, qword [rbp - 0x60]
xor edi, edi
xor r15d, r15d
test rbx, rbx
je 0x140001aa0
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x140001de8
cmp rbx, 0x1000
jb 0x140001a80
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140001dee
call fcn.140051510
test rax, rax
je 0x140001c85
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140001a8b
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.140051510
mov rdi, rax
lea r15, [rdi + rbx]
mov r8, rbx
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov rbx, qword [rbp - 0x60]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140001bae
mov rdx, qword [rsp + 0x38]
mov rax, rdx
sub rax, r13
mov qword [rsp + 0x68], rax
mov rsi, qword [rbp - 0x80]
add rax, rsi
je 0x140001ba9
mov rax, r13
sub rax, rdx
mov qword [rsp + 0x70], rax
mov rbx, r14
mov rcx, rdi
sub rcx, r14
mov qword [rsp + 0x78], rcx
nop dword [rax]
add rcx, rbx
mov r8, rax
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140001b80
mov rsi, r12
sub rsi, qword [rsp + 0x48]
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8, rsi
mov rdx, rbx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov qword [rsp + 0x20], 0
mov r9, rsi
mov r8, qword [rsp + 0x48]
mov rdx, rbx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001c0c
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp - 0x18]
mov r8, rsi
mov rdx, rbx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rsi, qword [rbp - 0x80]
inc rbx
mov rcx, qword [rsp + 0x68]
add rcx, rsi
mov rax, rbx
sub rax, r14
cmp rax, rcx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x38]
jb 0x140001b00
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x140001be6
sub r15, rdi
cmp r15, 0x1000
jb 0x140001bdb
add r15, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x140001c85
mov rdi, rcx
mov rdx, r15
mov rcx, rdi
call fcn.14005178c
add r14, qword [rbp - 0x60]
cmp r14, qword [rsp + 0x60]
jb 0x1400019d0
mov r15, qword [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [0x140095d71], 0
jmp 0x140001c45
test rdi, rdi
je 0x140001c40
sub r15, rdi
cmp r15, 0x1000
jb 0x140001c35
add r15, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x140001c7e
mov rdi, rcx
mov rdx, r15
mov rcx, rdi
call fcn.14005178c
mov r15, qword [rsp + 0x38]
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x140001c91
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c8c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c8c
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]
nop
call fcn.14005178c
mov qword [rbp], 0
mov qword [rbp + 8], 0xf
mov byte [rbp - 0x10], 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.140004d70
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.140004d70
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 + 0x48]
test rcx, rcx
je 0x140001d7e
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d78
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d78
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005178c
nop
test r15, r15
je 0x140001dbe
mov rcx, qword [rsp + 0x58]
sub rcx, r15
mov rax, r15
cmp rcx, 0x1000
jb 0x140001db3
add rcx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001db3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rcx
mov rcx, r15
call fcn.14005178c
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.1400514f0
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.1400061e0
nop
call fcn.140001310
int3