Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Get common file path
Read file via mapping

Disassembly:
test rdx, rdx
je 0x1400012fe
mov r11, rsp
push rbx
push r15
sub rsp, 0x4b8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rbx, rdx
mov r15, rcx
test rcx, rcx
je 0x1400012e4
mov qword [r11 - 0x18], rsi
lea rcx, [r11 - 0x258]
mov edx, 0x104
mov qword [r11 - 0x28], r12
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
movzx eax, word [rsp + 0x270]
lea rdx, [rsp + 0x58]
xor esi, esi
mov word [rsp + 0x58], ax
lea rcx, [rsp + 0x60]
mov word [rsp + 0x5a], si
call qword [sym.imp.SHLWAPI.dll_StrCpyW]
lea rdx, str.:WindowsSystem32_
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_StrCatW]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_StrCatW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r12, rax
test rax, rax
je 0x1400012d4
xorps xmm0, xmm0
lea r9d, [rsi + 0x18]
xor eax, eax
lea r8, [rsp + 0x40]
mov rdx, r12
mov qword [rsp + 0x50], rax
mov rcx, r15
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
test eax, eax
je 0x1400012cb
mov qword [rsp + 0x30], rsi
lea r8d, [rsi + 1]
mov dword [rsp + 0x28], esi
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov qword [rsp + 0x4e0], rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400012c3
mov qword [rsp + 0x28], rsi
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], esi
mov r8d, 0x1000002
mov qword [rsp + 0x490], r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r14, rax
test rax, rax
je 0x1400012b2
xor r9d, r9d
mov qword [rsp + 0x498], r13
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea edx, [rsi + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r13, rax
test rax, rax
je 0x1400012a1
mov rcx, qword [rsp + 0x40]
movzx ebx, si
mov qword [rsp + 0x4a8], rdi
movsxd rdi, dword [rcx + 0x3c]
add rdi, rcx
cmp si, word [rdi + 6]
jae 0x140001299
movzx ecx, word [rdi + 0x14]
add rcx, rdi
movzx eax, bx
lea rdx, [rax + rax*4]
lea rsi, [rcx + rdx*8]
lea rcx, [rsi + 0x18]
lea rdx, str..text
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x140001232
inc bx
cmp bx, word [rdi + 6]
jb 0x140001200
jmp 0x140001299
mov edi, dword [rsi + 0x24]
lea rax, [rsp + 0x5c]
add rdi, qword [rsp + 0x40]
mov r9d, 0x40
mov ebx, dword [rsi + 0x20]
mov rdx, rdi
mov r8d, ebx
mov qword [rsp + 0x20], rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r8d, dword [rsi + 0x24]
mov r9d, ebx
add r8, r13
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, dword [rsp + 0x5c]
lea rax, [rsp + 0x5c]
mov r8d, ebx
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rdi, qword [rsp + 0x4a8]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [rsp + 0x498]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x490]
mov rbp, qword [rsp + 0x4e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x4b0]
mov r12, qword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140001780
add rsp, 0x4b8
pop r15
pop rbx
ret