Function at 0x1402a5c70
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r14
mov eax, 0x58
call fcn.14042f870
sub rsp, rax
mov rax, qword [rcx + 0x180]
mov rbx, rcx
mov qword [rsp + 0x30], rax
mov rsi, r9
mov rax, qword [rcx + 0x188]
mov rdi, r8
mov rcx, qword [rcx + 0x38]
mov r14, rdx
mov qword [rsp + 0x28], rax
add rcx, r9
movabs rax, 0xfffffffe0
cmp rcx, rax
ja 0x1402a602f
cmp rcx, r9
jb 0x1402a602f
mov qword [rsp + 0x50], r12
xor r12d, r12d
mov qword [rsp + 0x40], r15
mov r15d, dword [rbx + 0x178]
mov qword [rbx + 0x38], rcx
mov dword [rsp + 0x80], r15d
cmp dword [rbx + 0x17c], r12d
je 0x1402a5d3a
lea rcx, [rbx + 0x40]
test r9, r9
jne 0x1402a5d14
lea rdx, [rbx + 0x60]
call qword [rbx + 0x170]
xor eax, eax
mov dword [rbx + 0x17c], r12d
jmp 0x1402a601b
movups xmm0, xmmword [rcx]
mov r15d, reloc.WS2_32.dll_recv
mov dword [rsp + 0x80], r15d
movups xmmword [rbx + 0x190], xmm0
mov qword [rcx], r12
mov qword [rbx + 0x48], r12
mov dword [rbx + 0x17c], r12d
movzx eax, byte [rbx + 0xd]
mov qword [rsp + 0x88], rbp
movzx ebp, byte [rbx + 0xc]
shl ebp, 8
or ebp, eax
mov qword [rsp + 0x48], r13
movzx eax, byte [rbx + 0xe]
mov r13d, r15d
shl ebp, 8
or ebp, eax
movzx eax, byte [rbx + 0xf]
shl ebp, 8
or ebp, eax
and r13d, 0xf
mov dword [rsp + 0x20], r13d
je 0x1402a5de0
test rsi, rsi
je 0x1402a5db1
movzx ecx, byte [r13 + rbx + 0x10]
dec rsi
xor cl, byte [r14]
inc r14
mov byte [rdi], cl
inc rdi
mov eax, r15d
inc r15d
inc r13d
and r13d, 0xf
mov dword [rsp + 0x20], r13d
mov byte [rax + rbx + 0x190], cl
jne 0x1402a5d74
lea rax, [rbx + 0x190]
jmp 0x1402a5dc1
lea rax, [rbx + 0x190]
test r13d, r13d
jne 0x1402a6005
lea rdx, [rbx + 0x60]
mov r9d, r15d
lea rcx, [rbx + 0x40]
mov r8, rax
call qword [rbx + 0x168]
mov r15d, r12d
mov dword [rsp + 0x80], r12d
lea rcx, [rbx + 0x60]
cmp rsi, 0x10
jb 0x1402a5e11
test r15d, r15d
je 0x1402a5e11
mov rdx, rcx
mov r9d, r15d
lea rcx, [rbx + 0x40]
lea r8, [rbx + 0x190]
call qword [rbx + 0x168]
mov r15d, r12d
mov dword [rsp + 0x80], r12d
lea r12, [rbx + 0x10]
cmp rsi, 0xc00
jb 0x1402a5ee9
mov r15, qword [rsp + 0x30]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rsi
mov rcx, rdx
shr rcx, 0xb
imul rax, rcx, 0xfffffffffffff400
mov qword [rsp + 0x38], rcx
add rsi, rax
nop word [rax + rax]
mov r12d, 0xc0
nop word [rax + rax]
mov r8, qword [rsp + 0x28]
lea rdx, [rbx + 0x10]
mov rcx, rbx
call r15
inc ebp
mov byte [rbx + 0xf], bpl
mov eax, ebp
shr eax, 0x18
mov byte [rbx + 0xc], al
mov eax, ebp
shr eax, 0x10
mov byte [rbx + 0xd], al
mov eax, ebp
shr eax, 8
mov byte [rbx + 0xe], al
mov rax, qword [rbx + 0x10]
xor rax, qword [r14]
mov qword [rdi], rax
mov rax, qword [r14 + 8]
add r14, 0x10
xor rax, qword [rbx + 0x18]
mov qword [rdi + 8], rax
add rdi, 0x10
sub r12, 1
jne 0x1402a5e60
lea r8, [rdi - 0xc00]
mov r9d, 0xc00
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call qword [rbx + 0x168]
sub qword [rsp + 0x38], 1
jne 0x1402a5e50
mov r15d, dword [rsp + 0x80]
lea r12, [rbx + 0x10]
mov r13d, dword [rsp + 0x20]
mov rax, rsi
and rax, 0xfffffffffffffff0
mov qword [rsp + 0x38], rax
je 0x1402a5fa3
cmp rsi, 0x10
jb 0x1402a5f8c
mov r15, qword [rsp + 0x28]
mov r13, rsi
shr r13, 4
imul rax, r13, 0xfffffffffffffff0
add rsi, rax
mov qword [rsp + 0x98], rsi
mov rsi, qword [rsp + 0x30]
mov r8, r15
mov rdx, r12
mov rcx, rbx
call rsi
inc ebp
mov byte [rbx + 0xf], bpl
mov eax, ebp
shr eax, 0x18
mov byte [rbx + 0xc], al
mov eax, ebp
shr eax, 0x10
mov byte [rbx + 0xd], al
mov eax, ebp
shr eax, 8
mov byte [rbx + 0xe], al
mov rax, qword [r14]
xor rax, qword [r12]
mov qword [rdi], rax
mov rax, qword [r14 + 8]
add r14, 0x10
xor rax, qword [rbx + 0x18]
mov qword [rdi + 8], rax
add rdi, 0x10
sub r13, 1
jne 0x1402a5f25
mov rsi, qword [rsp + 0x98]
mov r15d, dword [rsp + 0x80]
mov r13d, dword [rsp + 0x20]
mov rax, qword [rsp + 0x38]
mov r8, rdi
lea rdx, [rbx + 0x60]
sub r8, rax
lea rcx, [rbx + 0x40]
mov r9, rax
call qword [rbx + 0x168]
test rsi, rsi
je 0x1402a6005
mov r8, qword [rsp + 0x28]
mov rdx, r12
mov rcx, rbx
call qword [rsp + gethostbyaddr]
inc ebp
mov eax, ebp
mov byte [rbx + 0xf], bpl
shr eax, 0x18
mov byte [rbx + 0xc], al
mov eax, ebp
shr eax, 0x10
mov byte [rbx + 0xd], al
mov eax, ebp
shr eax, 8
mov byte [rbx + 0xe], al
nop word [rax + rax]
mov eax, r13d
inc r13d
movzx ecx, byte [rax + rbx + 0x10]
xor cl, byte [rax + r14]
mov byte [rax + rdi], cl
mov eax, r15d
inc r15d
mov byte [rax + rbx + 0x190], cl
sub rsi, 1
jne 0x1402a5fe0
mov r13, qword [rsp + 0x48]
xor eax, eax
mov rbp, qword [rsp + 0x88]
mov dword [rbx + 0x178], r15d
mov r12, qword [rsp + 0x50]
mov r15, qword [rsp + 0x40]
add rsp, 0x58
pop r14
pop rdi
pop rsi
pop rbx
ret
mov eax, 0xffffffff
add rsp, 0x58
pop r14
pop rdi
pop rsi
pop rbx
ret