Function at 0x140058600
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.1400bdad0
sub rsp, rax
mov rax, qword [0x140153080]
xor rax, rsp
mov qword [rsp + 0x2068], rax
mov r12, r9
mov r14, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x2040], rdx
call fcn.140058520
test eax, eax
jne 0x14005868d
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140058681
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14005867c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140058917
mov rcx, r8
call fcn.1400bd2b4
xor edi, edi
mov byte [rbx], dil
xor al, al
jmp 0x1400588e9
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__msize]
mov rbp, rax
xor edi, edi
test eax, eax
jle 0x14005872c
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x2048], xmm1
mov qword [rsp + 0x2058], rdi
lea r8, [rsp + 0x2048]
mov rdx, r14
mov rcx, rsi
call fcn.140058920
mov r10, qword [rsp + 0x2048]
mov rax, qword [rsp + 0x2050]
cmp r10, rax
jne 0x14005877f
test r10, r10
je 0x14005872c
mov rax, qword [rsp + 0x2058]
sub rax, r10
sar rax, 3
lea rdx, [rax*8]
mov rax, r10
cmp rdx, 0x1000
jb 0x140058724
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058878
mov rcx, r10
call fcn.1400bd2b4
lea r9, str.Failed_To_Apply
mov edx, 8
mov r8d, 0x3e8
lea rcx, [rsp + 0x30]
call fcn.140057520
mov rax, qword [0x1402232f0]
cmp rax, qword [0x1402232f8]
je 0x140058898
mov r8d, 0x2010
lea rdx, [rsp + 0x30]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
add qword [0x1402232f0], 0x2010
jmp 0x1400588a5
mov r15d, edi
sub rax, r10
sar rax, 3
test rax, rax
je 0x14005883b
movsxd rbp, ebp
mov r14, rdi
nop dword [rax + rax]
lea rax, [rsp + 0x2060]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8, rbp
mov rdx, qword [r14 + r10]
mov rcx, qword [rsi + 8]
call qword [sym.imp.ntdll.dll_ZwProtectVirtualMemory]
mov rax, qword [rsp + 0x2048]
mov qword [rsp + 0x20], rdi
mov r9, rbp
mov r8, r12
mov rdx, qword [r14 + rax]
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, rbp
mov rdx, qword [r14 + rax]
mov rcx, qword [rsi + 8]
call qword [sym.imp.ntdll.dll_ZwProtectVirtualMemory]
inc r15d
lea r14, [r14 + 8]
mov rcx, qword [rsp + 0x2050]
mov r10, qword [rsp + 0x2048]
sub rcx, r10
sar rcx, 3
movsxd rax, r15d
cmp rax, rcx
jb 0x1400587a0
test r10, r10
je 0x140058887
mov rax, qword [rsp + 0x2058]
sub rax, r10
sar rax, 3
lea rdx, [rax*8]
mov rax, r10
cmp rdx, 0x1000
jb 0x14005887f
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005887f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r10
call fcn.1400bd2b4
lea r9, str.Applied
mov edx, 1
jmp 0x140058738
lea r8, [rsp + 0x30]
mov rdx, rax
call fcn.14005c660
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x1400588e6
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400588e1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140058917
mov rcx, r8
call fcn.1400bd2b4
mov byte [rbx], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], rdi
mov rcx, qword [rsp + 0x2068]
xor rcx, rsp
call fcn.1400bcef0
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