Function at 0x1800040b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
mov rbp, rsp
sub rsp, 0x70
xor sil, sil
call fcn.1800045d0
test al, al
jne 0x1800040d7
mov rsi, qword [rsp + 0x90]
add rsp, 0x70
pop rbp
ret
mov qword [rsp + 0x80], rbx
mov rbx, qword [0x180b5ed08]
test rbx, rbx
je 0x1800045b4
cmp rbx, qword [0x180b5ef08]
je 0x1800045b4
cmp byte [0x180237cb1], sil
mov rax, qword [0x180b60468]
vmovsd xmm0, qword [str.BAVpXCQMC_]
mov r8, qword [rax + 0x208]
movzx eax, word [0x180237cb0]
mov word [rbp - 0x48], ax
vmovsd qword [rbp - 0x50], xmm0
je 0x180004153
xor byte [rbp - 0x4f], 0x33
xor byte [rbp - 0x4e], 0x34
xor byte [rbp - 0x4d], 0x35
xor byte [rbp - 0x4c], 0x36
xor byte [rbp - 0x4b], 0x37
xor byte [rbp - 0x4a], 0x38
xor byte [rbp - 0x49], 0x39
xor byte [rbp - 0x48], 0x3a
xor byte [rbp - 0x47], 0x3b
mov byte [rbp - 0x50], reloc.WS2_32.dll_WSASetLastError
lea rdx, [rbp - 0x50]
mov rcx, rbx
call r8
test eax, eax
je 0x1800045b4
cmp byte [0x180237cb1], sil
mov rax, qword [0x180b60468]
vmovsd xmm0, qword [str.BAVpXCQMC_]
mov r8, qword [rax + 0x50]
movzx eax, word [0x180237cb0]
mov word [rbp - 0x48], ax
vmovsd qword [rbp - 0x50], xmm0
je 0x1800041b9
xor byte [rbp - 0x4f], 0x33
xor byte [rbp - 0x4e], 0x34
xor byte [rbp - 0x4d], 0x35
xor byte [rbp - 0x4c], 0x36
xor byte [rbp - 0x4b], 0x37
xor byte [rbp - 0x4a], 0x38
xor byte [rbp - 0x49], 0x39
xor byte [rbp - 0x48], 0x3a
xor byte [rbp - 0x47], 0x3b
mov byte [rbp - 0x50], reloc.WS2_32.dll_WSASetLastError
lea rdx, [rbp - 0x50]
mov rcx, rbx
call r8
mov rbx, rax
test rax, rax
je 0x1800045b4
cmp rax, qword [0x180b5ef08]
je 0x1800045b4
cmp byte [0x180237ccd], sil
mov rcx, qword [0x180b60468]
vmovsd xmm0, qword [str.UV_eZVAHrR_Q_]
movzx eax, word [0x180237ccc]
mov r8, qword [rcx + 0x208]
mov ecx, dword [0x180237cc8]
mov dword [rbp - 0x38], ecx
vmovsd qword [rbp - 0x40], xmm0
mov word [rbp - 0x34], ax
je 0x18000424c
xor byte [rbp - 0x3f], 0x33
xor byte [rbp - 0x3e], 0x34
xor byte [rbp - 0x3d], 0x35
xor byte [rbp - 0x3c], 0x36
xor byte [rbp - 0x3b], 0x37
xor byte [rbp - 0x3a], 0x38
xor byte [rbp - 0x39], 0x39
xor byte [rbp - 0x38], 0x3a
xor byte [rbp - 0x37], 0x3b
xor byte [rbp - 0x36], 0x3c
xor byte [rbp - 0x35], 0x3d
xor byte [rbp - 0x34], 0x3e
xor byte [rbp - 0x33], 0x3f
mov byte [rbp - 0x40], 0x67
lea rdx, [rbp - 0x40]
mov rcx, rbx
call r8
test eax, eax
je 0x1800045b4
cmp byte [0x180237ccd], sil
mov rax, qword [0x180b60468]
vmovsd xmm0, qword [str.UV_eZVAHrR_Q_]
mov qword [rsp + 0x88], rdi
mov r9, qword [rax + 0x48]
mov eax, dword [0x180237cc8]
mov dword [rbp - 0x38], eax
movzx eax, word [0x180237ccc]
mov word [rbp - 0x34], ax
vmovsd qword [rbp - 0x40], xmm0
je 0x1800042d3
xor byte [rbp - 0x3f], 0x33
xor byte [rbp - 0x3e], 0x34
xor byte [rbp - 0x3d], 0x35
xor byte [rbp - 0x3c], 0x36
xor byte [rbp - 0x3b], 0x37
xor byte [rbp - 0x3a], 0x38
xor byte [rbp - 0x39], 0x39
xor byte [rbp - 0x38], 0x3a
xor byte [rbp - 0x37], 0x3b
xor byte [rbp - 0x36], 0x3c
xor byte [rbp - 0x35], 0x3d
xor byte [rbp - 0x34], 0x3e
xor byte [rbp - 0x33], 0x3f
mov byte [rbp - 0x40], 0x67
xor r8d, r8d
lea rdx, [rbp - 0x40]
mov rcx, rbx
call r9
mov rdi, rax
test rax, rax
je 0x1800045ac
cmp rax, qword [0x180b5ef08]
je 0x1800045ac
cmp byte [0x180237d23], sil
mov ebx, 8
mov rcx, qword [0x180b60468]
vmovsd xmm0, qword [str.__wZ_ZYWN]
vmovaps xmmword [rsp + 0x60], xmm6
vmovaps xmmword [rsp + 0x50], xmm7
mov r10, qword [rcx + 0x208]
mov ecx, dword [0x180237d20]
mov dword [rbp - 0x48], ecx
vmovaps xmmword [rsp + 0x40], xmm8
vmovsd qword [rbp - 0x50], xmm0
je 0x18000443a
vmovdqu xmm5, xmmword [0x1802493c0]
vmovdqu xmm6, xmmword [0x1802498c0]
vpunpckldq xmm0, xmm5, xmm5
vpmuldq xmm3, xmm0, xmm6
vpunpckhdq xmm1, xmm5, xmm5
vpmuldq xmm2, xmm1, xmm6
vshufps xmm0, xmm3, xmm2, 0xdd
vpsrad xmm4, xmm0, 4
vpsrld xmm1, xmm4, 0x1f
vpaddd xmm0, xmm1, xmm4
vpmulld xmm2, xmm0, xmmword [0x180249420]
vpsubd xmm3, xmm5, xmm2
vpshufb xmm0, xmm3, xmmword [0x180249360]
vpaddb xmm2, xmm0, xmmword [str.22222222222222223333333333333333]
vmovdqu xmm5, xmmword [0x180249400]
vmovd xmm0, dword [str.__wZ_ZYWN]
vpxor xmm1, xmm2, xmm0
vmovd dword [rbp - 0x50], xmm1
vpunpckhdq xmm1, xmm5, xmm5
vpmuldq xmm2, xmm1, xmm6
vpunpckldq xmm0, xmm5, xmm5
vpmuldq xmm3, xmm0, xmm6
vshufps xmm0, xmm3, xmm2, 0xdd
vpsrad xmm4, xmm0, 4
vpsrld xmm1, xmm4, 0x1f
vpaddd xmm0, xmm1, xmm4
vpmulld xmm2, xmm0, xmmword [0x180249420]
vmovd xmm1, dword [rbp - 0x4c]
vpsubd xmm3, xmm5, xmm2
vpshufb xmm0, xmm3, xmmword [0x180249360]
vpaddb xmm2, xmm0, xmmword [str.22222222222222223333333333333333]
vpxor xmm0, xmm2, xmm1
vmovd dword [rbp - 0x4c], xmm0
mov r8d, ebx
lea r9, [rbp - 0x48]
nop word [rax + rax]
mov eax, 0x51eb851f
lea r9, [r9 + 1]
mul r8d
shr edx, 4
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x32
xor byte [r9 - 1], al
cmp r8d, 0xc
jl 0x180004410
lea rdx, [rbp - 0x50]
mov rcx, rdi
call r10
test eax, eax
je 0x18000458d
cmp byte [0x180237d23], sil
mov rax, qword [0x180b60468]
vmovsd xmm0, qword [str.__wZ_ZYWN]
mov r9, qword [rax + 0x48]
mov eax, dword [0x180237d20]
mov dword [rbp - 0x48], eax
vmovsd qword [rbp - 0x50], xmm0
je 0x180004567
vmovdqu xmm5, xmmword [0x1802493c0]
vmovdqu xmm7, xmmword [0x1802498c0]
mov eax, dword [str.22222222222222223333333333333333]
lea r8, [rbp - 0x48]
vpunpckldq xmm0, xmm5, xmm5
vpmuldq xmm3, xmm0, xmm7
vpunpckhdq xmm1, xmm5, xmm5
vpmuldq xmm2, xmm1, xmm7
vshufps xmm0, xmm3, xmm2, 0xdd
vpsrad xmm4, xmm0, 4
vpsrld xmm1, xmm4, 0x1f
vpaddd xmm0, xmm1, xmm4
vpmulld xmm2, xmm0, xmmword [0x180249420]
vpsubd xmm3, xmm5, xmm2
vpshufb xmm4, xmm3, xmmword [0x180249360]
vmovdqu xmm5, xmmword [0x180249400]
vmovd xmm0, eax
vpaddb xmm1, xmm4, xmm0
vmovd xmm0, dword [str.__wZ_ZYWN]
vpxor xmm1, xmm1, xmm0
vmovd dword [rbp - 0x50], xmm1
vpunpckhdq xmm1, xmm5, xmm5
vpmuldq xmm2, xmm1, xmm7
vpunpckldq xmm0, xmm5, xmm5
vpmuldq xmm3, xmm0, xmm7
vshufps xmm0, xmm3, xmm2, 0xdd
vpsrad xmm4, xmm0, 4
vpsrld xmm1, xmm4, 0x1f
vpaddd xmm0, xmm1, xmm4
vpmulld xmm2, xmm0, xmmword [0x180249420]
vmovd xmm1, dword [rbp - 0x4c]
vpsubd xmm3, xmm5, xmm2
vpshufb xmm4, xmm3, xmmword [0x180249360]
vmovd xmm0, eax
vpaddb xmm2, xmm4, xmm0
vpxor xmm0, xmm2, xmm1
vmovd dword [rbp - 0x4c], xmm0
mov eax, 0x51eb851f
lea r8, [r8 + 1]
mul ebx
shr edx, 4
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, bl
inc ebx
sub al, cl
add al, 0x32
xor byte [r8 - 1], al
cmp ebx, 0xc
jl 0x180004541
xor r8d, r8d
lea rdx, [rbp - 0x50]
mov rcx, rdi
call r9
mov rcx, qword [0x180b60468]
mov rdx, qword [rcx + 0xd8]
mov rcx, rax
call rdx
test eax, eax
setne sil
mov rdx, qword [0x180b60468]
mov rcx, rdi
call qword [rdx + 0x40]
vmovaps xmm8, xmmword [rsp + 0x40]
vmovaps xmm7, xmmword [rsp + 0x50]
vmovaps xmm6, xmmword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
movzx eax, sil
mov rsi, qword [rsp + 0x90]
add rsp, 0x70
pop rbp
ret