Function at 0x180070d80
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x78]
sub rsp, 0x170
cmp qword [rcx + 0x20], 0
mov qword [rax + 0x10], rsi
mov rsi, r9
mov qword [rax + 0x18], rdi
mov rdi, rcx
mov qword [rax - 0x10], r14
mov r14, r8
mov qword [rax - 0x18], r15
mov r15, rdx
jne 0x180070ff5
cmp qword [rcx + 0x18], 0
mov qword [rax + 8], rbx
jne 0x180070fa0
cmp dword [rcx + 0x60], 0
jne 0x180070f98
movss xmm3, dword [0x180004c54]
xorps xmm0, xmm0
movss xmm2, dword [0x180004dc0]
xor r8d, r8d
movups xmmword [rsp + 0x6c], xmm0
mov eax, 0xffff
mov qword [rsp + 0x48], r8
movups xmmword [rbp - 0x52], xmm0
mov word [rbp - 0x64], ax
xor eax, eax
movups xmmword [rbp - 0x62], xmm0
mov dword [rsp + 0x50], r8d
mov byte [rsp + 0x54], 1
xorps xmm4, xmm4
movups xmm0, xmmword [rsp + 0x48]
mov byte [rsp + 0x68], r8b
mov dword [rbp - 0x78], r8d
movaps xmmword [rbp - 0x30], xmm0
movups xmm0, xmmword [rsp + 0x68]
mov byte [rbp - 0x70], r8b
mov dword [rbp - 0x6c], r8d
movaps xmmword [rbp - 0x10], xmm0
movups xmm0, xmmword [rbp - 0x78]
mov qword [rsp + 0x58], r8
mov dword [rsp + 0x60], 3
shufps xmm0, xmm0, 0xe1
movss xmm0, xmm2
mov dword [rsp + 0x64], 1
movups xmm1, xmmword [rsp + 0x58]
mov qword [rbp - 0x80], r8
shufps xmm0, xmm0, 0xe1
movaps xmmword [rbp - 0x20], xmm1
movups xmm1, xmmword [rsp + 0x78]
mov qword [rbp - 0x42], rax
movaps xmmword [rbp + 0x10], xmm0
movups xmm0, xmmword [rbp - 0x68]
mov qword [rbp - 0x38], r8
movaps xmmword [rbp], xmm1
movups xmm1, xmmword [rbp - 0x48]
mov dword [rbp - 0x14], 1
movss xmm0, xmm3
mov dword [rbp - 0x18], 1
movss xmm3, dword [rbp - 0x1c]
comiss xmm4, xmm3
mov byte [rbp - 0x10], 1
movaps xmmword [rbp + 0x20], xmm0
movups xmm0, xmmword [rbp - 0x58]
movaps xmmword [rbp + 0x40], xmm1
movaps xmmword [rbp + 0x30], xmm0
movsd xmm0, qword [rbp - 0x38]
movsd qword [rbp + 0x50], xmm0
jb 0x180070ec8
movss xmm3, dword [0x180004ca4]
movss dword [rbp - 0x1c], xmm3
cmp byte [rbp + 0x26], al
jne 0x180070f53
cmp byte [0x18002ddd5], r8b
mov eax, dword [0x18002ddd0]
movups xmm0, xmmword [0x18002ddc0]
mov dword [rsp + 0x40], eax
movzx eax, word [0x18002ddd4]
movups xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x44], ax
je 0x180070f36
movabs r9, 0xa0a0a0a0a0a0a0a1
nop word [rax + rax]
mov rax, r9
mul r8
shr rdx, 5
movsx eax, dl
imul ecx, eax, 0x33
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [rsp + r8 + 0x30], al
inc r8
cmp r8, 0x16
jb 0x180070f10
cvttss2si r9d, xmm3
lea r8, [rsp + 0x30]
mov edx, 0x28
lea rcx, [rbp + 0x26]
call fcn.180048cc0
movss xmm3, dword [rbp - 0x1c]
mov eax, 0x85
lea rcx, [0x18002e948]
mov word [rbp + 0x24], ax
lea rdx, [0x180006320]
mov rax, qword [rbp + 8]
mov r8d, 0x24b75
test rax, rax
cmovne rcx, rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rcx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.18006e590
mov dword [rax + 0x44], 0x3f800000
mov rcx, rdi
call fcn.180071890
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x180070fed
movsxd rcx, dword [rdi + 0x2c]
movsxd rax, dword [rdi + 0x28]
imul rcx, rax
shl rcx, 2
call fcn.18004aa80
mov edx, dword [rdi + 0x2c]
imul edx, dword [rdi + 0x28]
mov qword [rdi + 0x20], rax
test edx, edx
jle 0x180070fed
nop dword [rax]
movzx ecx, byte [rbx]
lea rax, [rax + 4]
shl ecx, 0x18
lea rbx, [rbx + 1]
or ecx, 0xffffff
dec edx
mov dword [rax - 4], ecx
test edx, edx
jg 0x180070fd0
mov rbx, qword [rsp + 0x180]
mov rax, qword [rdi + 0x20]
mov qword [r15], rax
mov r15, qword [rsp + 0x160]
test r14, r14
je 0x18007100f
mov eax, dword [rdi + 0x28]
mov dword [r14], eax
mov r14, qword [rsp + 0x168]
test rsi, rsi
je 0x180071021
mov eax, dword [rdi + 0x2c]
mov dword [rsi], eax
mov rax, qword [rbp + 0xa0]
mov rdi, qword [rsp + 0x190]
mov rsi, qword [rsp + 0x188]
test rax, rax
je 0x180071043
mov dword [rax], 4
add rsp, 0x170
pop rbp
ret