Function at 0x1400116a9
Capabilities:
Allocate or change rwx memory
Read file via mapping

Disassembly:
jmp 0x140017590
push rbp
push rdi
sub rsp, 0x478
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0xae
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14099a680]
xor rax, rbp
mov qword [rbp + 0x420], rax
lea rcx, [0x1409a1116]
call fcn.1400116c2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbp + 8], rax
lea rax, [rbp + 0x28]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rbp + 0x334]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rbp + 0x358]
lea rcx, [rbp + 0x334]
call fcn.140013ed0
mov rcx, rax
call fcn.140011622
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 0x58], rax
mov r9d, 0x18
lea r8, [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
mov rcx, qword [rbp + 8]
call fcn.1400111cc
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x78], rax
lea rax, [rbp + 0x384]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rbp + 0x3a8]
lea rcx, [rbp + 0x384]
call fcn.140013fb0
mov rcx, rax
call fcn.1400114b0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 0x98], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x1000002
xor edx, edx
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbp + 0xb8], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0xf8], rax
mov rax, qword [rbp + 0xf8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x118], rax
xor eax, eax
mov word [rbp + 0x134], ax
jmp 0x140017741
movzx eax, word [rbp + 0x134]
inc ax
mov word [rbp + 0x134], ax
movzx eax, word [rbp + 0x134]
mov rcx, qword [rbp + 0x118]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x1400178d5
mov rax, qword [rbp + 0x118]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0x118]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rbp + 0x134]
imul rcx, rcx, 0x28
add rax, rcx
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x3e4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rbp + 0x404]
lea rcx, [rbp + 0x3e4]
call fcn.140014020
mov rcx, rax
call fcn.1400116b3
mov rcx, qword [rbp + 0x158]
mov rdx, rax
call fcn.140011776
test eax, eax
jne 0x1400178d0
mov dword [rbp + 0x174], 0
mov rax, qword [rbp + 0x158]
mov eax, dword [rax + 8]
mov rcx, qword [rbp + 0x158]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rbp + 0x78]
add rdx, rcx
mov rcx, rdx
lea r9, [rbp + 0x174]
mov r8d, 0x40
mov edx, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140017816
mov byte [rbp + 0x414], 1
jmp 0x14001781d
mov byte [rbp + 0x414], 0
movzx eax, byte [rbp + 0x414]
mov byte [rbp + 0x194], al
mov rax, qword [rbp + 0x158]
mov eax, dword [rax + 8]
mov rcx, qword [rbp + 0x158]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rbp + 0xd8]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rbp + 0x158]
mov edx, dword [rdx + 0xc]
mov rdi, qword [rbp + 0x78]
add rdi, rdx
mov rdx, rdi
mov qword [rbp + 0x418], rdx
mov r8d, eax
mov rdx, rcx
mov rax, qword [rbp + 0x418]
mov rcx, rax
call fcn.14001132a
mov rax, qword [rbp + 0x158]
mov eax, dword [rax + 8]
mov rcx, qword [rbp + 0x158]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rbp + 0x78]
add rdx, rcx
mov rcx, rdx
lea r9, [rbp + 0x174]
mov r8d, dword [rbp + 0x174]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400178bc
mov byte [rbp + 0x414], 1
jmp 0x1400178c3
mov byte [rbp + 0x414], 0
movzx eax, byte [rbp + 0x414]
mov byte [rbp + 0x194], al
jmp 0x140017730
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [rbp - 0x40]
lea rdx, [0x140024100]
call fcn.14001159b
mov rcx, qword [rbp + 0x420]
xor rcx, rbp
call fcn.140011320
lea rsp, [rbp + 0x438]
pop rdi
pop rbp
ret