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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x1402b5020]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rax, qword [0x1402bfd08]
xor esi, esi
mov ebx, dword [rcx + 4]
xor r12b, r12b
mov r13d, dword [rcx + 8]
add rbx, rax
mov ebp, dword [rcx + 0xc]
add r13, rax
mov r15d, dword [rcx + 0x10]
lea r14, [rsi - 1]
add rbp, rax
mov qword [rsp + 0x30], rdx
add r15, rax
xor eax, eax
lock cmpxchg qword [r13], rsi
mov rdi, rax
jne 0x14002a53a
xor edx, edx
mov word [rsp + 0x60], si
mov r8d, 0x206
lea rcx, [rsp + 0x62]
call fcn.1401dff50
lea rcx, [rsp + 0x60]
mov rdx, r14
nop dword [rax]
inc rdx
cmp byte [rbx + rdx], sil
jne 0x14002a450
mov r8, rdx
and r8, 0xfffffffffffffffc
je 0x14002a49c
nop word [rax + rax]
movzx eax, byte [rbx]
mov word [rcx], ax
movzx eax, byte [rbx + 1]
mov word [rcx + 2], ax
movzx eax, byte [rbx + 2]
mov word [rcx + 4], ax
movzx eax, byte [rbx + 3]
add rbx, 4
mov word [rcx + 6], ax
add rcx, 8
sub r8, 4
jne 0x14002a470
and edx, 3
sub rdx, 1
je 0x14002a4cc
sub rdx, 1
je 0x14002a4bf
cmp rdx, 1
jne 0x14002a4d2
movzx eax, byte [rbx]
mov word [rcx], ax
add rcx, 2
inc rbx
movzx eax, byte [rbx]
mov word [rcx], ax
add rcx, 2
inc rbx
movzx eax, byte [rbx]
mov word [rcx], ax
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
jne 0x14002a537
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
jne 0x14002a537
cmp dword [0x1402b5e88], 0x3e
jae 0x14002a5e9
xor r8d, r8d
lea rcx, [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14002a5e9
mov r12b, 1
mov rax, qword [rsp + 0x30]
mov rcx, rdi
sub rax, rbp
mov r8, qword [rax + r15]
test r8, r8
jns 0x14002a557
xor edx, edx
call fcn.1401746e0
jmp 0x14002a56f
mov rax, qword [0x1402bfd08]
lea rdx, [rax + 2]
add rdx, r8
movzx r8d, word [r8 + rax]
call fcn.140174d40
mov r15, rax
test rax, rax
je 0x14002a5e9
mov rdx, qword [0x1402bfd08]
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14002a5e9
mov ecx, dword [rdx + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x14002a5e9
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14002a5e9
movzx r9d, word [rcx + 0x14]
movzx r10d, word [rcx + 6]
add r9, rcx
test r10d, r10d
je 0x14002a5e9
mov rcx, rsi
nop word [rax + rax]
mov r8d, dword [rcx + r9 + 0x24]
lea rbx, [r8 + rdx]
cmp rbp, rbx
jb 0x14002a5de
mov eax, dword [rcx + r9 + 0x28]
add rax, r8
add rax, rdx
cmp rbp, rax
jb 0x14002a616
inc esi
add rcx, 0x28
cmp esi, r10d
jb 0x14002a5c0
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401dd6a0
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov esi, dword ds:[r9 + rcx + 0x20]
test rbx, rbx
je 0x14002a5e9
test rsi, rsi
je 0x14002a5e9
mov qword ds:[rsp + 0x50], rsi
mov qword [rsp + 0x38], rbx
lock bts qword [0x1402be9a8], 0
jae 0x14002a64e
lea rcx, [0x1402be9a8]
call sym.SystemInformer.exe_PhfAcquireQueuedLockExclusive
mov eax, dword [0x1402be9a0]
inc eax
mov dword [0x1402be9a0], eax
cmp eax, 1
jne 0x14002a69a
lea rax, [0x1402b5a60]
mov r9d, 4
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
mov rcx, r14
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
test eax, eax
jns 0x14002a69a
lfence
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov rcx, r14
lock xadd qword [0x1402be9a8], rcx
movzx eax, cl
and al, 6
cmp al, 2
jne 0x14002a6ce
lea rax, [rcx - 1]
lea rdx, [rax + 4]
lock cmpxchg qword [0x1402be9a8], rdx
jne 0x14002a6ce
lea rcx, [0x1402be9a8]
call fcn.140169fe0
mov rcx, qword [rsp + 0x30]
mov rax, r15
xchg qword [rcx], rax
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x40], rbx
lock bts qword [0x1402be9a8], 0
jae 0x14002a6fb
lea rcx, [0x1402be9a8]
call sym.SystemInformer.exe_PhfAcquireQueuedLockExclusive
add dword [0x1402be9a0], 0xffffffff
jne 0x14002a728
mov r9d, dword [0x1402b5a60]
lea rax, [rsp + 0x48]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
lock xadd qword [0x1402be9a8], r14
movzx eax, r14b
and al, 6
cmp al, 2
jne 0x14002a75a
lea rax, [r14 - 1]
lea rdx, [rax + 4]
lock cmpxchg qword [0x1402be9a8], rdx
jne 0x14002a75a
lea rcx, [0x1402be9a8]
call fcn.140169fe0
mov rax, rdi
xchg qword [r13], rax
cmp rax, rdi
jne 0x14002a774
test r12b, r12b
je 0x14002a774
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, r15
jmp 0x14002a5eb