Function at 0x18006db00
Capabilities:
Encode data using xor
Hash data using fnv
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x630]
sub rsp, 0x730
mov rax, qword [0x180141040]
xor rax, rsp
mov qword [rbp + 0x620], rax
mov rbx, rcx
lea rcx, [rbp + 0x410]
call fcn.180050760
test al, al
je 0x18006e586
cmp word [rbp + 0x410], 0
lea rax, [rbp + 0x410]
je 0x18006db6a
nop dword [rax + rax]
add rax, 2
cmp word [rax], 0
jne 0x18006db60
movzx ecx, word [rbx]
test cx, cx
je 0x18006db90
sub rbx, rax
nop word [rax + rax]
mov word [rax], cx
add rax, 2
movzx ecx, word [rax + rbx]
test cx, cx
jne 0x18006db80
xor r15d, r15d
lea rcx, [rbp + 0x410]
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov r8d, 1
mov dword [rsp + 0x20], 2
mov word [rax], r15w
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x60], rax
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x18006e586
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x68], rax
lea rcx, [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
movabs rax, 0xe53a5f4a4dfa664e
lea r9, [rbp + 0x30]
mov qword [rsp + 0x40], rax
lea r8, [rbp + 0x3c0]
mov rcx, qword [rsp + 0x40]
movabs rax, 0x970dcb4791465117
mov qword [rbp + 0x3c0], rcx
movabs r13, 0xc017326f609e4315
mov qword [rsp + 0x40], rax
movabs rcx, 0xd2f5b95e230585a2
mov rax, qword [rsp + 0x40]
movabs r12, 0xe46ceb1ac563714e
mov qword [rbp + 0x3c8], rax
mov edx, 0x40
movabs rax, 0x96a01c5484daff47
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x3d0], rax
movabs rax, 0x6d8c3a2d874e18e8
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x3d8], rax
movabs rax, 0x69a8e2e9ff698c1d
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x3e0], rax
mov qword [rsp + 0x40], rcx
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x3e8], rax
mov qword [rsp + 0x40], r13
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x390], rax
mov qword [rsp + 0x40], r12
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x398], rax
movabs rax, 0xea807d3dfca39737
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x3a0], rax
movabs rax, 0x4ded5748ef2d6bc8
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x3a8], rax
movabs rax, 0x69a8e8e38f04f979
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x3b0], rax
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x10]
mov rax, qword [rsp + 0x40]
vmovups ymm1, ymmword [rbp + 0x3c0]
vpxor ymm1, ymm1, ymmword [rbp + 0x390]
vmovups ymmword [rbp + 0x3c0], ymm1
vmovdqu xmm1, xmmword [rbp + 0x3e0]
mov qword [rbp + 0x3b8], rax
vpxor xmm2, xmm1, xmmword [rbp + 0x3b0]
vmovdqu xmmword [rbp + 0x3e0], xmm2
vzeroupper
call fcn.180054c20
lea rcx, [rbp - 0x10]
lea rax, [rbp - 0x10]
mov r8d, ecx
cmp byte [rbp - 0x10], r15b
je 0x18006dd9b
nop dword [rax]
inc rax
mov r8, rax
cmp byte [rax], r15b
jne 0x18006dd90
sub r8d, ecx
mov qword [rsp + 0x20], r15
mov rcx, r14
lea rdx, [rbp - 0x10]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
movabs rax, 0xa439460105f72f76
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x30], rax
movabs rax, 0xe46ceb1ac5631d22
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x28], rax
mov qword [rsp + 0x40], r13
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x40], r12
mov rax, qword [rsp + 0x40]
vmovdqu xmm0, xmmword [rbp - 0x30]
mov rcx, qword [0x180142100]
mov qword [rbp - 0x68], rax
vpxor xmm1, xmm0, xmmword [rbp - 0x70]
vmovdqu xmmword [rbp - 0x30], xmm1
mov rax, qword [rcx]
mov r9, qword [rax + 0x68]
call r9
mov qword [rsp + 0x58], rax
mov rdi, rax
test rax, rax
je 0x18006e586
movsxd rbx, dword [rax + 0x594]
mov dl, 1
mov qword [rsp + 0x760], rsi
call fcn.180072d40
mov rsi, rax
lea rdx, [rbp - 0x60]
movabs rax, 0xc035120b0eeb2c73
mov r8d, edx
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
mov qword [rbp - 0x60], rcx
mov qword [rsp + 0x40], r12
mov rcx, qword [rsp + 0x40]
mov qword [rbp - 0x58], rcx
mov qword [rsp + 0x40], r13
mov rcx, qword [rsp + 0x40]
mov qword [rbp - 0x70], rcx
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x40], r12
mov rax, qword [rsp + 0x40]
vmovdqu xmm0, xmmword [rbp - 0x60]
mov qword [rbp - 0x68], rax
vpxor xmm1, xmm0, xmmword [rbp - 0x70]
vmovq rax, xmm1
vmovdqu xmmword [rbp - 0x60], xmm1
test al, al
je 0x18006dec0
inc rcx
mov r8, rcx
cmp byte [rcx], r15b
jne 0x18006deb5
mov rcx, qword [0x180141318]
sub r8d, edx
lea rdx, [rbp - 0x60]
mov qword [rsp + 0x20], r15
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
movzx eax, word [rsi + 8]
test al, 4
je 0x18006def3
lea rdi, [0x1801301b4]
mov r9d, 0x10
jmp 0x18006df25
test al, 0x10
je 0x18006df10
mov r9d, 8
lea rdx, [rbp + 0x3c2]
mov ecx, ebx
call fcn.18006ea80
mov rdx, rax
jmp 0x18006df54
test al, 0x20
je 0x18006e374
lea rdi, [0x1801301b8]
mov r9d, 2
lea rdx, [rbp + 0x3c2]
mov ecx, ebx
call fcn.18006ea80
test byte [rsi + 8], 2
mov rcx, rax
mov rdx, rax
je 0x18006df4f
movzx eax, byte [rdi + 1]
mov byte [rdx - 1], al
lea rdx, [rdx - 2]
movzx eax, byte [rdi]
mov byte [rdx], al
mov rdi, qword [rsp + 0x58]
test ebx, ebx
js 0x18006df69
mov eax, 0x400
test word [rsi + 8], ax
je 0x18006df69
dec rdx
mov byte [rdx], 0x2b
mov rcx, qword [0x180141318]
lea r8, [rbp + 0x402]
xor esi, esi
sub r8d, edx
xor r9d, r9d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
movabs rax, 0xa17a570703ed6337
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x40], rax
lea rcx, [rbp - 0x50]
mov rax, qword [rsp + 0x40]
mov r8d, edx
mov qword [rbp - 0x50], rax
movabs rax, 0x97099869a40f126e
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x48], rax
movabs rax, 0x9fe41250dccdfe17
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x40], rax
movabs rax, 0x4ded5748ef2d0ea4
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp - 0x38], rax
mov qword [rsp + 0x40], r13
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x390], rax
mov qword [rsp + 0x40], r12
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x398], rax
movabs rax, 0xea807d3dfca39737
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x3a0], rax
movabs rax, 0x4ded5748ef2d6bc8
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
vmovdqu xmm0, xmmword [rbp - 0x50]
vpxor xmm2, xmm0, xmmword [rbp + 0x390]
vmovdqu xmm0, xmmword [rbp - 0x40]
mov qword [rbp + 0x3a8], rax
vpxor xmm1, xmm0, xmmword [rbp + 0x3a0]
vmovq rax, xmm2
vmovdqu xmmword [rbp - 0x40], xmm1
vmovdqu xmmword [rbp - 0x50], xmm2
test al, al
je 0x18006e08b
nop word [rax + rax]
inc rcx
mov r8, rcx
cmp byte [rcx], sil
jne 0x18006e080
mov rcx, qword [0x180141318]
sub r8d, edx
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, 0xffffffffffffffff
lea edx, [rbx + 1]
mov r9, rax
mov eax, 8
mul rdx
cmovb rax, rcx
xor edx, edx
mov r8, rax
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r10, rbx
mov qword [rsp + 0x70], rax
mov r15, rax
lea r11, [rdi + 0x5e8]
mov rbx, rsi
mov r9d, esi
mov r8d, esi
mov rdx, rsi
mov rcx, qword [r11]
test rcx, rcx
je 0x18006e11e
nop word [rax + rax]
sub r9d, 1
jns 0x18006e115
mov qword [rax + rdx*8], rcx
inc r8d
inc rdx
cmp rdx, r10
jge 0x18006e12e
mov rcx, qword [rcx + 0x20]
test rcx, rcx
jne 0x18006e100
inc rbx
add r11, 0x28
cmp rbx, 0x100
jl 0x18006e0f2
movsxd rax, r8d
mov qword [rbp - 0x60], rax
test r8d, r8d
jle 0x18006e558
mov r12, rsi
mov qword [rsp + 0x40], rsi
movabs rbx, 0x100000001b3
mov rax, qword [r15 + r12*8]
test rax, rax
je 0x18006e546
mov r13, qword [rax + 0x10]
test r13, r13
je 0x18006e546
mov rax, qword [rdi]
lea rdx, [rsp + 0x50]
mov r8, qword [r13 + 8]
mov rcx, rdi
call qword [rax + 0x10]
mov r8, qword [rsp + 0x50]
test r8, r8
je 0x18006e546
cmp word [r8 + 0x1c], 0
je 0x18006e546
mov r8, qword [r8 + 8]
lea rdx, [rbp - 0x20]
movabs rax, 0xb332121c13ff2f76
lea rcx, [rbp + 0x60]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp - 0x20], rax
movabs rax, 0xe46ceb1ac5637144
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp - 0x18], rax
movabs rax, 0xc017326f609e4315
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp - 0x80], rax
movabs rax, 0xe46ceb1ac563714e
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
vmovdqu xmm0, xmmword [rbp - 0x20]
mov qword [rbp - 0x78], rax
vpxor xmm1, xmm0, xmmword [rbp - 0x80]
vmovdqu xmmword [rbp - 0x20], xmm1
call fcn.18006e810
cmp byte [rbp + 0x60], 0
lea rax, [rbp + 0x60]
lea r8, [rbp + 0x60]
je 0x18006e22f
inc rax
cmp byte [rax], 0
jne 0x18006e224
mov r8d, eax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rsi
sub r8d, eax
lea rdx, [rbp + 0x60]
xor r9d, r9d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x50]
mov r14d, esi
cmp si, word [rcx + 0x1c]
jge 0x18006e541
mov r15, qword [rsp + 0x60]
xor r12d, r12d
mov edi, r12d
nop dword [rax + rax]
mov rsi, qword [rcx + 0x28]
lea rdx, [rbp - 0x70]
mov r8, qword [r13 + 8]
movabs rcx, 0xe46ceb1ac563714e
movabs rax, 0xc017414a5eb33030
mov r9, qword [rdi + rsi]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x48]
mov qword [rbp - 0x68], rax
movabs rax, 0xc017326f609e4315
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp - 0x50], rax
mov qword [rsp + 0x48], rcx
lea rcx, [rbp + 0x280]
mov rax, qword [rsp + 0x48]
vmovdqu xmm0, xmmword [rbp - 0x70]
mov qword [rbp - 0x48], rax
vpxor xmm1, xmm0, xmmword [rbp - 0x50]
vmovdqu xmmword [rbp - 0x70], xmm1
call fcn.18006e810
lea rax, [rbp + 0x280]
movabs rdx, 0xcbf29ce484222325
cmp byte [rbp + 0x280], r12b
je 0x18006e318
nop dword [rax + rax]
inc rax
cmp byte [rax], r12b
jne 0x18006e310
lea rcx, [rbp + 0x280]
mov r8, r12
sub rax, rcx
je 0x18006e348
nop word [rax + rax]
movsx rcx, byte [rbp + r8 + 0x280]
inc r8
xor rdx, rcx
imul rdx, rbx
cmp r8, rax
jb 0x18006e330
mov rcx, qword [0x180141d80]
lea rbx, [rdi + rsi]
cmp rcx, qword [0x180141d88]
mov qword [rsp + 0x48], rdx
je 0x18006e390
mov qword [rcx], rdx
mov eax, dword [rbx + 0x10]
mov dword [rcx + 8], eax
add qword [0x180141d80], 0x10
jmp 0x18006e3a1
mov r9d, 0xa
lea rdx, [rbp + 0x3c2]
mov ecx, ebx
call fcn.18006ea80
mov rdx, rax
jmp 0x18006df54
lea r9, [rbx + 0x10]
mov rdx, rcx
lea r8, [rsp + 0x48]
call fcn.18006ec00
mov rax, qword [rdi + rsi + 8]
movabs rdx, 0x4ded5748ef2d6bc8
mov ecx, dword [rbx + 0x10]
mov r9, qword [rdi + rsi]
mov dword [rsp + 0x20], ecx
lea rcx, [rbp + 0x170]
mov r8, qword [rax + 8]
movabs rax, 0xe537414a40be6335
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp + 0x390], rax
movabs rax, 0xbc49932ae55e513d
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp + 0x398], rax
movabs rax, 0xea807d3dfca3973d
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp + 0x3a0], rax
mov qword [rsp + 0x48], rdx
mov rax, qword [rsp + 0x48]
mov qword [rbp + 0x3a8], rax
movabs rax, 0xc017326f609e4315
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp + 0x3c0], rax
movabs rax, 0xe46ceb1ac563714e
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp + 0x3c8], rax
movabs rax, 0xea807d3dfca39737
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp + 0x3d0], rax
mov qword [rsp + 0x48], rdx
lea rdx, [rbp + 0x390]
mov rax, qword [rsp + 0x48]
vmovdqu xmm0, xmmword [rbp + 0x390]
vpxor xmm1, xmm0, xmmword [rbp + 0x3c0]
mov qword [rbp + 0x3d8], rax
vmovdqu xmm2, xmmword [rbp + 0x3d0]
vpxor xmm0, xmm2, xmmword [rbp + 0x3a0]
vmovdqu xmmword [rbp + 0x3a0], xmm0
vmovdqu xmmword [rbp + 0x390], xmm1
call fcn.18006e810
lea rax, [rbp + 0x170]
lea r8, [rbp + 0x170]
cmp byte [rbp + 0x170], r12b
je 0x18006e4eb
nop dword [rax]
inc rax
cmp byte [rax], r12b
jne 0x18006e4e0
mov r8d, eax
lea rax, [rbp + 0x170]
mov qword [rsp + 0x20], r12
sub r8d, eax
lea rdx, [rbp + 0x170]
xor r9d, r9d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x50]
inc r14d
add rdi, 0x20
movabs rbx, 0x100000001b3
movsx eax, word [rcx + 0x1c]
cmp r14d, eax
jl 0x18006e270
mov r15, qword [rsp + 0x70]
xor esi, esi
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x58]
mov r14, qword [rsp + 0x60]
inc r12
mov qword [rsp + 0x40], r12
cmp r12, qword [rbp - 0x60]
jl 0x18006e150
mov rsi, qword [rsp + 0x760]
test r15, r15
je 0x18006e579
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x18006e588
xor al, al
mov rcx, qword [rbp + 0x620]
xor rcx, rsp
call fcn.1800d7380
lea r11, [rsp + 0x730]
mov rbx, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret