Function at 0x14001fd80
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 0x14001fe3f
movsxd rdi, dword [r13 + 0x3c]
add rdi, r13
mov qword [r11 - 0x70], rdi
cmp dword [rdi], 0x4550
jne 0x14001fe3f
test byte [rdi + 0x38], 1
jne 0x14001fe3f
cmp dword [rdi + 0xfc], ebx
je 0x14001fe07
cmp dword [rdi + 0xf8], ebx
je 0x14001fe07
mov cl, 1
jmp 0x14001fe09
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 0x14001fe31
mov eax, 0x4000000e
jmp 0x14001fe4c
test word [rdi + 0x16], r15w
jne 0x14001fe50
mov eax, 0xc00000bb
jmp 0x14001fe4c
mov esi, 0xc000007b
mov eax, esi
mov r15d, 0x2000
mov dword [rsp + 0x34], eax
jmp 0x14001fe86
test eax, eax
js 0x140020403
cmp eax, 0x4000000e
je 0x140020403
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 0x14001fee4
test byte [rdi + 0x5e], 0x40
je 0x14001fee4
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 0x14001ff23
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 0x14001ff2d
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 0xc0000017
jmp 0x140020403
movsxd rax, dword [r12 + 0x3c]
add rax, r14
mov qword [rsp + 0x38], rax
mov r8d, dword [rdi + 0x54]
mov rdx, r12
call fcn.140240000
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 0x140020027
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 0x1400203f9
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 0x1400200a6
mov ecx, dword [rbx]
test ecx, ecx
je 0x14002000f
mov r8d, ecx
mov edx, dword [rbx + 4]
add rdx, r13
mov rcx, rax
call fcn.140240000
inc r15d
add rbx, 0x28
mov r10, qword [rsp + 0x38]
movzx eax, word [r10 + 6]
cmp r15d, eax
jb 0x14001ffc0
xor ebx, ebx
mov r11, qword [r10 + 0x30]
sub r11, qword [rdi + 0x30]
je 0x1400200e5
mov eax, dword [r10 + 0xb0]
lea r8, [r14 + rax]
cmp dword [r10 + 0xb4], 0
je 0x1400200e5
test eax, eax
je 0x1400200e5
cmp dword [r8], 0
jbe 0x1400200e5
lea r9, [r8 + 8]
mov r10d, ebx
mov ecx, dword [r8 + 4]
lea eax, [rcx - 8]
test eax, 0xfffffffe
jbe 0x1400200d5
nop word [rax + rax]
movzx ecx, word [r9]
movzx eax, cx
shr ecx, 0xc
cmp ecx, 3
je 0x1400200b0
cmp ecx, 0xa
jne 0x1400200c0
and eax, 0xfff
mov edx, dword [r8]
lea rcx, [r14 + rax]
add qword [rdx + rcx], r11
jmp 0x1400200c0
mov esi, 0xc0000017
jmp 0x1400203f9
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 0x140020080
mov eax, ecx
add r8, rax
cmp dword [r8], 0
ja 0x140020060
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 0x140020122
cmp dword [rcx + 4], 0
je 0x140020122
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 0x140020140
cmp dword [rax + 0xc], 0
je 0x140020140
inc r13d
mov dword [rsp + 0x78], r13d
add rax, 0x14
mov qword [rsp + 0x70], rax
jmp 0x140020127
test r15, r15
je 0x140020264
test r13d, r13d
je 0x140020264
mov ebx, r13d
mov eax, 8
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1402143a4
mov rdi, qword [rsp + 0x40]
mov qword [rdi + 0x20], rax
lea r8, [rbx*8]
xor edx, edx
mov rcx, rax
call fcn.1402406a0
xor ecx, ecx
mov eax, ecx
mov dword [rsp + 0x48], eax
cmp eax, r13d
jae 0x140020258
mov ecx, dword [r15 + 0xc]
add rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r12, rax
test rax, rax
jne 0x1400201bb
mov esi, 0xc0000135
jmp 0x140020254
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 0x1400201d4
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 0x140020238
jns 0x1400201ff
movzx edx, ax
jmp 0x140020206
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 0x14002021e
mov esi, 0xc0000139
jmp 0x140020254
add rbx, 8
mov qword [rsp + 0x80], rbx
add rdi, 8
mov qword [rsp + 0x88], rdi
jmp 0x1400201f0
mov eax, dword [rsp + 0x48]
inc eax
add r15, 0x14
mov qword [rsp + 0x90], r15
mov rdi, qword [rsp + 0x40]
jmp 0x14002018f
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 0x14002029a
test esi, esi
jns 0x1400202e5
cmp dword [r12 + 0x28], 0
jbe 0x1400202ca
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 0x1400202b0
mov rcx, qword [r12 + 0x20]
call fcn.140214360
xor ecx, ecx
mov qword [r12 + 0x20], rcx
mov dword [r12 + 0x28], ecx
jmp 0x1400203f9
movzx eax, word [r10 + 0x14]
add rax, 0x3c
cmp bx, word [r10 + 6]
jae 0x1400203e1
lea rbx, [rax + r10]
lea r15, [0x14033feb0]
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 0x14002035c
test dil, dil
jne 0x14002035c
mov r8d, 0x4000
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1400203b8
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 0x1400203e1
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 0x140020310
test esi, esi
js 0x1400203f9
mov rax, qword [rsp + 0xe0]
mov qword [rax], r14
jmp 0x140020401
mov rcx, r14
call fcn.140020420
mov eax, esi
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret