Function at 0x14001d060
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
test r9, r9
je 0x14001d3d7
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x140069798]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov r14, r9
mov rdi, r8
mov rbx, rdx
mov r15, rcx
test r8, r8
je 0x14001d3b7
xor r12d, r12d
mov rax, qword [0x14006b5e8]
test rax, rax
jne 0x14001d0df
mov ecx, 0x1d0
call fcn.140024c18
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14001d0d5
mov rcx, rax
call fcn.1400149f0
jmp 0x14001d0d8
mov rax, r12
mov qword [0x14006b5e8], rax
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001d0ec
mov rdx, qword [rbx]
mov rcx, rax
call fcn.1400194c0
cmp eax, 2
jne 0x14001d3b7
mov dword [rsp + 0x30], r12d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8d, r9d
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14001d3b7
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
lea r8, [rsp + 0x70]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14001d3b7
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
mov r8d, 0x40
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14001d3b7
mov eax, 0x5a4d
cmp word [rsp + 0x70], ax
jne 0x14001d3b7
movsxd rsi, dword [rbp - 0x54]
add rsi, r14
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8d, 0x108
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14001d3b7
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x108
lea r8, [rbp - 0x50]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14001d3b7
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
mov r8d, 0x108
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14001d3b7
cmp dword [rbp - 0x50], 0x4550
jne 0x14001d3b7
xor r8b, r8b
mov ecx, 0x20b
movzx eax, word [rbp - 0x38]
cmp ax, cx
jne 0x14001d235
mov r8b, 1
jmp 0x14001d243
mov ecx, 0x10b
cmp ax, cx
jne 0x14001d3b7
mov edx, dword [rbp - 0x28]
mov ecx, dword [rbp - 0x24]
cmp edx, ecx
jb 0x14001d3b7
add ecx, dword [rbp - 0x34]
cmp edx, ecx
ja 0x14001d3b7
lea rsi, [r14 + rdx]
lea rax, [rsp + 0x30]
mov r9d, 0x40
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rax
test r8b, r8b
je 0x14001d2c0
lea r8d, [r9 - 0x3a]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14001d3b7
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 6
lea r8, [0x140069270]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14001d3b7
mov r8d, 6
jmp 0x14001d305
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14001d3b7
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [0x140069268]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14001d3b7
mov r8d, 8
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14001d3b7
cmp qword [rbx + 0x18], 8
jb 0x14001d332
mov rbx, qword [rbx]
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r12w
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x14001d352
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400022a0
nop
lea rdx, [rsp + 0x48]
mov rcx, r15
call fcn.140017200
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14001d3b7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001d3b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001d3d8
call fcn.140024eac
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140024fc0
add rsp, 0x1d0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14002b74c
int3