Function at 0x180010580
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x18009d7c0]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rdi, rcx
mov qword [rbp + 0x38], rcx
xor ebx, ebx
movups xmm0, xmmword [0x180090830]
movups xmmword [rsp + 0x40], xmm0
movsd xmm0, qword [0x180090840]
movsd qword [rsp + 0x50], xmm0
mov eax, dword [0x180090848]
mov dword [rsp + 0x58], eax
movzx eax, byte [0x18009084c]
mov byte [rsp + 0x5c], al
mov r8d, ebx
movdqa xmm6, xmmword [0x180091500]
mov r15d, dword [reloc.WS2_32.dll_accept]
cmp r15d, 2
jl 0x180010727
movdqa xmm4, xmmword [0x180091460]
movdqa xmm3, xmmword [0x180091550]
movdqa xmm5, xmmword [0x180091480]
movdqa xmm0, xmmword [0x180091530]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x44]
mov edx, dword [rsp + 0x30]
nop word [rax + rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x18
jl 0x180010640
cmp r8d, 0x1d
jge 0x180010770
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4d4873ed
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, r8b
sub al, cl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x1d
jl 0x180010740
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.180002170
mov rcx, rax
call fcn.180017190
cmp byte [0x18009e6c8], 0
jne 0x180010938
movups xmm0, xmmword [0x180090a58]
movups xmmword [rsp + 0x40], xmm0
mov eax, dword [0x180090a68]
mov dword [rsp + 0x50], eax
movzx eax, byte [0x180090a6c]
mov byte [rsp + 0x54], al
cmp r15d, 2
jl 0x1800108d4
movdqa xmm4, xmmword [0x180091460]
movdqa xmm3, xmmword [0x180091550]
movdqa xmm5, xmmword [0x180091480]
movdqa xmm0, xmmword [0x180091530]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x44]
mov edx, dword [rsp + 0x30]
nop
movd xmm2, ebx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
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 xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
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, 0x10
jl 0x1800107f0
cmp eax, 0x15
jge 0x18001090c
movsxd rax, ebx
lea r8, [rsp + 0x40]
add r8, rax
nop
mov eax, 0x4d4873ed
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, bl
sub al, cl
add al, 0x38
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x15
jl 0x1800108e0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.180002170
mov rcx, rax
call fcn.1800170c0
nop
lea rcx, [rdi + 8]
movzx edx, byte [rdi]
call fcn.180002490
nop
xor al, al
jmp 0x180010eff
mov byte [rbp + 0x40], 0
xor edx, edx
lea rcx, [rbp + 0x48]
call fcn.180005c40
nop
lea r14, [0x18009e710]
cmp qword [0x18009e728], 0xf
cmova r14, qword [0x18009e710]
lea rdx, [rbp]
mov rcx, rdi
call fcn.180012f80
mov rsi, rax
movsd xmm0, qword [0x180091120]
movsd qword [rsp + 0x30], xmm0
cmp qword [rax + 0x18], 0xf
jbe 0x180010992
mov rsi, qword [rax]
mov ecx, dword [0x180091128]
mov dword [rsp + 0x38], ecx
jmp 0x18001099c
mov eax, dword [0x180091128]
mov dword [rsp + 0x38], eax
movzx eax, word [0x18009112c]
mov word [rsp + 0x3c], ax
movzx eax, byte [0x18009112e]
mov byte [rsp + 0x3e], al
mov r8d, ebx
cmp r15d, 2
jl 0x180010aa4
movdqa xmm4, xmmword [0x180091550]
movdqa xmm3, xmmword [0x180091460]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180091480]
psubd xmm3, xmm0
andps xmm3, xmm6
packuswb xmm3, xmm3
packuswb xmm3, xmm3
mov eax, dword [0x180091530]
movd xmm0, eax
paddb xmm3, xmm0
movd xmm0, dword [0x180091120]
xorps xmm3, xmm0
movd dword [rsp + 0x30], xmm3
movdqa xmm2, xmmword [0x180091470]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180091480]
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x34]
xorps xmm2, xmm1
movd dword [rsp + 0x34], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rsp + 0x30]
add r9, rax
nop
mov eax, 0x4d4873ed
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, r8b
sub al, cl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xf
jl 0x180010ab0
lea r8, [rsp + 0x30]
lea rdx, [0x18009e750]
lea rcx, [rbp - 0x40]
call fcn.180014330
nop
lea rdx, [0x18009e6f0]
cmp qword [0x18009e708], 0xf
cmova rdx, qword [0x18009e6f0]
mov r8, qword [0x18009e700]
mov rcx, rax
call fcn.180002090
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rcx, qword [rsp + 0x40]
lea r9, [rbp + 0x40]
mov r8, r14
mov rdx, rsi
call fcn.180001eb0
mov esi, eax
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x180010baf
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180010baa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180010baa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18007aa74
movdqa xmm0, xmmword [0x180091400]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x180010c08
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180010bfb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180010bfb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18007aa74
movdqa xmm0, xmmword [0x180091400]
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], 0
mov rdx, qword [rbp + 0x18]
cmp rdx, 0xf
jbe 0x180010c4f
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180010c4a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180010c4a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18007aa74
test esi, esi
je 0x180010cca
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.18007aa30
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], reloc.WS2_32.dll_sendto
mov qword [rsp + 0x58], Ordinal_33
movups xmm0, xmmword [str.CURL_request_failed_]
movups xmmword [rax], xmm0
mov ecx, dword [0x180090558]
mov dword [rax + 0x10], ecx
mov byte [rax + 0x14], 0
lea rcx, [rsp + 0x40]
call fcn.1800170c0
nop
movzx edx, byte [rbp + 0x40]
lea rcx, [rbp + 0x48]
call fcn.180002490
nop
lea rcx, [rdi + 8]
movzx edx, byte [rdi]
call fcn.180002490
nop
xor al, al
jmp 0x180010eff
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x40]
call fcn.180012f80
nop
movsd xmm0, qword [0x180090b38]
movsd qword [rsp + 0x30], xmm0
movzx edx, word [0x180090b40]
mov word [rsp + 0x38], dx
movzx ecx, byte [0x180090b42]
mov byte [rsp + 0x30], 0x52
xor byte [rsp + 0x31], 0x39
xor byte [rsp + 0x32], 0x3a
xor byte [rsp + 0x33], 0x3b
xor byte [rsp + 0x34], 0x3c
xor byte [rsp + 0x35], 0x3d
xor byte [rsp + 0x36], 0x3e
xor byte [rsp + 0x37], 0x3f
xor dl, 0x40
mov byte [rsp + 0x38], dl
xor byte [rsp + 0x39], 0x41
xor cl, 0x42
mov byte [rsp + 0x3a], cl
lea r8, [rsp + 0x30]
mov rcx, rax
call fcn.1800156c0
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rcx, [rbp - 0x80]
call fcn.1800170c0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x180010db9
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180010db4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180010db4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18007aa74
lea rdx, str.success
lea rcx, [rsp + 0x60]
call fcn.180002170
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.1800154d0
lea rdx, [rbp - 0x20]
mov rcx, rax
call fcn.180012f80
nop
movsd xmm0, qword [str.kLYXYNM]
movsd qword [rsp + 0x30], xmm0
movzx eax, word [0x180090b88]
mov word [rsp + 0x38], ax
cmp byte [0x180090b89], 0
je 0x180010e38
mov byte [rsp + 0x30], 0x53
xor byte [rsp + 0x31], 0x39
xor byte [rsp + 0x32], 0x3a
xor byte [rsp + 0x33], 0x3b
xor byte [rsp + 0x34], 0x3c
xor byte [rsp + 0x35], 0x3d
xor byte [rsp + 0x36], 0x3e
xor byte [rsp + 0x37], 0x3f
xor byte [rsp + 0x38], 0x40
xor byte [rsp + 0x39], 0x41
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.1800156c0
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rcx, [rbp - 0x60]
call fcn.1800170c0
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x180010ebb
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180010eb6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180010eb6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18007aa74
lea rdx, str.success
lea rcx, [rsp + 0x60]
call fcn.180002170
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.1800154d0
cmp byte [rax], 4
jne 0x180010f2d
movzx ebx, byte [rax + 8]
movzx edx, byte [rbp + 0x40]
lea rcx, [rbp + 0x48]
call fcn.180002490
nop
lea rcx, [rdi + 8]
movzx edx, byte [rdi]
call fcn.180002490
nop
movzx eax, bl
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.18007aa10
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, rax
call fcn.18000cd70
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.180016470
nop
mov r8, rax
lea rcx, [rbp]
call fcn.180016240
lea rdx, [0x18009ac58]
lea rcx, [rbp]
call sub.VCRUNTIME140.dll__CxxThrowException
int3