Function at 0x180052610
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 [0x18015f040]
xor rax, rsp
mov qword [rbp + 0x690], rax
lea rcx, [rbp + 0x480]
mov rbx, rdx
call fcn.180044c40
test al, al
je 0x180052e10
xor ecx, ecx
call fcn.1800ce770
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x30]
call fcn.1800ce768
movabs rax, 0xf4a67691e11fdc84
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, 0xd18b1bb4cc7bf9df
movabs rax, 0x44f05acc0457ff51
movabs r13, 0x27837a915072df08
mov qword [rsp + 0x30], rax
movabs r12, 0xc09c08fba61418b2
mov rax, qword [rsp + 0x30]
mov edx, 0x40
mov qword [rbp - 8], rax
movabs rax, 0x3b1f48f63293d3a9
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp], rax
movabs rax, 0xc09c08fba61e12c2
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, 0x566a2cd653feb6c1
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.180053300
mov rcx, qword [0x180161880]
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 0x180052e10
movsxd rbx, dword [rax + 0x50c]
mov dl, 1
mov qword [rsp + 0x7d0], rsi
mov qword [rsp + 0x7e0], r14
call fcn.18005c2c0
mov rsi, rax
lea rdx, [rbp - 0x60]
movabs rax, 0xd1a93bd0a20e96b9
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 0x180052830
inc rcx
mov r8, rcx
cmp byte [rcx], 0
jne 0x180052825
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 0x180052866
lea rdi, [0x180149910]
lea r9d, [r14 + 0x11]
jmp 0x180052898
test al, 0x10
je 0x180052883
mov r9d, 8
lea rdx, [rbp + 0x432]
mov ecx, ebx
call fcn.180053d10
mov rdx, rax
jmp 0x1800528c7
test al, 0x20
je 0x180052c71
lea rdi, [0x180149914]
mov r9d, 2
lea rdx, [rbp + 0x432]
mov ecx, ebx
call fcn.180053d10
test byte [rsi + 8], 2
mov rcx, rax
mov rdx, rax
je 0x1800528c2
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 0x1800528dc
mov eax, 0x400
test word [rsi + 8], ax
je 0x1800528dc
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, 0xb0e67edcaf08d9fd
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, 0x54e609e2311ebc28
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x48], rax
movabs rax, 0x230e43bb7390dfe1
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x40], rax
movabs rax, 0xc09c08fba6147dde
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, 0x566a2cd653feb6c1
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 0x1800529eb
nop dword [rax]
inc rcx
mov r8, rcx
cmp byte [rcx], sil
jne 0x1800529e0
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 0x180052a6e
nop dword [rax]
sub r9d, 1
jns 0x180052a65
mov qword [rax + rdx*8], rcx
inc r8d
inc rdx
cmp rdx, r10
jge 0x180052a7e
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x180052a50
inc rbx
add r11, 0x28
cmp rbx, 0x100
jl 0x180052a44
movsxd rax, r8d
mov qword [rsp + 0x68], rax
test r8d, r8d
jle 0x180052de3
mov r12, rsi
mov qword [rsp + 0x30], rsi
movabs rbx, 0x100000001b3
mov rax, qword [r14 + r12*8]
test rax, rax
je 0x180052dd0
mov r15, qword [rax + 0x10]
test r15, r15
je 0x180052dd0
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 0x180052dd0
cmp word [r8 + 0x1c], 0
je 0x180052dd0
mov r8, qword [r8 + 8]
lea rdx, [rbp - 0x30]
movabs rax, 0xa2ae3bc7bf1a95bc
lea rcx, [rbp + 0x1b0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rbp - 0x30], rax
movabs rax, 0x27837a915072df02
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rbp - 0x28], rax
movabs rax, 0xd18b1bb4cc7bf9df
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.180053090
mov rcx, qword [rsp + 0x40]
mov r13d, esi
cmp si, word [rcx + 0x1c]
jge 0x180052dc6
mov rdi, rsi
movabs r14, 0x27837a915072df08
movabs r12, 0xd18b1bb4cc7bf9df
nop dword [rax + rax]
mov rsi, qword [rcx + 0x28]
lea rdx, [rbp - 0x20]
mov r8, qword [r15 + 8]
lea rcx, [rbp + 0x60]
movabs rax, 0xd18b6891f2568afa
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.180053090
cmp byte [rbp + 0x60], 0
lea rax, [rbp + 0x60]
movabs rdx, 0xcbf29ce484222325
je 0x180052c18
nop dword [rax]
inc rax
cmp byte [rax], 0
jne 0x180052c10
lea rcx, [rbp + 0x60]
mov r8d, 0
sub rax, rcx
je 0x180052c45
nop word [rax + rax]
movsx rcx, byte [rbp + r8 + 0x60]
inc r8
xor rdx, rcx
imul rdx, rbx
cmp r8, rax
jb 0x180052c30
mov rcx, qword [0x180161438]
lea rbx, [rdi + rsi]
cmp rcx, qword [0x180161440]
mov qword [rsp + 0x58], rdx
je 0x180052c8d
mov qword [rcx], rdx
mov eax, dword [rbx + 0x10]
mov dword [rcx + 8], eax
add qword [0x180161438], 0x10
jmp 0x180052c9e
mov r9d, 0xa
lea rdx, [rbp + 0x432]
mov ecx, ebx
call fcn.180053d10
mov rdx, rax
jmp 0x1800528c7
lea r9, [rbx + 0x10]
mov rdx, rcx
lea r8, [rsp + 0x58]
call fcn.180053e90
mov rax, qword [rdi + rsi + 8]
movabs rdx, 0xc09c08fba61418b2
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, 0xf4ab6891ec5bd9ff
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rbp + 0x10], rax
movabs rax, 0x7fa602a1704fff7b
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rbp + 0x18], rax
movabs rax, 0x566a2cd653feb6cb
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, 0x566a2cd653feb6c1
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.180053090
mov rcx, qword [rsp + 0x40]
inc r13d
add rdi, 0x20
movabs rbx, 0x100000001b3
movsx eax, word [rcx + 0x1c]
cmp r13d, eax
jl 0x180052b90
mov r14, qword [rsp + 0x60]
xor esi, esi
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x48]
movabs r13, 0x27837a915072df08
inc r12
mov qword [rsp + 0x30], r12
cmp r12, qword [rsp + 0x68]
jl 0x180052aa1
mov rsi, qword [rsp + 0x7d0]
test r14, r14
je 0x180052e04
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 0x180052e12
xor al, al
mov rcx, qword [rbp + 0x690]
xor rcx, rsp
call fcn.1800c16d0
mov rbx, qword [rsp + 0x7e8]
add rsp, 0x7a0
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret