Function at 0x1402a2ac0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1403c6030]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, r9
mov rsi, r8
mov r14d, edx
mov r15, rcx
mov dword [rbp - 0x2c], 0x78563412
cmp dword [rcx + 0x58], 1
jbe 0x1402a2d5f
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
xor edi, edi
mov qword [rbp - 0x18], rdi
mov byte [rbp - 0x30], dil
mov edx, edi
mov eax, 2
cmp r8, 0x7e
cmovae edx, eax
mov ecx, 8
cmp r8, 0x10000
cmovae eax, ecx
add rdx, rax
movzx eax, byte [r15 + 0x5c]
neg al
sbb rcx, rcx
and ecx, 4
add rdx, rcx
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x28]
call fcn.1402ae4a0
or r14b, 0x80
mov rax, qword [rbp - 0x28]
mov byte [rax], r14b
movzx eax, byte [r15 + 0x5c]
cmp rsi, 0x7e
jae 0x1402a2ba3
neg al
sbb cl, cl
and cl, 0x80
or cl, sil
mov rax, qword [rbp - 0x28]
mov byte [rax + 1], cl
cmp byte [r15 + 0x5c], dil
je 0x1402a2cac
mov rax, qword [rbp - 0x28]
mov byte [rax + 2], reloc.WS2_32.dll_select
mov rax, qword [rbp - 0x28]
mov byte [rax + 3], reloc.WS2_32.dll_gethostbyname
mov rax, qword [rbp - 0x28]
mov byte [rax + 4], 0x56
mov rax, qword [rbp - 0x28]
mov byte [rax + 5], 0x78
jmp 0x1402a2cac
mov rdx, rsi
shr rdx, 8
cmp rsi, 0x10000
jae 0x1402a2c0a
mov ecx, 0x7e
mov r8d, 0xfe
test al, al
cmovne ecx, r8d
mov rax, qword [rbp - 0x28]
mov byte [rax + 1], cl
mov rax, qword [rbp - 0x28]
mov byte [rax + 2], dl
mov rax, qword [rbp - 0x28]
mov byte [rax + 3], sil
cmp byte [r15 + 0x5c], 0
je 0x1402a2cac
mov rax, qword [rbp - 0x28]
mov byte [rax + 4], reloc.WS2_32.dll_select
mov rax, qword [rbp - 0x28]
mov byte [rax + 5], reloc.WS2_32.dll_gethostbyname
mov rax, qword [rbp - 0x28]
mov byte [rax + 6], 0x56
mov rax, qword [rbp - 0x28]
mov byte [rax + 7], 0x78
jmp 0x1402a2cac
mov ecx, 0x7f
mov r8d, 0xff
test al, al
cmovne ecx, r8d
mov rax, qword [rbp - 0x28]
mov byte [rax + 1], cl
mov rcx, qword [rbp - 0x28]
mov rax, rsi
shr rax, 0x38
mov byte [rcx + 2], al
mov rcx, qword [rbp - 0x28]
mov rax, rsi
shr rax, 0x30
mov byte [rcx + 3], al
mov rcx, qword [rbp - 0x28]
mov rax, rsi
shr rax, 0x28
mov byte [rcx + 4], al
mov rcx, qword [rbp - 0x28]
mov rax, rsi
shr rax, 0x20
mov byte [rcx + 5], al
mov rcx, qword [rbp - 0x28]
mov rax, rsi
shr rax, 0x18
mov byte [rcx + 6], al
mov rcx, qword [rbp - 0x28]
mov rax, rsi
shr rax, 0x10
mov byte [rcx + 7], al
mov rax, qword [rbp - 0x28]
mov byte [rax + 8], dl
mov rax, qword [rbp - 0x28]
mov byte [rax + 9], sil
cmp byte [r15 + 0x5c], 0
je 0x1402a2cac
mov rax, qword [rbp - 0x28]
mov byte [rax + 0xa], reloc.WS2_32.dll_select
mov rax, qword [rbp - 0x28]
mov byte [rax + 0xb], reloc.WS2_32.dll_gethostbyname
mov rax, qword [rbp - 0x28]
mov byte [rax + 0xc], 0x56
mov rax, qword [rbp - 0x28]
mov byte [rax + 0xd], 0x78
mov r9, qword [rbp - 0x20]
mov r8, qword [rbp - 0x28]
sub r9, r8
mov rdx, qword [r15 + 0x28]
lea rcx, [r15 + 0x20]
call fcn.1402af850
mov r9, qword [rbp + 0x50]
sub r9, rbx
mov rdx, qword [r15 + 0x28]
mov r8, rbx
lea rcx, [r15 + 0x20]
call fcn.1402af850
cmp byte [r15 + 0x5c], 0
je 0x1402a2d22
mov r8, qword [r15 + 0x28]
sub r8, qword [r15 + 0x20]
sub r8, rsi
test rsi, rsi
je 0x1402a2d22
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [r15 + 0x20]
add rdx, rdi
movzx ecx, byte [rdx + r8]
mov rax, rdi
and eax, 3
xor cl, byte [rbp + rax - 0x2c]
mov byte [rdx + r8], cl
inc rdi
cmp rdi, rsi
jne 0x1402a2d00
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1402a2d5f
mov rdx, qword [rbp - 0x18]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1402a2d5a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1402a2d5a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402d0d60
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1402d0d40
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret