Function at 0x14020d052
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x14043ff10
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x120
lea rdi, [rsp + 0x30]
mov ecx, 0x3c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x130]
mov dword [rsp + 0x30], 0
cmp qword [rsp + 0x140], 0
je 0x14043ff67
mov rax, qword [rsp + 0x140]
mov qword [rax], 0
cmp qword [rsp + 0x148], 0
je 0x14043ff81
mov rax, qword [rsp + 0x148]
mov qword [rax], 0
cmp qword [rsp + 0x150], 0
je 0x14043ff9b
mov rax, qword [rsp + 0x150]
mov qword [rax], 0
cmp qword [rsp + 0x138], 0
jne 0x14043ffb0
mov eax, 0xc000000d
jmp 0x1404405b5
call fcn.140212854
mov rcx, qword [rax + 0x48]
call fcn.14020ba13
cmp dword [0x14096c810], eax
je 0x14043ffd0
mov eax, 0xc0000476
jmp 0x1404405b5
cmp dword [0x14096c814], 0
je 0x14043ffe4
mov eax, dword [0x14096c814]
jmp 0x1404405b5
cmp qword [rsp + 0x130], 0
jne 0x14043fff9
mov eax, 0xc0000008
jmp 0x1404405b5
mov rax, qword [rsp + 0x130]
cmp qword [rax], 0
jne 0x140440031
mov dword [rsp + 0x30], 0xc0000008
mov eax, dword [rsp + 0x30]
mov dword [0x14096c814], eax
mov rax, qword [rsp + 0x130]
mov qword [0x14096c818], rax
mov eax, dword [rsp + 0x30]
jmp 0x1404405b5
mov rax, qword [rsp + 0x130]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.1402100fe
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x138]
call fcn.1402100fe
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x138], rax
jne 0x14044009d
cmp dword [0x14096c808], 0
je 0x140440099
jmp 0x140440113
jmp 0x140440109
cmp qword [rsp + 0x148], 0
je 0x1404400b8
mov rax, qword [rsp + 0x148]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
cmp qword [rsp + 0x150], 0
je 0x1404400d6
mov rax, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x138]
mov qword [rax], rcx
mov ecx, 0x30
call fcn.14020a6c2
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1404401c5
mov dword [rsp + 0x30], 0xc0000017
mov eax, dword [rsp + 0x30]
mov dword [0x14096c814], eax
cmp qword [rsp + 0x40], 0
je 0x140440148
mov rcx, qword [rsp + 0x40]
call fcn.1404418f0
mov qword [rsp + 0x40], 0
cmp qword [rsp + 0x140], 0
je 0x140440148
mov rax, qword [rsp + 0x140]
mov qword [rax], 0
cmp qword [rsp + 0x48], 0
je 0x140440179
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x110], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x110]
call fcn.1402123cc
nop
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0x150], 0
je 0x140440193
mov rax, qword [rsp + 0x150]
mov qword [rax], 0
cmp qword [rsp + 0x148], 0
je 0x1404401ad
mov rax, qword [rsp + 0x148]
mov qword [rax], 0
mov rax, qword [rsp + 0x130]
mov qword [0x14096c818], rax
mov eax, dword [rsp + 0x30]
jmp 0x1404405b5
mov rcx, qword [rsp + 0x38]
call fcn.140441630
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1404401e9
mov dword [rsp + 0x30], 0xc0000017
jmp 0x140440109
cmp qword [rsp + 0x140], 0
je 0x140440204
mov rax, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
mov rax, qword [rsp + 0x40]
add rax, 0x40
mov r8d, 8
xor edx, edx
mov rcx, rax
call fcn.1402118af
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
add rax, 0x1e
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x78], 5
mov dword [rsp + 0x7c], 0
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x74], eax
jae 0x140440372
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x94], 0
lea rax, [rsp + 0x94]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rsp + 0x50]
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
call fcn.14020a53c
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x94]
add rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x7c]
movzx ecx, byte [rsp + 0x74]
and cl, 7
mov rdx, qword [rsp + 0x40]
movzx eax, byte [rdx + rax + 0x40]
and al, 0xf8
or al, cl
mov ecx, dword [rsp + 0x7c]
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx + 0x40], al
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x7c]
and al, 0x1f
shl al, 3
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx + 0x40]
and cl, 7
or cl, al
movzx eax, cl
mov ecx, dword [rsp + 0x7c]
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx + 0x40], al
mov eax, dword [rsp + 0x7c]
inc eax
mov dword [rsp + 0x7c], eax
mov eax, dword [rsp + 0x7c]
cmp rax, 8
jb 0x14044035a
jmp 0x140440372
mov rcx, qword [rsp + 0x80]
call fcn.14020d313
test eax, eax
je 0x14044036d
jmp 0x140440372
jmp 0x140440257
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x74], eax
jae 0x1404403c7
mov rcx, qword [rsp + 0x50]
call fcn.14020a690
mov dword [rsp + 0xa4], eax
cmp dword [rsp + 0xa4], 0
jne 0x140440399
jmp 0x1404403c7
movsxd rax, dword [rsp + 0xa4]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x74], eax
jmp 0x140440372
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x74], eax
jb 0x1404403db
mov eax, dword [rsp + 0x7c]
cmp rax, 8
jbe 0x1404403f8
mov dword [rsp + 0x30], 0xc0000141
cmp dword [0x14096c808], 0
je 0x1404403f3
jmp 0x140440113
jmp 0x140440109
mov rax, qword [rsp + 0x68]
cmp qword [rsp + 0x58], rax
jbe 0x140440405
int3
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x40]
mov byte [rcx + 0x1e], al
mov rax, qword [rsp + 0x40]
movzx ecx, byte [rsp + 0x74]
mov byte [rax + 0x3e], cl
mov eax, dword [rsp + 0x74]
mov rcx, qword [rsp + 0x40]
add rcx, 0x20
mov r8d, eax
mov rdx, qword [rsp + 0x38]
call fcn.14020eed9
nop
mov eax, dword [rsp + 0x74]
mov ecx, dword [rsp + 0x78]
mov edx, 0x1e
sub rdx, rcx
mov rcx, rdx
cmp rax, rcx
jbe 0x14044046a
mov dword [rsp + 0x30], 0xc0000008
jmp 0x140440109
mov eax, dword [rsp + 0x74]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x48], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x138]
mov qword [rax + 0x50], rcx
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0x1e]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x40]
add rax, 0x48
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call fcn.14020f460
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
call fcn.14021202a
mov qword [rsp + 0x58], rax
mov dword [rsp + 0xb4], 0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xd8], rax
mov eax, dword [rsp + 0x74]
mov qword [rsp + 0xf8], rax
lea rax, [rsp + 0xb4]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
lea r8, [rsp + 0xf8]
lea rdx, [rsp + 0xd8]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov dword [rsp + 0xa8], eax
cmp dword [rsp + 0xa8], 0
jge 0x140440550
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x30], eax
jmp 0x140440109
mov rax, qword [rsp + 0x48]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x130]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0xb4]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0x48]
mov rcx, qword [0x14096c828]
mov qword [rax], rcx
mov rax, qword [rsp + 0x48]
mov qword [0x14096c828], rax
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1407c4cb0]
call fcn.1402124fd
mov rax, rdi
add rsp, 0x120
pop rdi
ret