Function at 0x140013820
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, [rsp - 0x70]
sub rsp, 0x170
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
mov rax, qword [0x140028040]
xor rax, rsp
mov qword [rbp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
lea r15, [rbp + 0x98]
movabs r12, 0xff00ff00ff00ff00
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], r15
mov rsi, qword [r15]
xor rsi, r12
mov qword [rbp], rsi
xor ebx, ebx
mov qword [r15], rbx
movups xmmword [rbp + 0x18], xmm0
movdqa xmm1, xmmword [0x140023270]
movdqu xmmword [rbp + 0x28], xmm1
mov byte [rbp + 0x18], bl
lea ecx, [rbx + 3]
call qword [sym.imp.libcurl.dll_curl_global_init]
call qword [sym.imp.libcurl.dll_curl_easy_init]
mov rdi, rax
test rax, rax
je 0x140013d7f
movups xmm0, xmmword [0x1400228f0]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [0x140022900]
movups xmmword [rsp + 0x40], xmm1
movsd xmm0, qword [0x140022910]
movsd qword [rsp + 0x50], xmm0
lea eax, [rbx + 0x1f]
lea r13d, [rbx + 4]
mov r14d, dword [0x140028050]
cmp r14d, 2
jl 0x140013a3d
movdqa xmm5, xmmword [0x140023280]
mov edx, ebx
movdqa xmm4, xmmword [0x140023340]
movd xmm6, r13d
movdqa xmm7, xmmword [0x1400232b0]
movd xmm8, eax
movdqa xmm0, xmmword [0x140023320]
movdqa xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x34]
mov r8d, dword [rsp + 0x20]
nop word [rax + rax]
movd xmm2, edx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400232f0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rdx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400232f0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add edx, 8
lea rcx, [rcx + 8]
cmp edx, 0x28
jl 0x140013940
jmp 0x140013a82
lea r9, [rsp + 0x30]
mov r8d, ebx
nop word [rax + rax]
mov eax, 0x51eb851f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x32
add cl, r8b
xor byte [r9], cl
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x28
jl 0x140013a50
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], rbx
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140013aa0
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.140001f10
lea r8, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae r8, qword [rbp - 0x20]
mov edx, 0x2712
mov rcx, rdi
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
mov qword [rbp - 0x10], rbx
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae rax, qword [rbp - 0x20]
mov byte [rax], 0
lea r8, [0x1400082c0]
mov edx, 0x4e2b
mov rcx, rdi
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
movups xmm0, xmmword [0x140022100]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [0x140022110]
movups xmmword [rsp + 0x70], xmm1
movups xmm0, xmmword [0x140022120]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [0x140022130]
movups xmmword [rbp - 0x70], xmm1
movups xmm0, xmmword [0x140022140]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [0x140022150]
movups xmmword [rbp - 0x50], xmm1
movups xmm0, xmmword [0x140022160]
movups xmmword [rbp - 0x40], xmm0
movzx eax, byte [0x140022170]
mov byte [rbp - 0x30], al
cmp r14d, 2
jl 0x140013ca0
movdqa xmm5, xmmword [0x140023280]
movdqa xmm4, xmmword [0x140023340]
movd xmm6, r13d
movdqa xmm7, xmmword [0x1400232b0]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm0, xmmword [0x140023320]
movdqa xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x64]
mov edx, dword [rsp + 0x20]
nop
movd xmm2, ebx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400232f0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rbx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400232f0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add ebx, 8
mov eax, ebx
lea rcx, [rcx + 8]
cmp ebx, 0x70
jl 0x140013ba0
cmp eax, 0x71
jge 0x140013cde
movsxd rax, ebx
lea r8, [rsp + 0x60]
add r8, rax
nop dword [rax + rax]
mov eax, 0x51eb851f
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x32
add cl, bl
xor byte [r8], cl
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x71
jl 0x140013cb0
lea r8, [rsp + 0x60]
mov edx, 0x2722
mov rcx, rdi
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
lea r8, [rbp + 0x18]
mov edx, 0x2711
mov rcx, rdi
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
mov rcx, rdi
call qword [sym.imp.libcurl.dll_curl_easy_perform]
test eax, eax
je 0x140013d38
mov ecx, eax
call qword [sym.imp.libcurl.dll_curl_easy_strerror]
mov rbx, rax
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.curl_easy_perform___failed:__s_n
mov rcx, rax
call fcn.140002240
mov rcx, rdi
call qword [sym.imp.libcurl.dll_curl_easy_cleanup]
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x140013d7f
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013d7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013d7a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001e96c
call qword [sym.imp.libcurl.dll_curl_global_cleanup]
nop
mov rdx, qword [rbp + 0x30]
cmp rdx, 0x10
jb 0x140013dc5
inc rdx
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013dbf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013dbf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001e96c
nop
xor rsi, r12
mov qword [r15], rsi
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.14001e910
lea r11, [rsp + 0x170]
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]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret