Function at 0x140001770
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rdi, rcx
movsd xmm0, qword [str._KTP]
movsd qword [rbp - 0x39], xmm0
mov eax, dword [0x140005460]
mov dword [rbp - 0x31], eax
movzx eax, byte [0x140005464]
mov byte [rbp - 0x2d], al
xor esi, esi
mov r8d, esi
mov r10d, dword [0x140008090]
cmp r10d, 2
jl 0x1400018c6
movdqa xmm4, xmmword [0x1400055d0]
movdqa xmm2, xmmword [0x140005580]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400055a0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400055b0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.7777777777777777]
movd xmm0, dword [str._KTP]
xorps xmm2, xmm0
movd dword [rbp - 0x39], xmm2
movdqa xmm3, xmmword [0x140005590]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400055a0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400055b0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.7777777777777777]
movd xmm0, dword [rbp - 0x35]
xorps xmm2, xmm0
movd dword [rbp - 0x35], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rbp - 0x39]
add r9, rax
mov eax, 0xa0a0a0a1
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
movzx eax, r8b
sub al, cl
add al, 0x37
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xd
jl 0x1400018d0
movsd xmm0, qword [str.WXwU_L28]
movsd qword [rbp - 0x49], xmm0
mov eax, dword [0x1400054b0]
mov dword [rbp - 0x41], eax
movzx eax, byte [0x1400054b4]
mov byte [rbp - 0x3d], al
mov ecx, esi
cmp r10d, 2
jl 0x140001a35
movdqa xmm4, xmmword [0x1400055d0]
movdqa xmm2, xmmword [0x140005580]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400055a0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400055b0]
packuswb xmm2, xmm2
mov eax, dword [str.7777777777777777]
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [str.WXwU_L28]
xorps xmm2, xmm0
movd dword [rbp - 0x49], xmm2
movdqa xmm3, xmmword [0x140005590]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400055a0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400055b0]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x45]
xorps xmm2, xmm1
movd dword [rbp - 0x45], xmm2
mov ecx, 8
movsxd rax, ecx
lea r8, [rbp - 0x49]
add r8, rax
nop
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x33
movzx eax, cl
sub al, dl
add al, 0x37
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0xd
jl 0x140001a40
lea rdx, [rbp - 0x49]
lea rcx, [rbp + 0x37]
call fcn.140002fc0
nop
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0x17]
call fcn.140002fc0
nop
lea rdx, [rbp + 0x37]
lea rcx, [rbp - 9]
call fcn.140001290
mov rbx, rax
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x29]
call fcn.140001290
nop
cmp qword [rbx + 0x18], 7
jbe 0x140001ab2
mov rbx, qword [rbx]
cmp qword [rax + 0x18], 7
jbe 0x140001abc
mov rax, qword [rax]
mov rdx, rbx
mov rcx, rax
call fcn.140001c20
mov rbx, rax
mov rdx, qword [rbp - 0x11]
cmp rdx, 7
jbe 0x140001b0d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b08
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b08
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000368c
movdqa xmm0, xmmword [0x140005570]
movdqu xmmword [rbp - 0x19], xmm0
mov word [rbp - 0x29], si
mov rdx, qword [rbp + 0xf]
cmp rdx, 7
jbe 0x140001b61
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b5c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b5c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000368c
movdqa xmm0, xmmword [0x140005570]
movdqu xmmword [rbp + 7], xmm0
mov word [rbp - 9], si
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x140001bb1
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001bab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000368c
nop
mov rdx, qword [rbp + 0x4f]
cmp rdx, 0xf
jbe 0x140001bef
inc rdx
mov rcx, qword [rbp + 0x37]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001bea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000368c
test rbx, rbx
jne 0x140001bf8
xor eax, eax
jmp 0x140001bfd
mov rcx, rdi
call rbx
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret