Function at 0x18003a410
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
push rsi
mov rbp, rsp
sub rsp, 0x78
mov rax, qword [0x1800821d8]
movss xmm0, dword [0x180073cd8]
mov rsi, rax
comiss xmm0, dword [rax + 0x1d30]
ja 0x18003a92b
cmp qword [rax + 0x1d28], 0
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rdi
mov qword [r11 - 0x18], r14
movabs r14, 0x4e5e0a72f0539783
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm7
jne 0x18003a4d9
cmp byte [0x180073beb], 0
movups xmm0, xmmword [0x180073bd8]
mov eax, dword [0x180073be8]
mov dword [rbp - 0x2c], eax
movups xmmword [rbp - 0x3c], xmm0
je 0x18003a4c2
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, 0x31
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [rbp + r8 - 0x3c], al
inc r8
cmp r8, 0x14
jb 0x18003a490
lea rcx, [rbp - 0x3c]
call fcn.1800343b0
mov qword [rsi + 0x1d28], rax
mov rax, qword [0x1800821d8]
movss xmm1, dword [rsi + 0x10]
lea rdx, [rbp - 0x58]
movss xmm2, dword [rsi + 0x14]
or dword [rax + 0x1b20], 0x10
mulss xmm1, dword [0x180073cdc]
mov qword [rax + 0x1b70], 0
mulss xmm2, dword [0x180073cdc]
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 [0x1800821d8]
movss xmm1, dword [rsi + 0x14]
movss xmm2, dword [rsi + 0x10]
mulss xmm1, dword [0x1800733e8]
or dword [rax + 0x1b20], 1
mulss xmm2, dword [0x1800733e8]
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 [0x1800821d8]
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.180042760
cmp byte [0x180073c03], 0
movups xmm0, xmmword [0x180073bf0]
mov eax, dword [0x180073c00]
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 0x18003a652
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, 0x31
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [rbp + r8 - 0x3c], al
inc r8
cmp r8, 0x14
jb 0x18003a620
xor edx, edx
lea rcx, [rbp - 0x3c]
mov r8d, 0xc1347
call fcn.18002e640
mov eax, dword [rsi + 0x1a38]
sub eax, 1
movsxd rdi, eax
js 0x18003a893
nop word [rax + rax]
mov rax, qword [rsi + 0x1a40]
mov rbx, qword [rax + rdi*8]
cmp byte [rbx + 0x7e], 0
je 0x18003a889
cmp rbx, qword [rbx + 0x368]
jne 0x18003a889
mov edx, dword [rbx + 0xc]
bt edx, 0x13
jb 0x18003a889
mov r10, qword [rbx]
mov rax, r10
cmp r10, 0xffffffffffffffff
jae 0x18003a6e3
nop dword [rax + rax]
movzx ecx, byte [rax]
test cl, cl
je 0x18003a6da
cmp cl, 0x23
jne 0x18003a6d1
cmp byte [rax + 1], cl
je 0x18003a6da
inc rax
cmp rax, 0xffffffffffffffff
jb 0x18003a6c0
cmp r10, rax
jne 0x18003a868
bt edx, 0x1a
jae 0x18003a73b
cmp byte [0x180073ba7], 0
mov rax, qword [0x180073ba0]
mov qword [rbp + 0x18], rax
je 0x18003a732
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, 0x31
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [rbp + r8 + 0x18], al
inc r8
cmp r8, 8
jb 0x18003a700
lea r10, [rbp + 0x18]
jmp 0x18003a868
bt edx, 0xa
jae 0x18003a818
cmp byte [0x180073bb5], 0
mov eax, dword [0x180073bb0]
movsd xmm0, qword [0x180073ba8]
mov dword [rbp - 0x44], eax
movzx eax, word [0x180073bb4]
mov word [rbp - 0x40], ax
movsd qword [rbp - 0x4c], xmm0
je 0x18003a7b2
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, 0x31
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [rbp + r8 - 0x4c], al
inc r8
cmp r8, 0xe
jb 0x18003a780
lea rdx, [rbp - 0x4c]
mov rcx, r10
call fcn.18002bfb0
test eax, eax
jne 0x18003a818
movups xmm0, xmmword [0x180073bb8]
movups xmmword [rbp - 0x3c], xmm0
psrldq xmm0, 0xf
movd eax, xmm0
test al, al
je 0x18003a812
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, 0x31
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [rbp + r8 - 0x3c], al
inc r8
cmp r8, 0x10
jb 0x18003a7e0
lea r10, [rbp - 0x3c]
jmp 0x18003a868
movzx eax, word [0x180073bd0]
lea r10, [rbp - 0x58]
movsd xmm0, qword [0x180073bc8]
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 [0x180073bd2]
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.180064070
sub rdi, 1
jns 0x18003a680
call fcn.180033150
mov rcx, qword [0x1800821d8]
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, [0x180073950]
cmp dword [rax + r10*4], 8
mov r9d, dword [rax + r10*4 + 8]
jne 0x18003a925
mov eax, dword [rax + r10*4 + 4]
cmp eax, 1
jne 0x18003a906
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 0x18003a925
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