Function at 0x180048560
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x108
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x80], 0xfffffffffffffffe
mov qword [rbp + 0x70], r8
mov rdi, rdx
mov rsi, rcx
mov byte [rbp + 0x7f], 1
call fcn.180047850
test al, al
jne 0x180048c2f
cmp dword [rsi], 2
jne 0x18004861f
movdqu xmm0, xmmword [rsi + 8]
pshufd xmm1, xmm0, 0x44
pxor xmm1, xmmword [str.uespemosarenegylmodnarodsetybdet]
movdqa xmmword [rbp], xmm1
pshufd xmm1, xmm0, 0xee
pxor xmm1, xmmword [0x180150ba0]
movdqa xmmword [rbp + 0x10], xmm1
movdqa xmmword [rbp + 0x20], xmm0
pxor xmm0, xmm0
movdqa xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], 0
mov rbx, qword [rdi]
xor eax, eax
test rbx, rbx
setne al
mov qword [rbp - 0x50], rax
mov rcx, rbp
lea rdx, [rbp - 0x50]
mov r8d, 8
call fcn.18000cbf0
test rbx, rbx
je 0x1800486a4
mov rdx, qword [rdi + 8]
mov r8, qword [rdi + 0x10]
mov rcx, rbp
jmp 0x1800486b9
mov rcx, qword [rdi]
xor eax, eax
test rcx, rcx
setne al
movabs rbx, 0xcbf29ce484222325
xor rbx, rax
movabs rax, 0x1efac7090aef4a21
imul rbx, rax
test rcx, rcx
je 0x1800487ab
mov r8, qword [rdi + 0x10]
test r8, r8
je 0x180048837
mov rax, qword [rdi + 8]
mov r9, r8
movabs rcx, 0x100000001b3
and r9, 7
je 0x1800487b8
mov r10, rbx
mov rdx, rax
nop dword [rax]
movzx ebx, byte [rdx]
inc rdx
xor rbx, r10
imul rbx, rcx
mov r10, rbx
dec r9
jne 0x180048680
cmp r8, 8
jae 0x1800487c1
jmp 0x180048837
movzx eax, byte [rdi + 8]
mov qword [rbp - 0x50], rax
mov rcx, rbp
lea rdx, [rbp - 0x50]
mov r8d, 8
call fcn.18000cbf0
mov rax, qword [rbp + 0x10]
mov r9, qword [rbp + 0x30]
shl r9, 0x38
or r9, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x18]
xor rcx, r9
mov r8, qword [rbp]
add r8, rax
mov rdx, qword [rbp + 8]
add rdx, rcx
rol rax, 0xd
xor rax, r8
rol rcx, 0x10
rol r8, 0x20
xor rcx, rdx
add rdx, rax
rol rax, 0x11
add r8, rcx
xor rax, rdx
rol rcx, 0x15
xor rcx, r8
rol rdx, 0x20
xor r8, r9
xor rdx, 0xff
add r8, rax
rol rax, 0xd
add rdx, rcx
xor rax, r8
rol rcx, 0x10
xor rcx, rdx
rol r8, 0x20
add rdx, rax
add r8, rcx
rol rax, 0x11
xor rax, rdx
rol rcx, 0x15
rol rdx, 0x20
xor rcx, r8
add r8, rax
rol rax, 0xd
add rdx, rcx
xor rax, r8
rol rcx, 0x10
xor rcx, rdx
rol r8, 0x20
add rdx, rax
add r8, rcx
rol rax, 0x11
xor rax, rdx
rol rcx, 0x15
rol rdx, 0x20
xor rcx, r8
add r8, rax
rol rax, 0xd
add rdx, rcx
xor rax, r8
shl rcx, 0x10
xor rcx, rdx
add rdx, rax
shr rax, 0x2f
shr rcx, 0x2b
xor rcx, rax
mov rbx, rdx
shr rbx, 0x20
xor rbx, rdx
xor rbx, rcx
jmp 0x180048837
movzx ecx, byte [rdi + 8]
xor rbx, rcx
imul rbx, rax
jmp 0x180048837
mov rdx, rax
cmp r8, 8
jb 0x180048837
add rax, r8
nop word cs:[rax + rax]
movzx r8d, byte [rdx]
xor r8, rbx
imul r8, rcx
movzx r9d, byte [rdx + 1]
xor r9, r8
imul r9, rcx
movzx r8d, byte [rdx + 2]
xor r8, r9
imul r8, rcx
movzx r9d, byte [rdx + 3]
xor r9, r8
imul r9, rcx
movzx r8d, byte [rdx + 4]
xor r8, r9
imul r8, rcx
movzx r9d, byte [rdx + 5]
xor r9, r8
imul r9, rcx
movzx r8d, byte [rdx + 6]
xor r8, r9
imul r8, rcx
movzx ebx, byte [rdx + 7]
add rdx, 8
xor rbx, r8
imul rbx, rcx
cmp rdx, rax
jne 0x1800487d0
and ebx, 0x7fff
movzx eax, word [rsi + 0x58]
mov r14d, ebx
and r14d, eax
xor r12d, r12d
jmp 0x180048866
movzx eax, byte [rcx + 8]
cmp al, byte [rdi + 8]
je 0x180048909
nop dword [rax]
inc r12
inc r14
cmp r14, qword [rsi + 0x50]
jb 0x180048878
mov rax, qword [rsi + 0x50]
test rax, rax
je 0x180048870
xor r14d, r14d
mov rax, qword [rsi + 0x48]
movzx r15d, word [rax + r14*4]
cmp r15, 0xffff
je 0x1800489e9
movzx eax, word [rax + r14*4 + 2]
movzx ecx, word [rsi + 0x58]
mov edx, eax
and edx, ecx
mov r8d, r14d
sub r8d, edx
and r8d, ecx
cmp r8, r12
jb 0x180048af1
cmp ax, bx
jne 0x180048860
mov rdx, qword [rsi + 0x28]
cmp rdx, r15
jbe 0x180048c17
mov rax, qword [rsi + 0x20]
imul r13, r15, 0x68
mov r8, qword [rax + r13 + 0x40]
test r8, r8
setne cl
cmp qword [rdi], 0
sete r9b
cmp cl, r9b
je 0x180048860
lea rcx, [rax + r13]
add rcx, 0x40
test r8, r8
je 0x18004884c
mov byte [rbp + 0x7f], 1
mov rdx, rdi
call fcn.180089b20
test al, al
je 0x180048860
mov rdx, qword [rsi + 0x28]
cmp rdx, r15
jbe 0x180048cb5
mov rax, qword [rsi + 0x20]
lea rbx, [rax + r13]
lea rcx, [rsi + 0x30]
test byte [rax + r13], 1
je 0x180048b74
mov rdi, qword [rbx + 0x10]
mov r14, qword [rsi + 0x40]
mov rdx, qword [rbp + 0x70]
mov rax, qword [rdx + 0x20]
mov qword [rbp + 0x40], rax
movdqu xmm0, xmmword [rdx]
movdqu xmm1, xmmword [rdx + 0x10]
movdqu xmmword [rbp + 0x30], xmm1
movdqu xmmword [rbp + 0x20], xmm0
mov qword [rbp], 1
mov qword [rbp + 8], rdi
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], r15
cmp r14, qword [rsi + 0x30]
jne 0x18004897a
lea rdx, [0x1801630d8]
call fcn.1800572a0
mov rax, qword [rsi + 0x38]
lea rcx, [r14 + r14*8]
movdqu xmm0, xmmword [rbp]
movdqu xmm1, xmmword [rbp + 0x10]
movups xmm2, xmmword [rbp + 0x20]
movups xmm3, xmmword [rbp + 0x30]
mov rdx, qword [rbp + 0x40]
mov qword [rax + rcx*8 + 0x40], rdx
movups xmmword [rax + rcx*8 + 0x30], xmm3
movups xmmword [rax + rcx*8 + 0x20], xmm2
movdqu xmmword [rax + rcx*8 + 0x10], xmm1
movdqu xmmword [rax + rcx*8], xmm0
lea rdx, [r14 + 1]
mov qword [rsi + 0x40], rdx
cmp rdi, rdx
jae 0x180048cca
mov rax, qword [rsi + 0x38]
lea rcx, [rdi + rdi*8]
mov qword [rax + rcx*8 + 0x10], 1
mov qword [rax + rcx*8 + 0x18], r14
mov qword [rbx], 1
mov qword [rbx + 0x10], r14
jmp 0x180048c10
mov r15, qword [rsi + 0x28]
mov byte [rbp + 0x7f], 1
lea rcx, [rbp - 0x28]
mov rdx, rdi
call fcn.180085de0
mov rcx, qword [rbp + 0x70]
mov rax, qword [rcx + 0x20]
mov qword [rbp - 0x30], rax
movdqu xmm0, xmmword [rcx]
movdqu xmm1, xmmword [rcx + 0x10]
movdqa xmmword [rbp - 0x40], xmm1
movdqa xmmword [rbp - 0x50], xmm0
mov rdx, qword [rsi + 0x28]
cmp rdx, 0x7fff
mov qword [rbp - 8], rdx
ja 0x180048c6c
movups xmm0, xmmword [rbp - 0x28]
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rbp + 0x50], xmm1
movups xmmword [rbp + 0x40], xmm0
movdqu xmm0, xmmword [rcx]
movdqu xmm1, xmmword [rcx + 0x10]
movdqu xmmword [rbp + 0x18], xmm0
movdqu xmmword [rbp + 0x28], xmm1
mov rax, qword [rcx + 0x20]
mov qword [rbp + 0x38], rax
mov word [rbp + 0x60], bx
mov qword [rbp], 0
cmp rdx, qword [rsi + 0x18]
jne 0x180048a7e
lea rcx, [rsi + 0x18]
lea rdx, [0x180163320]
call fcn.180057460
mov rax, qword [rsi + 0x20]
mov r8, qword [rbp - 8]
imul rcx, r8, 0x68
movdqu xmm0, xmmword [rbp]
movdqu xmm1, xmmword [rbp + 0x10]
movups xmm2, xmmword [rbp + 0x20]
movups xmm3, xmmword [rbp + 0x30]
movups xmm4, xmmword [rbp + 0x40]
movups xmm5, xmmword [rbp + 0x50]
mov rdx, qword [rbp + 0x60]
mov qword [rax + rcx + 0x60], rdx
movups xmmword [rax + rcx + 0x50], xmm5
movups xmmword [rax + rcx + 0x40], xmm4
movups xmmword [rax + rcx + 0x30], xmm3
movups xmmword [rax + rcx + 0x20], xmm2
movdqu xmmword [rax + rcx + 0x10], xmm1
movdqu xmmword [rax + rcx], xmm0
inc r8
mov qword [rsi + 0x28], r8
mov rdx, qword [rsi + 0x50]
cmp r14, rdx
jae 0x180048ca0
mov rax, qword [rsi + 0x48]
mov word [rax + r14*4], r15w
mov word [rax + r14*4 + 2], bx
jmp 0x180048b5e
mov r15, qword [rsi]
mov byte [rbp + 0x7f], 1
lea rcx, [rbp - 0x50]
mov rdx, rdi
call fcn.180085de0
cmp r12, 0x200
setae al
cmp r15, 2
setne cl
and cl, al
mov rdx, qword [rbp + 0x70]
mov rax, qword [rdx + 0x20]
mov qword [rbp + 0x20], rax
movdqu xmm0, xmmword [rdx]
movdqu xmm1, xmmword [rdx + 0x10]
movdqa xmmword [rbp + 0x10], xmm1
movdqa xmmword [rbp], xmm0
mov byte [rbp + 0x7f], 0
mov byte [rsp + 0x28], cl
mov qword [rsp + 0x20], r14
lea rdx, [rbp - 0x50]
mov r8, rbp
mov rcx, rsi
mov r9d, ebx
call fcn.180047e60
test rax, rax
jne 0x180048c45
xor eax, eax
add rsp, 0x108
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rdi, qword [rsi + 0x40]
mov rdx, qword [rbp + 0x70]
mov rax, qword [rdx + 0x20]
mov qword [rbp + 0x40], rax
movdqu xmm0, xmmword [rdx]
movdqu xmm1, xmmword [rdx + 0x10]
movdqu xmmword [rbp + 0x30], xmm1
movdqu xmmword [rbp + 0x20], xmm0
mov qword [rbp], 0
mov qword [rbp + 8], r15
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], r15
cmp rdi, qword [rsi + 0x30]
jne 0x180048bc1
lea rdx, [0x1801630c0]
call fcn.1800572a0
mov rax, qword [rsi + 0x38]
lea rcx, [rdi + rdi*8]
movdqu xmm0, xmmword [rbp]
movdqu xmm1, xmmword [rbp + 0x10]
movups xmm2, xmmword [rbp + 0x20]
movups xmm3, xmmword [rbp + 0x30]
mov rdx, qword [rbp + 0x40]
mov qword [rax + rcx*8 + 0x40], rdx
movups xmmword [rax + rcx*8 + 0x30], xmm3
movups xmmword [rax + rcx*8 + 0x20], xmm2
movdqu xmmword [rax + rcx*8 + 0x10], xmm1
movdqu xmmword [rax + rcx*8], xmm0
lea rax, [rdi + 1]
mov qword [rsi + 0x40], rax
mov qword [rbx], 1
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
mov al, 1
jmp 0x180048b60
mov byte [rbp + 0x7f], 1
lea r8, [0x1801631e8]
mov rcx, r15
call fcn.18014ce44
jmp 0x180048cdd
mov r8, qword [rbp + 0x70]
lea rcx, [r8 + 0x18]
mov rax, qword [r8]
mov rdx, qword [r8 + 8]
mov r8, qword [r8 + 0x10]
call qword [rax + 0x20]
lea rax, [0x1801633b0]
mov qword [rsp + 0x20], rax
lea rcx, [0x180163058]
lea r9, [0x1801630a0]
mov r8, rbp
mov edx, 0x17
call fcn.18014d050
mov rax, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x38]
mov r8, qword [rbp - 0x40]
call qword [rax + 0x20]
mov rax, qword [rbp - 0x28]
test rax, rax
je 0x180048c45
mov rax, qword [rax + 0x20]
lea rcx, [rbp - 0x10]
mov rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
mov byte [rbp + 0x7f], 0
call rax
jmp 0x180048c45
mov byte [rbp + 0x7f], 0
lea r8, [0x180163218]
mov rcx, r14
call fcn.18014ce44
jmp 0x180048cdd
mov byte [rbp + 0x7f], 1
lea r8, [0x180163200]
mov rcx, r15
call fcn.18014ce44
jmp 0x180048cdd
mov byte [rbp + 0x7f], 0
lea r8, [0x1801630f0]
mov rcx, rdi
call fcn.18014ce44
ud2