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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x6a0]
sub rsp, 0x7a0
mov rax, qword [0x180164040]
xor rax, rsp
mov qword [rbp + 0x690], rax
lea rcx, [rbp + 0x480]
mov rbx, rdx
call fcn.180045860
test al, al
je 0x1800541c0
xor ecx, ecx
call fcn.1800d4bb8
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x30]
call fcn.1800d4bb0
movabs rax, 0x49c35f9028936e5e
lea r9, [rbp + 0x30]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x10]
mov rax, qword [rsp + 0x30]
lea rcx, [rbp + 0x170]
mov qword [rbp - 0x10], rax
movabs r15, 0x6cee32b505f74b05
movabs rax, 0xc245ed419d5a242f
movabs r13, 0xa136cd1cc97f0476
mov qword [rsp + 0x30], rax
movabs r12, 0x9ab7429282e5b3a8
mov rax, qword [rsp + 0x30]
mov edx, 0x40
mov qword [rbp - 8], rax
movabs rax, 0x38e11bf3456a9347
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp], rax
movabs rax, 0x9ab7429282efb9d8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 8], rax
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x3d0], rax
mov qword [rsp + 0x30], r13
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x3d8], rax
movabs rax, 0x55947fd32407f62f
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x3e0], rax
mov qword [rsp + 0x30], r12
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rbp - 0x10]
movdqa xmm1, xmmword [rbp]
xorps xmm0, xmmword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
xorps xmm1, xmmword [rbp + 0x3e0]
movdqa xmmword [rbp], xmm1
movdqa xmmword [rbp - 0x10], xmm0
call fcn.1800546b0
mov rcx, qword [0x180166f80]
xor r8d, r8d
mov rdx, rbx
mov rax, qword [rcx]
mov r9, qword [rax + 0x68]
call r9
mov qword [rsp + 0x48], rax
mov rdi, rax
test rax, rax
je 0x1800541c0
movsxd rbx, dword [rax + 0x50c]
mov dl, 1
mov qword [rsp + 0x7d0], rsi
mov qword [rsp + 0x7e0], r14
call fcn.18005d400
mov rsi, rax
lea rdx, [rbp - 0x60]
movabs rax, 0x6ccc12d16b822463
mov r8d, edx
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
mov qword [rbp - 0x60], rcx
mov qword [rsp + 0x30], r13
mov rcx, qword [rsp + 0x30]
mov qword [rbp - 0x58], rcx
mov qword [rsp + 0x30], r15
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x70], rcx
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x30], r13
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rbp - 0x60]
mov qword [rsp + 0x78], rax
xorps xmm0, xmmword [rsp + 0x70]
movq rax, xmm0
movdqa xmmword [rbp - 0x60], xmm0
test al, al
je 0x180053be0
inc rcx
mov r8, rcx
cmp byte [rcx], 0
jne 0x180053bd5
sub r8d, edx
xor eax, eax
mov r14, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
mov rcx, r14
lea rdx, [rbp - 0x60]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
movzx eax, word [rsi + 8]
test al, 4
je 0x180053c16
lea rdi, [0x18014eac8]
lea r9d, [r14 + 0x11]
jmp 0x180053c48
test al, 0x10
je 0x180053c33
mov r9d, 8
lea rdx, [rbp + 0x432]
mov ecx, ebx
call fcn.1800550c0
mov rdx, rax
jmp 0x180053c77
test al, 0x20
je 0x180054021
lea rdi, [0x18014eacc]
mov r9d, 2
lea rdx, [rbp + 0x432]
mov ecx, ebx
call fcn.1800550c0
test byte [rsi + 8], 2
mov rcx, rax
mov rdx, rax
je 0x180053c72
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 0x180053c8c
mov eax, 0x400
test word [rsi + 8], ax
je 0x180053c8c
dec rdx
mov byte [rdx], 0x2b
lea r8, [rbp + 0x472]
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, 0xd8357dd66846b27
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x50]
mov rax, qword [rsp + 0x30]
mov r8d, edx
mov qword [rbp - 0x50], rax
movabs rax, 0xd253be6fa8136756
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x48], rax
movabs rax, 0x20f010be04699f0f
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x40], rax
movabs rax, 0x9ab7429282e5d6c4
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x38], rax
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x3f0], rax
mov qword [rsp + 0x30], r13
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x3f8], rax
movabs rax, 0x55947fd32407f62f
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x400], rax
mov qword [rsp + 0x30], r12
mov rax, qword [rsp + 0x30]
movdqa xmm1, xmmword [rbp - 0x50]
xorps xmm1, xmmword [rbp + 0x3f0]
movdqa xmm0, xmmword [rbp - 0x40]
mov qword [rbp + 0x408], rax
movq rax, xmm1
xorps xmm0, xmmword [rbp + 0x400]
movdqa xmmword [rbp - 0x50], xmm1
movdqa xmmword [rbp - 0x40], xmm0
test al, al
je 0x180053d9b
nop dword [rax]
inc rcx
mov r8, rcx
cmp byte [rcx], sil
jne 0x180053d90
sub r8d, edx
mov qword [rsp + 0x20], rsi
lea rdx, [rbp - 0x50]
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
cmovo rax, r14
xor edx, edx
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r10, rbx
mov qword [rsp + 0x60], 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 0x180053e1e
nop dword [rax]
sub r9d, 1
jns 0x180053e15
mov qword [rax + rdx*8], rcx
inc r8d
inc rdx
cmp rdx, r10
jge 0x180053e2e
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x180053e00
inc rbx
add r11, 0x28
cmp rbx, 0x100
jl 0x180053df4
movsxd rax, r8d
mov qword [rsp + 0x68], rax
test r8d, r8d
jle 0x180054193
mov r12, rsi
mov qword [rsp + 0x30], rsi
movabs rbx, 0x100000001b3
mov rax, qword [r14 + r12*8]
test rax, rax
je 0x180054180
mov r15, qword [rax + 0x10]
test r15, r15
je 0x180054180
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 0x180054180
cmp word [r8 + 0x1c], 0
je 0x180054180
mov r8, qword [r8 + 8]
lea rdx, [rbp - 0x30]
movabs rax, 0x1fcb12c676962766
lea rcx, [rbp + 0x1b0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rbp - 0x30], rax
movabs rax, 0xa136cd1cc97f047c
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rbp - 0x28], rax
movabs rax, 0x6cee32b505f74b05
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x38], r13
mov rax, qword [rsp + 0x38]
movdqa xmm0, xmmword [rbp - 0x30]
mov qword [rbp - 0x78], rax
xorps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x30], xmm0
call fcn.180054440
mov rcx, qword [rsp + 0x40]
mov r13d, esi
cmp si, word [rcx + 0x1c]
jge 0x180054176
mov rdi, rsi
movabs r14, 0xa136cd1cc97f0476
movabs r12, 0x6cee32b505f74b05
nop dword [rax + rax]
mov rsi, qword [rcx + 0x28]
lea rdx, [rbp - 0x20]
mov r8, qword [r15 + 8]
lea rcx, [rbp + 0x60]
movabs rax, 0x6cee41903bda3820
mov r9, qword [rdi + rsi]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rbp - 0x20], rax
mov qword [rsp + 0x38], r14
mov rax, qword [rsp + 0x38]
mov qword [rbp - 0x18], rax
mov qword [rsp + 0x38], r12
mov rax, qword [rsp + 0x38]
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x38], r14
mov rax, qword [rsp + 0x38]
movdqa xmm0, xmmword [rbp - 0x20]
mov qword [rbp - 0x68], rax
xorps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x20], xmm0
call fcn.180054440
cmp byte [rbp + 0x60], 0
lea rax, [rbp + 0x60]
movabs rdx, 0xcbf29ce484222325
je 0x180053fc8
nop dword [rax]
inc rax
cmp byte [rax], 0
jne 0x180053fc0
lea rcx, [rbp + 0x60]
mov r8d, 0
sub rax, rcx
je 0x180053ff5
nop word [rax + rax]
movsx rcx, byte [rbp + r8 + 0x60]
inc r8
xor rdx, rcx
imul rdx, rbx
cmp r8, rax
jb 0x180053fe0
mov rcx, qword [0x180166b40]
lea rbx, [rdi + rsi]
cmp rcx, qword [0x180166b48]
mov qword [rsp + 0x58], rdx
je 0x18005403d
mov qword [rcx], rdx
mov eax, dword [rbx + 0x10]
mov dword [rcx + 8], eax
add qword [0x180166b40], 0x10
jmp 0x18005404e
mov r9d, 0xa
lea rdx, [rbp + 0x432]
mov ecx, ebx
call fcn.1800550c0
mov rdx, rax
jmp 0x180053c77
lea r9, [rbx + 0x10]
mov rdx, rcx
lea r8, [rsp + 0x58]
call fcn.180055240
mov rax, qword [rdi + rsi + 8]
movabs rdx, 0x9ab7429282e5b3a8
mov ecx, dword [rbx + 0x10]
mov r9, qword [rdi + rsi]
mov dword [rsp + 0x20], ecx
lea rcx, [rbp + 0x2c0]
mov r8, qword [rax + 8]
movabs rax, 0x49ce419025d76b25
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rbp + 0x10], rax
movabs rax, 0xf913b52ce9422405
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rbp + 0x18], rax
movabs rax, 0x55947fd32407f625
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rbp + 0x20], rax
mov qword [rsp + 0x38], rdx
mov rax, qword [rsp + 0x38]
mov qword [rbp + 0x28], rax
mov qword [rsp + 0x38], r12
mov rax, qword [rsp + 0x38]
mov qword [rbp + 0x410], rax
mov qword [rsp + 0x38], r14
mov rax, qword [rsp + 0x38]
mov qword [rbp + 0x418], rax
movabs rax, 0x55947fd32407f62f
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x38], rdx
lea rdx, [rbp + 0x10]
mov qword [rbp + 0x420], rax
mov rax, qword [rsp + 0x38]
movdqa xmm0, xmmword [rbp + 0x10]
movdqa xmm1, xmmword [rbp + 0x20]
xorps xmm0, xmmword [rbp + 0x410]
mov qword [rbp + 0x428], rax
xorps xmm1, xmmword [rbp + 0x420]
movdqa xmmword [rbp + 0x20], xmm1
movdqa xmmword [rbp + 0x10], xmm0
call fcn.180054440
mov rcx, qword [rsp + 0x40]
inc r13d
add rdi, 0x20
movabs rbx, 0x100000001b3
movsx eax, word [rcx + 0x1c]
cmp r13d, eax
jl 0x180053f40
mov r14, qword [rsp + 0x60]
xor esi, esi
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x48]
movabs r13, 0xa136cd1cc97f0476
inc r12
mov qword [rsp + 0x30], r12
cmp r12, qword [rsp + 0x68]
jl 0x180053e51
mov rsi, qword [rsp + 0x7d0]
test r14, r14
je 0x1800541b4
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 + 0x7e0]
mov al, 1
jmp 0x1800541c2
xor al, al
mov rcx, qword [rbp + 0x690]
xor rcx, rsp
call fcn.1800c2800
mov rbx, qword [rsp + 0x7e8]
add rsp, 0x7a0
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret