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

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0x3a8]
sub rsp, 0x4a8
mov rax, qword [0x180195040]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rdx, rcx
xor r8d, r8d
mov rcx, qword [0x180197cf0]
mov rax, qword [rcx]
mov r9, qword [rax + 0x68]
call r9
mov qword [rsp + 0x48], rax
mov rdi, rax
test rax, rax
je 0x180077e49
mov qword [rsp + 0x4c8], rbx
mov dl, 1
movsxd rbx, dword [rax + 0x50c]
mov qword [rsp + 0x4d0], rsi
mov qword [rsp + 0x4a0], r13
mov qword [rsp + 0x498], r14
mov qword [rsp + 0x490], r15
call fcn.18008b850
mov rsi, rax
lea rdx, [rsp + 0x70]
movabs rax, 0x47453294634fe611
movabs r13, 0xa8aa0fa5beaf7210
mov qword [rsp + 0x38], rax
movabs r15, 0x476712f00d3a8977
mov rcx, qword [rsp + 0x38]
mov r8d, edx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x38], r13
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x38], r15
mov rcx, qword [rsp + 0x38]
mov qword [rbp - 0x80], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x38], r13
mov rax, qword [rsp + 0x38]
movdqa xmm0, xmmword [rsp + 0x70]
mov qword [rbp - 0x78], rax
xorps xmm0, xmmword [rbp - 0x80]
movq rax, xmm0
movdqa xmmword [rsp + 0x70], xmm0
test al, al
je 0x18007780d
inc rcx
mov r8, rcx
cmp byte [rcx], 0
jne 0x180077802
sub r8d, edx
xor eax, eax
mov r14, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
mov rcx, r14
lea rdx, [rsp + 0x70]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
movzx eax, word [rsi + 8]
test al, 4
je 0x180077846
lea rdi, [0x18017b8c8]
mov r9d, 0x10
jmp 0x180077878
test al, 0x10
je 0x180077863
mov r9d, 8
lea rdx, [rbp + 0x332]
mov ecx, ebx
call fcn.180078340
mov rdx, rax
jmp 0x1800778a7
test al, 0x20
je 0x180077c71
lea rdi, [0x18017b8cc]
mov r9d, 2
lea rdx, [rbp + 0x332]
mov ecx, ebx
call fcn.180078340
test byte [rsi + 8], 2
mov rcx, rax
mov rdx, rax
je 0x1800778a2
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 + 0x48]
test ebx, ebx
js 0x1800778bc
mov eax, 0x400
test word [rsi + 8], ax
je 0x1800778bc
dec rdx
mov byte [rdx], 0x2b
lea r8, [rbp + 0x372]
xor esi, esi
sub r8d, edx
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
movabs rax, 0x260a77986e49a955
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea rcx, [rbp - 0x70]
mov rax, qword [rsp + 0x38]
mov r8d, edx
mov qword [rbp - 0x70], rax
movabs rax, 0xdbcf7cd6dfc31130
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rbp - 0x68], rax
movabs rax, 0x4f9310d780b1c511
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rbp - 0x60], rax
movabs rax, 0x5615d8f3e35014e
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rbp - 0x58], rax
mov qword [rsp + 0x38], r15
mov rax, qword [rsp + 0x38]
mov qword [rbp + 0x2f0], rax
mov qword [rsp + 0x38], r13
mov rax, qword [rsp + 0x38]
mov qword [rbp + 0x2f8], rax
movabs rax, 0x3af77fbaa0dfac31
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rbp + 0x300], rax
movabs rax, 0x5615d8f3e356422
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movdqa xmm1, xmmword [rbp - 0x70]
xorps xmm1, xmmword [rbp + 0x2f0]
movdqa xmm0, xmmword [rbp - 0x60]
mov qword [rbp + 0x308], rax
movq rax, xmm1
xorps xmm0, xmmword [rbp + 0x300]
movdqa xmmword [rbp - 0x70], xmm1
movdqa xmmword [rbp - 0x60], xmm0
test al, al
je 0x1800779db
nop word [rax + rax]
inc rcx
mov r8, rcx
cmp byte [rcx], sil
jne 0x1800779d0
sub r8d, edx
mov qword [rsp + 0x20], rsi
lea rdx, [rbp - 0x70]
xor r9d, r9d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
lea edx, [rbx + 1]
mov eax, 8
mul rdx
cmovb rax, r14
xor edx, edx
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r10, rbx
mov qword [rsp + 0x50], rax
mov r14, rax
lea r11, [rdi + 0x5a0]
mov rbx, rsi
mov r9d, esi
mov r8d, esi
mov rdx, rsi
mov rcx, qword [r11]
test rcx, rcx
je 0x180077a5e
nop dword [rax]
sub r9d, 1
jns 0x180077a55
mov qword [rax + rdx*8], rcx
inc r8d
inc rdx
cmp rdx, r10
jge 0x180077a6e
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x180077a40
inc rbx
add r11, 0x28
cmp rbx, 0x100
jl 0x180077a34
movsxd rax, r8d
mov qword [rsp + 0x70], rax
test r8d, r8d
jle 0x180077e06
mov qword [rsp + 0x4d8], r12
movabs rbx, 0x100000001b3
mov r12, rsi
mov qword [rsp + 0x38], rsi
nop dword [rax]
mov rax, qword [r14 + r12*8]
test rax, rax
je 0x180077deb
mov r15, qword [rax + 0x10]
test r15, r15
je 0x180077deb
mov rax, qword [rdi]
lea rdx, [rsp + 0x40]
mov r8, qword [r15 + 8]
mov rcx, rdi
call qword [rax + 0x10]
mov r8, qword [rsp + 0x40]
test r8, r8
je 0x180077deb
cmp word [r8 + 0x1c], 0
je 0x180077deb
mov r8, qword [r8 + 8]
lea rdx, [rbp - 0x50]
movabs rax, 0x344232837e5be514
lea rcx, [rbp + 0xd0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x50], rax
movabs rax, 0xa8aa0fa5beaf721a
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x48], rax
movabs rax, 0x476712f00d3a8977
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x30], r13
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rbp - 0x50]
mov qword [rsp + 0x68], rax
xorps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x50], xmm0
call fcn.1800780d0
mov rcx, qword [rsp + 0x40]
mov r13d, esi
cmp si, word [rcx + 0x1c]
jge 0x180077de1
mov rdi, rsi
movabs r14, 0xa8aa0fa5beaf7210
movabs r12, 0x476712f00d3a8977
nop word [rax + rax]
mov rsi, qword [rcx + 0x28]
lea rdx, [rbp - 0x80]
mov r8, qword [r15 + 8]
lea rcx, [rbp - 0x40]
movabs rax, 0x476761d53317fa52
mov r9, qword [rdi + rsi]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x78], rax
mov qword [rsp + 0x30], r12
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rbp - 0x80]
mov qword [rbp - 0x68], rax
xorps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x80], xmm0
call fcn.1800780d0
cmp byte [rbp - 0x40], 0
lea rax, [rbp - 0x40]
movabs rdx, 0xcbf29ce484222325
je 0x180077c18
nop dword [rax]
inc rax
cmp byte [rax], 0
jne 0x180077c10
lea rcx, [rbp - 0x40]
mov r8d, 0
sub rax, rcx
je 0x180077c45
nop word [rax + rax]
movsx rcx, byte [rbp + r8 - 0x40]
inc r8
xor rdx, rcx
imul rdx, rbx
cmp r8, rax
jb 0x180077c30
mov rcx, qword [0x180197780]
lea rbx, [rdi + rsi]
cmp rcx, qword [0x180197788]
mov qword [rsp + 0x30], rdx
je 0x180077c8d
mov qword [rcx], rdx
mov eax, dword [rbx + 0x10]
mov dword [rcx + 8], eax
add qword [0x180197780], 0x10
jmp 0x180077c9e
mov r9d, 0xa
lea rdx, [rbp + 0x332]
mov ecx, ebx
call fcn.180078340
mov rdx, rax
jmp 0x1800778a7
lea r9, [rbx + 0x10]
mov rdx, rcx
lea r8, [rsp + 0x30]
call fcn.1800784c0
mov rax, qword [rdi + rsi + 8]
movabs rdx, 0x5615d8f3e356422
mov ecx, dword [rbx + 0x10]
mov r9, qword [rdi + rsi]
mov dword [rsp + 0x20], ecx
lea rcx, [rbp + 0x1e0]
mov r8, qword [rax + 8]
movabs rax, 0x624761d52d1aa957
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x2f0], rax
movabs rax, 0xf08f77959e925263
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x2f8], rax
movabs rax, 0x3af77fbaa0dfac3b
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x300], rax
mov qword [rsp + 0x30], rdx
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x308], rax
mov qword [rsp + 0x30], r12
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x310], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x318], rax
movabs rax, 0x3af77fbaa0dfac31
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x320], rax
mov qword [rsp + 0x30], rdx
lea rdx, [rbp + 0x2f0]
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rbp + 0x2f0]
xorps xmm0, xmmword [rbp + 0x310]
mov qword [rbp + 0x328], rax
movdqa xmm1, xmmword [rbp + 0x320]
xorps xmm1, xmmword [rbp + 0x300]
movdqa xmmword [rbp + 0x300], xmm1
movdqa xmmword [rbp + 0x2f0], xmm0
call fcn.1800780d0
mov rcx, qword [rsp + 0x40]
inc r13d
add rdi, 0x20
movabs rbx, 0x100000001b3
movsx eax, word [rcx + 0x1c]
cmp r13d, eax
jl 0x180077b90
mov r14, qword [rsp + 0x50]
xor esi, esi
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
movabs r13, 0xa8aa0fa5beaf7210
inc r12
mov qword [rsp + 0x38], r12
cmp r12, qword [rsp + 0x70]
jl 0x180077aa0
mov r12, qword [rsp + 0x4d8]
mov r15, qword [rsp + 0x490]
mov r13, qword [rsp + 0x4a0]
mov rsi, qword [rsp + 0x4d0]
mov rbx, qword [rsp + 0x4c8]
test r14, r14
je 0x180077e3f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r14, qword [rsp + 0x498]
mov al, 1
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1800f1520
add rsp, 0x4a8
pop rdi
pop rbp
ret