Function at 0x14001fd50
Capabilities:
Allocate or change rwx memory
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov r13, rdx
mov rdx, rcx
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov qword [r11 - 0x78], rbx
mov edi, ebx
mov qword [r11 - 0x70], rbx
xor cl, cl
mov byte [r11 + 0x20], cl
mov byte [rsp + 0x30], cl
mov eax, ebx
mov qword [rdx], rbx
mov r12, r13
mov qword [r11 - 0x78], r13
mov ecx, 0x5a4d
cmp word [r13], cx
jne 0x14001fe0f
movsxd rdi, dword [r13 + 0x3c]
add rdi, r13
mov qword [r11 - 0x70], rdi
cmp dword [rdi], 0x4550
jne 0x14001fe0f
test byte [rdi + 0x38], 1
jne 0x14001fe0f
cmp dword [rdi + 0xfc], ebx
je 0x14001fdd7
cmp dword [rdi + 0xf8], ebx
je 0x14001fdd7
mov cl, 1
jmp 0x14001fdd9
xor cl, cl
mov byte [rsp + 0xf8], cl
mov byte [rsp + 0x30], cl
mov ecx, 0x8664
mov r15d, 0x2000
mov esi, 0xc000007b
cmp word [rdi + 4], cx
je 0x14001fe01
mov eax, 0x4000000e
jmp 0x14001fe1c
test word [rdi + 0x16], r15w
jne 0x14001fe20
mov eax, 0xc00000bb
jmp 0x14001fe1c
mov esi, 0xc000007b
mov eax, esi
mov r15d, 0x2000
mov dword [rsp + 0x34], eax
jmp 0x14001fe56
test eax, eax
js 0x1400203d3
cmp eax, 0x4000000e
je 0x1400203d3
mov edx, dword [rdi + 0x50]
mov r9d, 4
mov r8d, 0x1000
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x14001feb4
test byte [rdi + 0x5e], 0x40
je 0x14001feb4
mov edx, dword [rdi + 0x50]
lea r9d, [rax + 4]
mov r8d, r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14001fef3
mov ecx, dword [0x140388f64]
lea edx, [rcx + 0x39]
add edx, dword [rdi + 0x54]
lea eax, [rcx - 1]
not eax
and rdx, rax
mov r9d, 4
mov r8d, 0x1000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, r14
test rax, rax
jne 0x14001fefd
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 0xc0000017
jmp 0x1400203d3
movsxd rax, dword [r12 + 0x3c]
add rax, r14
mov qword [rsp + 0x38], rax
mov r8d, dword [rdi + 0x54]
mov rdx, r12
call fcn.14023ffe0
mov r10, qword [rsp + 0x38]
mov qword [r10 + 0x30], r14
mov r12d, dword [rdi + 0x54]
add r12, r14
mov qword [rsp + 0x40], r12
mov qword [r12 + 8], rbx
mov qword [r12 + 0x18], rbx
mov qword [r12 + 0x20], rbx
mov qword [r12 + 0x28], rbx
mov dword [r12 + 0x34], ebx
mov qword [r12 + 0x10], r14
mov eax, dword [rsp + 0xf0]
mov dword [r12 + 0x30], eax
movabs rax, 0xaabbcc11ffee00
mov qword [r12], rax
mov eax, dword [rdi + 0x54]
mov dword [r12 + 8], eax
mov qword [r12 + 0x18], r13
movzx eax, word [r10 + 0x14]
add rax, 0x28
mov r15d, ebx
cmp bx, word [r10 + 6]
jae 0x14001fff7
lea rbx, [rax + r10]
nop word [rax + rax]
mov ecx, dword [r10 + 0x38]
lea edx, [rcx + 1]
add edx, dword [rbx - 8]
neg ecx
and edx, ecx
cmp edx, dword [rbx]
jb 0x1400203c9
mov ecx, dword [rbx - 4]
add rcx, qword [r10 + 0x30]
mov r9d, 4
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140020076
mov ecx, dword [rbx]
test ecx, ecx
je 0x14001ffdf
mov r8d, ecx
mov edx, dword [rbx + 4]
add rdx, r13
mov rcx, rax
call fcn.14023ffe0
inc r15d
add rbx, 0x28
mov r10, qword [rsp + 0x38]
movzx eax, word [r10 + 6]
cmp r15d, eax
jb 0x14001ff90
xor ebx, ebx
mov r11, qword [r10 + 0x30]
sub r11, qword [rdi + 0x30]
je 0x1400200b5
mov eax, dword [r10 + 0xb0]
lea r8, [r14 + rax]
cmp dword [r10 + 0xb4], 0
je 0x1400200b5
test eax, eax
je 0x1400200b5
cmp dword [r8], 0
jbe 0x1400200b5
lea r9, [r8 + 8]
mov r10d, ebx
mov ecx, dword [r8 + 4]
lea eax, [rcx - 8]
test eax, 0xfffffffe
jbe 0x1400200a5
nop word [rax + rax]
movzx ecx, word [r9]
movzx eax, cx
shr ecx, 0xc
cmp ecx, 3
je 0x140020080
cmp ecx, 0xa
jne 0x140020090
and eax, 0xfff
mov edx, dword [r8]
lea rcx, [r14 + rax]
add qword [rdx + rcx], r11
jmp 0x140020090
mov esi, 0xc0000017
jmp 0x1400203c9
and eax, 0xfff
mov edx, dword [r8]
lea rcx, [r14 + rax]
add dword [rdx + rcx], r11d
inc r10d
add r9, 2
mov ecx, dword [r8 + 4]
lea eax, [rcx - 8]
shr eax, 1
cmp r10d, eax
jb 0x140020050
mov eax, ecx
add r8, rax
cmp dword [r8], 0
ja 0x140020030
mov r10, qword [rsp + 0x38]
mov r15, rbx
mov r13d, ebx
lea rcx, [r10 + 0x90]
mov rax, rbx
mov qword [rsp + 0x70], rbx
mov esi, ebx
mov dword [rsp + 0x34], ebx
test rcx, rcx
je 0x1400200f2
cmp dword [rcx + 4], 0
je 0x1400200f2
mov r15d, dword [rcx]
add r15, qword [r10 + 0x30]
mov qword [rsp + 0x90], r15
mov rax, r15
mov qword [rsp + 0x70], rax
test rax, rax
je 0x140020110
cmp dword [rax + 0xc], 0
je 0x140020110
inc r13d
mov dword [rsp + 0x78], r13d
add rax, 0x14
mov qword [rsp + 0x70], rax
jmp 0x1400200f7
test r15, r15
je 0x140020234
test r13d, r13d
je 0x140020234
mov ebx, r13d
mov eax, 8
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140214374
mov rdi, qword [rsp + 0x40]
mov qword [rdi + 0x20], rax
lea r8, [rbx*8]
xor edx, edx
mov rcx, rax
call fcn.140240680
xor ecx, ecx
mov eax, ecx
mov dword [rsp + 0x48], eax
cmp eax, r13d
jae 0x140020228
mov ecx, dword [r15 + 0xc]
add rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r12, rax
test rax, rax
jne 0x14002018b
mov esi, 0xc0000135
jmp 0x140020224
mov ecx, dword [rdi + 0x28]
mov rax, qword [rdi + 0x20]
mov qword [rax + rcx*8], r12
inc dword [rdi + 0x28]
mov eax, dword [r15]
test eax, eax
jne 0x1400201a4
mov eax, dword [r15 + 0x10]
mov ebx, eax
add rbx, r14
mov qword [rsp + 0x80], rbx
mov edi, dword [r15 + 0x10]
add rdi, r14
mov qword [rsp + 0x88], rdi
mov rax, qword [rbx]
test rax, rax
je 0x140020208
jns 0x1400201cf
movzx edx, ax
jmp 0x1400201d6
lea rdx, [r14 + 2]
add rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi], rax
test rax, rax
jne 0x1400201ee
mov esi, 0xc0000139
jmp 0x140020224
add rbx, 8
mov qword [rsp + 0x80], rbx
add rdi, 8
mov qword [rsp + 0x88], rdi
jmp 0x1400201c0
mov eax, dword [rsp + 0x48]
inc eax
add r15, 0x14
mov qword [rsp + 0x90], r15
mov rdi, qword [rsp + 0x40]
jmp 0x14002015f
mov dword [rsp + 0x34], esi
mov r12, qword [rsp + 0x40]
xor ebx, ebx
mov r10, qword [rsp + 0x38]
mov r11, 0xffffffffffffffff
movzx edi, byte [rsp + 0xf8]
jmp 0x14002026a
test esi, esi
jns 0x1400202b5
cmp dword [r12 + 0x28], 0
jbe 0x14002029a
nop word [rax + rax]
mov eax, ebx
mov rcx, qword [r12 + 0x20]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
inc ebx
cmp ebx, dword [r12 + 0x28]
jb 0x140020280
mov rcx, qword [r12 + 0x20]
call fcn.140214330
xor ecx, ecx
mov qword [r12 + 0x20], rcx
mov dword [r12 + 0x28], ecx
jmp 0x1400203c9
movzx eax, word [r10 + 0x14]
add rax, 0x3c
cmp bx, word [r10 + 6]
jae 0x1400203b1
lea rbx, [rax + r10]
lea r15, [0x14033fed0]
nop dword [rax]
nop dword [rax + rax]
mov r9d, dword [rbx - 0x18]
add r9, r14
mov qword [rsp + 0x98], r9
mov ecx, dword [r10 + 0x38]
mov edx, dword [rbx - 0x1c]
inc rdx
add rdx, rcx
lea rax, [rcx - 1]
not rax
and rdx, rax
mov qword [rsp + 0x40], rdx
mov eax, dword [rbx]
mov r8d, eax
bt eax, 0x19
jae 0x14002032c
test dil, dil
jne 0x14002032c
mov r8d, 0x4000
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x140020388
mov rcx, r8
shr rcx, 0x1d
and ecx, 1
shr rax, 0x1e
and eax, 1
lea rcx, [rax + rcx*2]
mov rax, r8
shr rax, 0x1f
lea rcx, [rax + rcx*2]
mov r9d, dword [r15 + rcx*4]
bts r9d, 9
bt r8d, 0x1a
cmovae r9d, dword [r15 + rcx*4]
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x98]
mov rcx, r11
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov esi, eax
test eax, eax
js 0x1400203b1
mov rcx, qword [rsp + 0x50]
inc ecx
mov qword [rsp + 0x50], rcx
add rbx, 0x28
mov r10, qword [rsp + 0x38]
movzx eax, word [r10 + 6]
cmp ecx, eax
mov r11, 0xffffffffffffffff
jb 0x1400202e0
test esi, esi
js 0x1400203c9
mov rax, qword [rsp + 0xe0]
mov qword [rax], r14
jmp 0x1400203d1
mov rcx, r14
call fcn.1400203f0
mov eax, esi
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret