Function at 0x140052630
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xe8]
sub rsp, 0x1c0
movups xmm0, xmmword [str.q_thb_YVMH_QQ42]
mov r15, qword [0x1413fbc90]
xor edi, edi
cmp byte [0x14010fa35], dil
mov r12d, dword [0x14011f090]
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm10
mov eax, dword [0x14010fa30]
movdqa xmm10, xmmword [0x140112570]
mov dword [rbp - 0x28], eax
movzx eax, word [0x14010fa34]
movups xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x24], ax
movsd xmm0, qword [0x14010fa28]
movsd qword [rbp - 0x30], xmm0
je 0x14005282d
mov ecx, edi
cmp r12d, 2
jl 0x1400527e8
movdqa xmm0, xmmword [0x1401125a0]
lea rdx, [rbp - 0x3c]
movdqa xmm4, xmmword [0x1401124f0]
movdqa xmm3, xmmword [0x1401128b0]
movdqa xmm5, xmmword [str.11117777]
movdqa xmmword [rbp - 0x20], xmm0
mov r8d, dword [rbp - 0x20]
nop dword [rax]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm4
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm10
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movd dword [rdx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm10
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x18
jl 0x140052700
cmp ecx, 0x1e
jge 0x14005282d
movsxd rax, ecx
lea r8, [rbp - 0x40]
add r8, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x5397829d
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, cl
inc ecx
sub al, dl
add al, 0x32
xor byte [r8 - 1], al
cmp ecx, 0x1e
jl 0x140052800
movss xmm2, dword [0x140112318]
lea rdx, [rbp - 0x40]
mov rcx, qword [r15 + 0xa0]
call fcn.1400295b0
mov r13, qword [r15 + 0xa0]
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp - 0x5c], rax
mov rax, qword [0x1413fbc90]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x38], edi
mov byte [rsp + 0x3c], 1
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x4c], 1
mov qword [rsp + 0x54], rdi
mov qword [rsp + 0x5c], rdi
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x74], 0x7f7fffff
mov dword [rsp + 0x7c], edi
mov dword [rbp - 0x80], 0x3f800000
mov qword [rbp - 0x50], rdi
mov byte [rsp + 0x78], 1
mov byte [rsp + 0x50], 1
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
test rax, rax
je 0x1400528c6
inc dword [rax + 0x3c8]
mov ecx, 0x6106c
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
lea rbx, [0x1400d5b70]
lea rax, [0x1400d5b60]
mov qword [0x141432230], r14
mov rcx, rbx
mov qword [0x141432220], rax
mov qword [0x141432238], r14
lea rsi, [r14 + 0x6106c]
mov qword [0x141432228], rsi
call fcn.14002cac0
cmp rax, rbx
je 0x140052932
cmp qword [0x141432238], rsi
ja 0x14005292b
mov rcx, rax
mov rbx, rax
call fcn.14002cac0
cmp rax, rbx
jne 0x140052912
lea rbx, [0x1400d5b70]
movups xmm0, xmmword [rsp + 0x30]
lea rax, [0x140112050]
movups xmm2, xmmword [rsp + 0x40]
lea rdx, [rsp + 0x30]
movups xmm4, xmmword [rsp + 0x60]
mov rcx, r13
movups xmm3, xmmword [rsp + 0x50]
movups xmm5, xmmword [rsp + 0x70]
movups xmm6, xmmword [rbp - 0x80]
movups xmm7, xmmword [rbp - 0x70]
movups xmm8, xmmword [rbp - 0x60]
movsd xmm1, qword [rbp - 0x50]
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rsp + 0x40], xmm2
movups xmmword [rsp + 0x60], xmm4
mov byte [rbp - 4], 1
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x38], 0x6106c
movups xmmword [rsp + 0x50], xmm3
movups xmmword [rsp + 0x70], xmm5
movups xmmword [rbp - 0x80], xmm6
movups xmmword [rbp - 0x70], xmm7
movups xmmword [rbp - 0x60], xmm8
movsd qword [rbp - 0x50], xmm1
mov dword [rsp + 0x44], 0x41600000
mov qword [rsp + 0x68], rax
call fcn.140029330
mov rax, qword [0x1413fbc90]
mov r13, qword [r15 + 0xa0]
test rax, rax
je 0x1400529db
inc dword [rax + 0x3c8]
mov ecx, 0x6106c
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
mov rcx, rbx
lea rax, [0x1400d5b60]
mov qword [0x141432230], r14
mov qword [0x141432220], rax
mov qword [0x141432238], r14
lea rsi, [r14 + 0x6106c]
mov qword [0x141432228], rsi
call fcn.14002cac0
cmp rax, rbx
je 0x140052a39
cmp qword [0x141432238], rsi
ja 0x140052a39
mov rcx, rax
mov rbx, rax
call fcn.14002cac0
cmp rax, rbx
jne 0x140052a20
xorps xmm0, xmm0
mov qword [rsp + 0x5c], rdi
movups xmmword [rbp - 0x7c], xmm0
mov qword [rsp + 0x30], rdi
xor eax, eax
movups xmmword [rbp - 0x6c], xmm0
lea rdx, [rsp + 0x30]
mov qword [rbp - 0x5c], rax
movups xmm7, xmmword [rbp - 0x70]
lea rax, [0x140112050]
movups xmm8, xmmword [rbp - 0x60]
mov rcx, r13
mov dword [rsp + 0x38], edi
mov byte [rsp + 0x3c], 1
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp - 0x10], xmm0
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x4c], 1
movups xmm2, xmmword [rsp + 0x40]
mov qword [rsp + 0x68], rdi
movups xmm4, xmmword [rsp + 0x60]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x54], rdi
movups xmm3, xmmword [rsp + 0x50]
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x74], 0x7f7fffff
mov byte [rsp + 0x78], dil
mov dword [rsp + 0x7c], edi
movups xmm5, xmmword [rsp + 0x70]
mov dword [rbp - 0x80], 0x3f800000
movups xmm6, xmmword [rbp - 0x80]
mov qword [rbp - 0x50], rdi
movsd xmm1, qword [rbp - 0x50]
movups xmmword [rsp + 0x40], xmm2
movups xmmword [rsp + 0x60], xmm4
mov byte [rbp - 4], 1
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x38], 0x6106c
movups xmmword [rsp + 0x50], xmm3
movups xmmword [rsp + 0x70], xmm5
movups xmmword [rbp - 0x80], xmm6
movups xmmword [rbp - 0x70], xmm7
movups xmmword [rbp - 0x60], xmm8
movsd qword [rbp - 0x50], xmm1
mov dword [rsp + 0x44], 0x41980000
mov qword [rsp + 0x68], rax
call fcn.140029330
movss xmm3, dword [0x140112338]
lea rax, [0x14010ef44]
mov rcx, qword [r15 + 0xa0]
lea rdx, [0x1400a8cf0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call fcn.140029a40
movss xmm3, dword [0x140112320]
lea rdx, [0x1413ecc80]
mov rcx, qword [r15 + 0xa0]
mov r8d, 0xe43c
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call fcn.1400298e0
cmp byte [0x14010fa35], dil
movups xmm0, xmmword [str.q_thb_YVMH_QQ42]
mov qword [0x1413fbea0], rax
mov eax, dword [0x14010fa30]
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x28], eax
movsd xmm0, qword [0x14010fa28]
movzx eax, word [0x14010fa34]
movsd qword [rbp - 0x30], xmm0
mov word [rbp - 0x24], ax
je 0x140052d1e
cmp r12d, 2
jl 0x140052ce6
movdqa xmm0, xmmword [0x1401125a0]
lea rcx, [rbp - 0x3c]
movdqa xmm4, xmmword [0x1401124f0]
movdqa xmm3, xmmword [0x1401128b0]
movdqa xmm5, xmmword [str.11117777]
movdqa xmmword [rbp - 0x20], xmm0
mov edx, dword [rbp - 0x20]
nop
movd xmm2, edi
lea eax, [rdi + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm4
add edi, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm10
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm10
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edi, 0x18
jl 0x140052c00
cmp edi, 0x1e
jge 0x140052d1e
movsxd rax, edi
lea r8, [rbp - 0x40]
add r8, rax
mov eax, 0x5397829d
lea r8, [r8 + 1]
imul edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, dil
inc edi
sub al, dl
add al, 0x32
xor byte [r8 - 1], al
cmp edi, 0x1e
jl 0x140052cf0
movss xmm2, dword [0x140112318]
lea rdx, [rbp - 0x40]
mov rcx, qword [r15 + 0xa0]
call fcn.1400295b0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm10, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret