Function at 0x180039110
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
push rsi
mov rbp, rsp
sub rsp, 0x78
mov rax, qword [0x1800801d0]
movss xmm0, dword [0x180071ca8]
mov rsi, rax
comiss xmm0, dword [rax + 0x1d30]
ja 0x18003962b
cmp qword [rax + 0x1d28], 0
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rdi
mov qword [r11 - 0x18], r14
movabs r14, 0x47ae147ae147ae15
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm7
jne 0x1800391d9
cmp byte [0x180071bbb], 0
movups xmm0, xmmword [0x180071ba8]
mov eax, dword [0x180071bb8]
mov dword [rbp - 0x2c], eax
movups xmmword [rbp - 0x3c], xmm0
je 0x1800391c2
xor r8d, r8d
nop word [rax + rax]
mov rax, r14
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
movsx eax, al
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [rbp + r8 - 0x3c], al
inc r8
cmp r8, 0x14
jb 0x180039190
lea rcx, [rbp - 0x3c]
call fcn.1800330b0
mov qword [rsi + 0x1d28], rax
mov rax, qword [0x1800801d0]
movss xmm1, dword [rsi + 0x10]
lea rdx, [rbp - 0x58]
movss xmm2, dword [rsi + 0x14]
or dword [rax + 0x1b20], 0x10
mulss xmm1, dword [0x180071cac]
mov qword [rax + 0x1b70], 0
mulss xmm2, dword [0x180071cac]
mov qword [rax + 0x1b78], 0
mov dword [rbp - 0x44], 0x7f7fffff
mov dword [rbp - 0x40], 0x7f7fffff
movups xmm0, xmmword [rbp - 0x4c]
mov dword [rbp - 0x58], 1
movss xmm0, xmm1
shufps xmm0, xmm0, 0xe1
movss xmm0, xmm2
shufps xmm0, xmm0, 0xe1
movups xmmword [rax + 0x1b5c], xmm0
mov rax, qword [0x1800801d0]
movss xmm1, dword [rsi + 0x14]
movss xmm2, dword [rsi + 0x10]
mulss xmm1, dword [0x1800713b8]
or dword [rax + 0x1b20], 1
mulss xmm2, dword [0x1800713b8]
mov dword [rax + 0x1b38], 0x3f000000
movss dword [rax + 0x1b34], xmm1
mov dword [rax + 0x1b3c], 0x3f000000
movss dword [rax + 0x1b30], xmm2
mov dword [rax + 0x1b24], 1
mov rbx, qword [0x1800801d0]
movss xmm7, dword [rsi + 0x156c]
movss xmm6, dword [rsi + 0x1570]
addss xmm7, xmm7
movups xmmword [rbp - 0x4c], xmm0
lea rcx, [rbx + 0x1bb8]
movss xmm1, dword [rbx + 0x156c]
addss xmm6, xmm6
movss xmm0, dword [rbx + 0x1570]
movss dword [rbp - 0x54], xmm1
movss dword [rbp - 0x50], xmm0
call fcn.180041460
cmp byte [0x180071bd3], 0
movups xmm0, xmmword [0x180071bc0]
mov eax, dword [0x180071bd0]
movss dword [rbx + 0x156c], xmm7
movaps xmm7, xmmword [rsp + 0x50]
movss dword [rbx + 0x1570], xmm6
movaps xmm6, xmmword [rsp + 0x60]
movups xmmword [rbp - 0x3c], xmm0
mov dword [rbp - 0x2c], eax
je 0x180039352
xor r8d, r8d
nop dword [rax]
mov rax, r14
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
movsx eax, al
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [rbp + r8 - 0x3c], al
inc r8
cmp r8, 0x14
jb 0x180039320
xor edx, edx
lea rcx, [rbp - 0x3c]
mov r8d, 0xc1347
call fcn.18002d340
mov eax, dword [rsi + 0x1a38]
sub eax, 1
movsxd rdi, eax
js 0x180039593
nop word [rax + rax]
mov rax, qword [rsi + 0x1a40]
mov rbx, qword [rax + rdi*8]
cmp byte [rbx + 0x7e], 0
je 0x180039589
cmp rbx, qword [rbx + 0x368]
jne 0x180039589
mov edx, dword [rbx + 0xc]
bt edx, 0x13
jb 0x180039589
mov r10, qword [rbx]
mov rax, r10
cmp r10, 0xffffffffffffffff
jae 0x1800393e3
nop dword [rax + rax]
movzx ecx, byte [rax]
test cl, cl
je 0x1800393da
cmp cl, 0x23
jne 0x1800393d1
cmp byte [rax + 1], cl
je 0x1800393da
inc rax
cmp rax, 0xffffffffffffffff
jb 0x1800393c0
cmp r10, rax
jne 0x180039568
bt edx, 0x1a
jae 0x18003943b
cmp byte [0x180071b77], 0
mov rax, qword [0x180071b70]
mov qword [rbp + 0x18], rax
je 0x180039432
xor r8d, r8d
mov rax, r14
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
movsx eax, al
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [rbp + r8 + 0x18], al
inc r8
cmp r8, 8
jb 0x180039400
lea r10, [rbp + 0x18]
jmp 0x180039568
bt edx, 0xa
jae 0x180039518
cmp byte [0x180071b85], 0
mov eax, dword [0x180071b80]
movsd xmm0, qword [0x180071b78]
mov dword [rbp - 0x44], eax
movzx eax, word [0x180071b84]
mov word [rbp - 0x40], ax
movsd qword [rbp - 0x4c], xmm0
je 0x1800394b2
xor r8d, r8d
nop dword [rax]
nop word [rax + rax]
mov rax, r14
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
movsx eax, al
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [rbp + r8 - 0x4c], al
inc r8
cmp r8, 0xe
jb 0x180039480
lea rdx, [rbp - 0x4c]
mov rcx, r10
call fcn.18002acb0
test eax, eax
jne 0x180039518
movups xmm0, xmmword [0x180071b88]
movups xmmword [rbp - 0x3c], xmm0
psrldq xmm0, 0xf
movd eax, xmm0
test al, al
je 0x180039512
xor r8d, r8d
nop dword [rax]
mov rax, r14
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
movsx eax, al
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [rbp + r8 - 0x3c], al
inc r8
cmp r8, 0x10
jb 0x1800394e0
lea r10, [rbp - 0x3c]
jmp 0x180039568
movzx eax, word [0x180071ba0]
lea r10, [rbp - 0x58]
movsd xmm0, qword [0x180071b98]
movsd qword [rbp - 0x58], xmm0
xor byte [rbp - 0x57], 0x32
xor byte [rbp - 0x56], 0x33
xor byte [rbp - 0x55], 0x34
xor byte [rbp - 0x54], 0x35
xor byte [rbp - 0x53], 0x36
xor byte [rbp - 0x52], 0x37
xor byte [rbp - 0x51], 0x38
mov word [rbp - 0x50], ax
movzx eax, byte [0x180071ba2]
xor byte [rbp - 0x50], 0x39
xor byte [rbp - 0x4f], 0x3a
xor al, 0x3b
mov byte [rbp - 0x58], 0x28
mov byte [rbp - 0x4e], al
cmp qword [rsi + 0x1d18], rbx
lea r9, [rbp + 0x20]
mov rcx, r10
mov qword [rbp + 0x20], 0
sete dl
xor r8d, r8d
call fcn.180062d70
sub rdi, 1
jns 0x180039380
call fcn.180031e50
mov rcx, qword [0x1800801d0]
mov r14, qword [rsp + 0x70]
mov rdi, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
movsxd rax, dword [rcx + 0x1bb8]
mov r8, qword [rcx + 0x1bc0]
lea rdx, [rax + rax*2]
movsxd rax, dword [r8 + rdx*4 - 0xc]
lea r10, [rax + rax*2]
lea rax, [0x180071920]
cmp dword [rax + r10*4], 8
mov r9d, dword [rax + r10*4 + 8]
jne 0x180039625
mov eax, dword [rax + r10*4 + 4]
cmp eax, 1
jne 0x180039606
mov eax, dword [r8 + rdx*4 - 8]
mov dword [r9 + rcx + 0x1568], eax
dec dword [rcx + 0x1bb8]
add rsp, 0x78
pop rsi
pop rbp
ret
cmp eax, 2
jne 0x180039625
mov eax, dword [r8 + rdx*4 - 8]
mov dword [r9 + rcx + 0x1568], eax
mov eax, dword [r8 + rdx*4 - 4]
mov dword [r9 + rcx + 0x156c], eax
dec dword [rcx + 0x1bb8]
add rsp, 0x78
pop rsi
pop rbp
ret