Function at 0x140058370
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x2070
call fcn.1400be440
sub rsp, rax
mov rax, qword [0x140154080]
xor rax, rsp
mov qword [rsp + 0x2068], rax
mov r12, r9
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x2040], rdx
lea rbx, str.HD_Player.exe
mov rdx, rbx
call fcn.140058280
test eax, eax
jne 0x140058439
lea rbx, str.LdVBoxHeadless.exe
mov rdx, rbx
call fcn.140058280
test eax, eax
jne 0x140058439
lea rdx, str.MEmuHeadless.exe
call fcn.140058280
test eax, eax
je 0x1400583ed
lea rbx, str.MEmuHeadless.exe
jmp 0x140058439
mov rdx, rbx
call fcn.140058280
test eax, eax
jne 0x140058439
lea rbx, str.AndroidProcess.exe
mov rdx, rbx
call fcn.140058280
test eax, eax
jne 0x140058439
lea rbx, str.aow_exe.exe
mov rdx, rbx
call fcn.140058280
test eax, eax
jne 0x140058439
lea rbx, str.NoxVMHandle.exe
mov rdx, rbx
call fcn.140058280
test eax, eax
cmove rbx, qword [rsp + 0x2040]
mov rdx, rbx
call fcn.140058280
test eax, eax
je 0x1400586c2
mov dword [rsi], eax
mov r8d, eax
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsi + 8], rax
test rax, rax
je 0x1400586c2
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__msize]
mov rbp, rax
xor ebx, ebx
test eax, eax
jle 0x140058507
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x2048], xmm1
mov qword [rsp + 0x2058], rbx
lea r8, [rsp + 0x2048]
mov rdx, r14
mov rcx, rsi
call fcn.140058740
mov r10, qword [rsp + 0x2048]
mov rax, qword [rsp + 0x2050]
cmp r10, rax
jne 0x14005855a
test r10, r10
je 0x140058507
mov rax, qword [rsp + 0x2058]
sub rax, r10
sar rax, 3
lea rdx, [rax*8]
mov rax, r10
cmp rdx, 0x1000
jb 0x1400584ff
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005864b
mov rcx, r10
call fcn.1400bdc24
lea r9, str.Failed_To_Apply
mov edx, 8
mov r8d, 0x3e8
lea rcx, [rsp + 0x30]
call fcn.1400573c0
mov rax, qword [0x1402242f0]
cmp rax, qword [0x1402242f8]
je 0x14005866b
mov r8d, 0x2010
lea rdx, [rsp + 0x30]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
add qword [0x1402242f0], 0x2010
jmp 0x140058678
mov r15d, ebx
sub rax, r10
sar rax, 3
test rax, rax
je 0x14005860e
movsxd r14, ebp
mov rbp, rbx
lea rax, [rsp + 0x2060]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8, r14
mov rdx, qword [r10 + rbp]
mov rcx, qword [rsi + 8]
call qword [sym.imp.ntdll.dll_ZwProtectVirtualMemory]
mov rax, qword [rsp + 0x2048]
mov qword [rsp + 0x20], rbx
mov r9, r14
mov r8, r12
mov rdx, qword [rax + rbp]
mov rcx, qword [rsi + 8]
call qword [sym.imp.ntdll.dll_ZwWriteVirtualMemory]
mov rax, qword [rsp + 0x2048]
lea rcx, [rsp + 0x2060]
mov qword [rsp + 0x20], rcx
mov r9d, reloc.WLDAP32.dll_Ordinal_32
mov r8, r14
mov rdx, qword [rax + rbp]
mov rcx, qword [rsi + 8]
call qword [sym.imp.ntdll.dll_ZwProtectVirtualMemory]
inc r15d
lea rbp, [rbp + 8]
mov rcx, qword [rsp + 0x2050]
mov r10, qword [rsp + 0x2048]
sub rcx, r10
sar rcx, 3
movsxd rax, r15d
cmp rax, rcx
jb 0x140058573
test r10, r10
je 0x14005865a
mov rax, qword [rsp + 0x2058]
sub rax, r10
sar rax, 3
lea rdx, [rax*8]
mov rax, r10
cmp rdx, 0x1000
jb 0x140058652
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140058652
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r10
call fcn.1400bdc24
lea r9, str.Applied
mov edx, 1
jmp 0x140058513
lea r8, [rsp + 0x30]
mov rdx, rax
call fcn.14005cef0
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x1400586bd
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400586b8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005872c
mov rcx, r8
call fcn.1400bdc24
mov byte [rdi], 0
jmp 0x1400586fe
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x1400586f8
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400586f3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005872c
mov rcx, r8
call fcn.1400bdc24
xor ebx, ebx
mov byte [rdi], bl
xor al, al
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rdi + 0x10], rbx
mov rcx, qword [rsp + 0x2068]
xor rcx, rsp
call fcn.1400bd860
add rsp, 0x2070
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3