Function at 0x1400382f0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rsi
sub rsp, 0x70
mov r9, rdx
mov rsi, rcx
test r8, r8
je 0x140038622
cmp byte [r8], 0
je 0x140038622
mov qword [rax + 8], rbx
mov r10d, 0x50305735
mov qword [rax + 0x10], rbp
mov r11d, 0x12345671
mov qword [rax + 0x18], rdi
mov ebp, 7
mov qword [rax - 0x10], r12
mov rbx, rcx
mov qword [rax - 0x18], r13
mov edi, r10d
mov qword [rax - 0x20], r14
lea r13, [rdx + 8]
mov qword [rax - 0x28], r15
mov r14d, r11d
movaps xmmword [rax - 0x48], xmm7
mov r15d, ebp
movaps xmmword [rax - 0x58], xmm8
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [r8 + rax], 0
jne 0x140038360
mov r12d, eax
add r12, r8
cmp r8, r12
jae 0x1400383ad
movzx eax, byte [r8]
cmp al, 0x20
je 0x1400383a5
cmp al, 9
je 0x1400383a5
mov edx, eax
mov ecx, edi
and ecx, 0x3f
add ecx, r15d
imul ecx, eax
mov eax, edi
shl eax, 8
add ecx, eax
mov eax, r14d
shl eax, 8
xor edi, ecx
xor eax, edi
add r14d, eax
add r15d, edx
inc r8
cmp r8, r12
jb 0x140038375
movsd xmm7, qword [0x1400a8490]
movsd xmm8, qword [0x14009af88]
mov r15, qword [rsp + 0x50]
mov r12, qword [rsp + 0x68]
cmp r9, r13
jae 0x1400384d7
movaps xmmword [rsp + 0x40], xmm6
movzx eax, byte [r9]
cmp al, 0x20
je 0x140038408
cmp al, 9
je 0x140038408
mov edx, eax
mov ecx, r10d
and ecx, 0x3f
add ecx, ebp
imul ecx, eax
mov eax, r10d
shl eax, 8
add ecx, eax
mov eax, r11d
shl eax, 8
xor r10d, ecx
xor eax, r10d
add r11d, eax
add ebp, edx
inc r9
cmp r9, r13
jb 0x1400383d6
movsd xmm6, qword [0x14009af90]
xor edi, r10d
btr edi, 0x1f
xor r14d, r11d
btr r14d, 0x1f
mov eax, 5
mul edi
mov eax, edi
mov ebp, 8
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1d
imul eax, eax, 0x3fffffff
sub edi, eax
mov eax, 5
mul r14d
mov eax, r14d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1d
imul eax, eax, 0x3fffffff
sub r14d, eax
lea eax, [r14 + rdi*2]
xorps xmm0, xmm0
add edi, eax
add r14d, 0x21
mov eax, 5
mul edi
mov eax, edi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1d
imul eax, eax, 0x3fffffff
sub edi, eax
mov eax, 5
add r14d, edi
mul r14d
cvtsi2sd xmm0, rdi
mov eax, r14d
sub eax, edx
shr eax, 1
divsd xmm0, xmm7
add eax, edx
shr eax, 0x1d
imul eax, eax, 0x3fffffff
mulsd xmm0, xmm8
sub r14d, eax
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
addsd xmm0, xmm6
cvttsd2si eax, xmm0
mov byte [rsi], al
inc rsi
sub rbp, 1
jne 0x140038463
movaps xmm6, xmmword [rsp + 0x40]
jmp 0x140038520
xor edi, 0xd0305735
xor r14d, r11d
btr edi, 0x1f
btr r14d, 0x1f
mov ecx, r14d
mov eax, 5
mul edi
mov eax, edi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1d
imul eax, eax, 0x3fffffff
sub edi, eax
mov eax, 5
mul r14d
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0x1d
imul ecx, ecx, 0x3fffffff
sub r14d, ecx
xorps xmm0, xmm0
lea ecx, [r14 + rdi*2]
add edi, ecx
mov eax, 5
mul edi
mov eax, edi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1d
imul eax, eax, 0x3fffffff
sub edi, eax
mov eax, edi
cvtsi2sd xmm0, rax
divsd xmm0, xmm7
mulsd xmm0, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
movaps xmm8, xmmword [rsp + 0x20]
mov rcx, rsi
movaps xmm7, xmmword [rsp + 0x30]
sub rcx, rbx
mov r14, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x88]
cvttsd2si edx, xmm0
movsx eax, dl
movd xmm1, eax
xor eax, eax
cmp rbx, rsi
punpcklbw xmm1, xmm1
punpcklwd xmm1, xmm1
cmova rcx, rax
pshufd xmm1, xmm1, 0
test rcx, rcx
je 0x1400385ff
cmp rcx, 0x40
jb 0x1400385ff
and rcx, 0xffffffffffffffc0
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rbx]
add rax, 0x40
xorps xmm0, xmm1
movdqu xmmword [rbx], xmm0
movdqu xmm0, xmmword [rbx + 0x10]
xorps xmm0, xmm1
movdqu xmmword [rbx + 0x10], xmm0
movdqu xmm0, xmmword [rbx + 0x20]
xorps xmm0, xmm1
movdqu xmmword [rbx + 0x20], xmm0
movdqu xmm0, xmmword [rbx + 0x30]
xorps xmm0, xmm1
movdqu xmmword [rbx + 0x30], xmm0
add rbx, 0x40
cmp rax, rcx
jne 0x1400385c0
cmp rbx, rsi
je 0x14003860e
xor byte [rbx], dl
inc rbx
cmp rbx, rsi
jne 0x140038604
mov rbx, qword [rsp + 0x80]
mov rax, rsi
mov byte [rsi], 0
add rsp, 0x70
pop rsi
ret
mov byte [rcx], 0
mov rax, rcx
add rsp, 0x70
pop rsi
ret