Function at 0x180056090
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 r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x180127040]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
xor ebx, ebx
mov qword [rbp - 0x19], rbx
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], reloc.WS2_32.dll_inet_addr
mov qword [rbp + 7], 0xf
movsd xmm0, qword [str.SwitchLevel]
movsd qword [rbp - 0x11], xmm0
movzx eax, word [0x180108938]
mov word [rbp - 9], ax
movzx eax, byte [0x18010893a]
mov byte [rbp - 7], al
mov byte [rbp - 6], bl
xor r9d, r9d
lea rcx, [rbp - 0x11]
call fcn.18002b670
mov qword [rbp - 0x39], rax
mov eax, 0x10
mov word [rbp - 0x31], ax
lea r8, [rbp - 0x39]
xor edx, edx
lea rcx, [rbp - 0x29]
call fcn.1800127a0
nop
mov rdx, qword [rbp + 7]
cmp rdx, 0xf
jbe 0x18005616f
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005616a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005616a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d3c10
movups xmm0, xmmword [str._QA__NnZNZ_K]
movups xmmword [rbp - 0x11], xmm0
mov eax, dword [0x1801089d0]
mov dword [rbp - 1], eax
movzx eax, word [0x1801089d4]
mov word [rbp + 3], ax
movzx eax, byte [0x1801089d6]
mov byte [rbp + 5], al
mov r8d, ebx
mov r15d, dword [0x180127018]
cmp r15d, 2
jl 0x1800562ed
movdqa xmm5, xmmword [0x180110e60]
movdqa xmm4, xmmword [0x180111070]
movdqa xmm6, xmmword [0x180110e90]
movdqa xmm0, xmmword [0x180110f70]
movdqa xmmword [rbp - 0x39], xmm0
lea rcx, [rbp - 0xd]
mov edx, dword [rbp - 0x39]
nop dword [rax + rax]
movd xmm2, r8d
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
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180110f50]
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 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
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180110f50]
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, 0x10
jl 0x1800561e0
cmp r8d, 0x17
jge 0x180056333
movsxd rax, r8d
lea r9, [rbp - 0x11]
add r9, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
sub al, cl
add al, 0x33
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x17
jl 0x180056300
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1f], xmm1
lea rax, [rbp - 0x11]
mov r14, 0xffffffffffffffff
mov r8, r14
inc r8
cmp byte [rax + r8], 0
jne 0x180056350
lea rdx, [rbp - 0x11]
lea rcx, [rbp + 0xf]
call fcn.180020590
nop
xor r9d, r9d
lea rcx, [rbp + 0xf]
call fcn.18002b670
mov qword [rbp - 0x39], rax
mov eax, socket
mov word [rbp - 0x31], ax
mov rdi, qword [rbp - 0x21]
mov rsi, qword [rbp - 0x19]
cmp rdi, rsi
je 0x18005639f
movups xmm0, xmmword [rbp - 0x39]
movups xmmword [rdi], xmm0
add rdi, 0x10
mov qword [rbp - 0x21], rdi
jmp 0x1800563b7
lea r8, [rbp - 0x39]
mov rdx, rdi
lea rcx, [rbp - 0x29]
call fcn.1800127a0
mov rsi, qword [rbp - 0x19]
mov rdi, qword [rbp - 0x21]
mov rdx, qword [rbp + 0x27]
cmp rdx, 0xf
jbe 0x1800563f5
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800563f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800563f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d3c10
movups xmm0, xmmword [str._QAVHMSXO]
movups xmmword [rbp - 0x11], xmm0
movzx eax, word [0x1801089b8]
mov word [rbp - 1], ax
cmp byte [0x1801089b9], 0
je 0x1800565a3
mov r8d, ebx
cmp r15d, 2
jl 0x18005655e
movdqa xmm5, xmmword [0x180110e60]
movdqa xmm4, xmmword [0x180111070]
movdqa xmm6, xmmword [0x180110e90]
movdqa xmm0, xmmword [0x180110f70]
movdqa xmmword [rbp - 0x39], xmm0
lea rcx, [rbp - 0xd]
mov edx, dword [rbp - 0x39]
movd xmm2, r8d
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
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180110f50]
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 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
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180110f50]
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, 0x10
jl 0x180056451
cmp r8d, 0x12
jge 0x1800565a3
movsxd rax, r8d
lea r9, [rbp - 0x11]
add r9, rax
nop dword [rax + rax]
mov eax, 0x8fb823ef
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
sub al, cl
add al, 0x33
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x12
jl 0x180056570
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1f], xmm1
lea rax, [rbp - 0x11]
mov r8, r14
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1800565c0
lea rdx, [rbp - 0x11]
lea rcx, [rbp + 0xf]
call fcn.180020590
nop
xor r9d, r9d
lea rcx, [rbp + 0xf]
call fcn.18002b670
mov qword [rbp - 0x39], rax
mov eax, 9
mov word [rbp - 0x31], ax
cmp rdi, rsi
je 0x180056607
movups xmm0, xmmword [rbp - 0x39]
movups xmmword [rdi], xmm0
add rdi, 0x10
mov qword [rbp - 0x21], rdi
jmp 0x18005661f
lea r8, [rbp - 0x39]
mov rdx, rdi
lea rcx, [rbp - 0x29]
call fcn.1800127a0
mov rsi, qword [rbp - 0x19]
mov rdi, qword [rbp - 0x21]
mov rdx, qword [rbp + 0x27]
cmp rdx, 0xf
jbe 0x18005665d
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180056658
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180056658
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d3c10
movups xmm0, xmmword [str._D_SE_mHZ_XmV..]
movups xmmword [rbp - 0x11], xmm0
movsd xmm0, qword [0x180108998]
movsd qword [rbp - 1], xmm0
mov eax, dword [0x1801089a0]
mov dword [rbp + 7], eax
cmp byte [0x1801089a3], 0
je 0x18005680e
cmp r15d, 2
jl 0x1800567cb
movdqa xmm5, xmmword [0x180110e60]
movdqa xmm4, xmmword [0x180111070]
movdqa xmm6, xmmword [0x180110e90]
movdqa xmm0, xmmword [0x180110f70]
movdqa xmmword [rbp - 0x39], xmm0
lea rcx, [rbp - 0xd]
mov edx, dword [rbp - 0x39]
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
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180110f50]
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
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180110f50]
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, 0x18
jl 0x1800566c1
cmp eax, 0x1c
jge 0x18005680e
movsxd rax, ebx
lea r8, [rbp - 0x11]
add r8, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, bl
sub al, cl
add al, 0x33
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x1c
jl 0x1800567e0
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1f], xmm1
lea rax, [rbp - 0x11]
mov r8, r14
inc r8
cmp byte [rax + r8], 0
jne 0x180056824
lea rdx, [rbp - 0x11]
lea rcx, [rbp + 0xf]
call fcn.180020590
nop
xor r9d, r9d
lea rcx, [rbp + 0xf]
call fcn.18002b670
mov qword [rbp - 0x39], rax
mov eax, 0x109
mov word [rbp - 0x31], ax
cmp rdi, rsi
je 0x180056867
movups xmm0, xmmword [rbp - 0x39]
movups xmmword [rdi], xmm0
add rdi, 0x10
jmp 0x18005687f
lea r8, [rbp - 0x39]
mov rdx, rdi
lea rcx, [rbp - 0x29]
call fcn.1800127a0
mov rsi, qword [rbp - 0x19]
mov rdi, qword [rbp - 0x21]
mov rdx, qword [rbp + 0x27]
cmp rdx, 0xf
jbe 0x1800568bd
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800568b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800568b8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d3c10
mov edx, 0x28
mov rbx, qword [rbp - 0x29]
mov r9, rbx
cmp rbx, rdi
je 0x180056914
mov eax, edx
mov r10, qword [r9]
movzx r11d, word [r9 + 8]
mov r8d, edx
mov rcx, rax
cmp edx, 0x1a0
jge 0x18005690b
cmp word [rcx + r10], r11w
jne 0x1800568f2
cmp rcx, rax
jge 0x180056903
inc r8d
inc rcx
cmp r8d, 0x1a0
jl 0x1800568e6
jmp 0x18005690b
jle 0x18005690b
mov edx, r8d
mov rax, rcx
add r9, 0x10
cmp r9, rdi
jne 0x1800568d0
cmp edx, 0x28
cmovne r14d, edx
mov dword [0x1801270b8], r14d
cmp r14d, 0xffffffff
setne dil
test rbx, rbx
je 0x180056969
sub rsi, rbx
and rsi, 0xfffffffffffffff0
mov rax, rbx
cmp rsi, 0x1000
jb 0x18005695e
add rsi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005695e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rsi
mov rcx, rbx
call fcn.1800d3c10
movzx eax, dil
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1800d3880
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret