Function at 0x140058040
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.1400be000
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.140057f50
test eax, eax
jne 0x140058109
lea rbx, str.LdVBoxHeadless.exe
mov rdx, rbx
call fcn.140057f50
test eax, eax
jne 0x140058109
lea rdx, str.MEmuHeadless.exe
call fcn.140057f50
test eax, eax
je 0x1400580bd
lea rbx, str.MEmuHeadless.exe
jmp 0x140058109
mov rdx, rbx
call fcn.140057f50
test eax, eax
jne 0x140058109
lea rbx, str.AndroidProcess.exe
mov rdx, rbx
call fcn.140057f50
test eax, eax
jne 0x140058109
lea rbx, str.aow_exe.exe
mov rdx, rbx
call fcn.140057f50
test eax, eax
jne 0x140058109
lea rbx, str.NoxVMHandle.exe
mov rdx, rbx
call fcn.140057f50
test eax, eax
cmove rbx, qword [rsp + 0x2040]
mov rdx, rbx
call fcn.140057f50
test eax, eax
je 0x140058392
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 0x140058392
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 0x1400581d7
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.140058410
mov r10, qword [rsp + 0x2048]
mov rax, qword [rsp + 0x2050]
cmp r10, rax
jne 0x14005822a
test r10, r10
je 0x1400581d7
mov rax, qword [rsp + 0x2058]
sub rax, r10
sar rax, 3
lea rdx, [rax*8]
mov rax, r10
cmp rdx, 0x1000
jb 0x1400581cf
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005831b
mov rcx, r10
call fcn.1400bd7e4
lea r9, str.Failed_To_Apply
mov edx, 8
mov r8d, 0x3e8
lea rcx, [rsp + 0x30]
call fcn.1400570a0
mov rax, qword [0x140224300]
cmp rax, qword [0x140224308]
je 0x14005833b
mov r8d, 0x2010
lea rdx, [rsp + 0x30]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
add qword [0x140224300], 0x2010
jmp 0x140058348
mov r15d, ebx
sub rax, r10
sar rax, 3
test rax, rax
je 0x1400582de
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 0x140058243
test r10, r10
je 0x14005832a
mov rax, qword [rsp + 0x2058]
sub rax, r10
sar rax, 3
lea rdx, [rax*8]
mov rax, r10
cmp rdx, 0x1000
jb 0x140058322
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140058322
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r10
call fcn.1400bd7e4
lea r9, str.Applied
mov edx, 1
jmp 0x1400581e3
lea r8, [rsp + 0x30]
mov rdx, rax
call fcn.14005cae0
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x14005838d
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140058388
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400583fc
mov rcx, r8
call fcn.1400bd7e4
mov byte [rdi], 0
jmp 0x1400583ce
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x1400583c8
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400583c3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400583fc
mov rcx, r8
call fcn.1400bd7e4
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.1400bd420
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