Function at 0x180018034
Capabilities:
Allocate or change rwx memory
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1e8]
sub rsp, 0x2c0
movaps xmmword [rax - 0x38], xmm6
lea rcx, [rsp + 0x40]
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp - 0x70], rax
movabs rdi, 0x9ead7275034fe1de
movups xmmword [rbp - 0x80], xmm0
mov qword [rsp + 0x58], rdi
movabs rax, 0xb199692a336a19f9
mov qword [rsp + 0x40], rax
movabs r13, 0xb1f5694e331e1997
movabs rax, 0x6bad62fb39081040
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x48], rax
movabs r14, 0x6bc1629f3926102c
movups xmm0, xmmword [rsp + 0x40]
movabs rax, 0xc935ac473cdbe8d
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x50], rax
movabs r15, 0xc935ac473cdbee1
movups xmm1, xmmword [rsp + 0x50]
mov qword [rsp + 0x70], r15
pxor xmm0, xmmword [rsp + 0x60]
mov qword [rsp + 0x78], rdi
pxor xmm1, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x50], xmm1
movdqa xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
xor r12d, r12d
mov rbx, rax
test rax, rax
je 0x18001832e
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea r9d, [r12 + 0x18]
mov rdx, rbx
mov rcx, rax
lea r8, [rbp - 0x80]
call qword [sym.imp.KERNEL32.DLL_K32GetModuleInformation]
mov rsi, qword [rbp - 0x80]
lea rcx, [rbp - 0x60]
xor edx, edx
mov r8d, 0x208
call sub.ntdll.dll_memset
mov edx, 0x104
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x18001832e
mov qword [rsp + 0x58], rdi
lea rdx, [rsp + 0x40]
movabs rax, 0xb191693a337019cb
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x40], rax
lea rcx, [rbp - 0x60]
movabs rax, 0x6ba562b1394a1040
mov qword [rsp + 0x68], r14
movdqa xmm0, xmmword [rsp + 0x60]
mov qword [rsp + 0x48], rax
movabs rax, 0xc935ac473a1be8d
movups xmm1, xmmword [rsp + 0x40]
mov qword [rsp + 0x50], rax
movups xmm2, xmmword [rsp + 0x50]
mov qword [rsp + 0x70], r15
pxor xmm0, xmm1
mov qword [rsp + 0x78], rdi
pxor xmm2, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x50], xmm2
movdqa xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 1]
mov dword [rsp + 0x28], r12d
lea rcx, [rbp - 0x60]
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
test rax, rax
je 0x18001832e
mov qword [rsp + 0x28], r12
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r12d
mov r8d, 0x1000002
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
test rax, rax
je 0x18001832e
xor r9d, r9d
mov qword [rsp + 0x20], r12
xor r8d, r8d
lea edx, [r12 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov r15, rax
test rax, rax
je 0x18001832e
movsxd rbx, dword [rsi + 0x3c]
movzx edi, r12w
add rbx, rsi
cmp r12w, word [rbx + 6]
jae 0x18001832e
movabs rax, 0xb1f5693a4b7b6db9
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x60], rax
lea r13d, [r12 + 1]
mov qword [rsp + 0x68], r14
movups xmm6, xmmword [rsp + 0x60]
mov qword [rsp + 0x48], r14
movzx ecx, word [rbx + 0x14]
movdqa xmm0, xmm6
pxor xmm0, xmmword [rsp + 0x40]
add rcx, rbx
movzx eax, di
movdqa xmmword [rsp + 0x60], xmm0
lea rdx, [rax + rax*4]
lea r14, [rcx + rdx*8]
lea rcx, [r14 + 0x18]
lea rdx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_strcmp]
test eax, eax
jne 0x180018320
mov ecx, dword [r14 + 0x24]
lea r9, [rbp + 0x1f0]
mov edx, dword [r14 + 0x20]
lea r8d, [rax + 0x40]
add rcx, rsi
mov dword [rbp + 0x1f0], r12d
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
mov eax, dword [r14 + 0x24]
mov r8d, dword [r14 + 0x20]
lea rdx, [r15 + rax]
lea rcx, [rsi + rax]
call qword [sym.imp.ntdll.dll_memcpy]
mov ecx, dword [r14 + 0x24]
lea r9, [rbp + 0x1f0]
mov edx, dword [r14 + 0x20]
add rcx, rsi
mov r8d, dword [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
add di, r13w
cmp di, word [rbx + 6]
jb 0x180018293
lea r11, [rsp + 0x2c0]
xor eax, eax
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret