Function at 0x1400160e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [rcx + 0x178]
mov r10, qword [rcx + 0x168]
mov rbx, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rcx + 0x180]
mov rdi, r9
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x38]
mov rbp, r8
lea rcx, [r9 + rax]
movabs rax, 0xfffffffe0
mov rsi, rdx
mov qword [rsp + 0x28], r10
cmp rcx, rax
ja 0x140016466
cmp rcx, r9
jb 0x140016466
mov qword [rsp + 0x98], r12
mov r12d, dword [rbx + 0x170]
mov qword [rsp + 0x50], r15
xor r15d, r15d
mov qword [rbx + 0x38], rcx
mov dword [rsp + 0x90], r12d
cmp dword [rbx + 0x174], r15d
je 0x1400161bd
test r9, r9
jne 0x14001618a
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call qword [rbx + 0x160]
mov dword [rbx + 0x174], r15d
xor eax, eax
jmp 0x140016450
mov rax, qword [rbx + 0x40]
mov r12d, reloc.WS2_32.dll_recv
mov dword [rbx + 0x174], r15d
mov qword [rbx + 0x188], rax
mov rax, qword [rbx + 0x48]
mov qword [rbx + 0x40], r15
mov qword [rbx + 0x48], r15
mov dword [rsp + 0x90], r12d
mov qword [rbx + 0x190], rax
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r14
mov r14d, dword [rbx + 0xc]
mov r13d, r12d
bswap r14d
and r13d, 0xf
mov dword [rsp + 0x20], r13d
je 0x140016248
movsxd r8, r12d
nop
test rdi, rdi
je 0x14001621a
movzx edx, byte [rsi]
inc rbp
inc r12d
mov byte [r8 + rbx + 0x188], dl
movzx ecx, byte [r13 + rbx + 0x10]
inc r8
xor cl, dl
inc rsi
dec rdi
mov byte [rbp - 1], cl
inc r13d
and r13d, 0xf
mov dword [rsp + 0x20], r13d
jne 0x1400161e0
jmp 0x140016223
test r13d, r13d
jne 0x14001643d
lea r8, [rbx + 0x188]
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
mov r9d, r12d
call r10
mov r10, qword [rsp + 0x28]
mov r12d, r15d
mov dword [rsp + 0x90], r15d
cmp rdi, 0x10
jb 0x140016273
test r12d, r12d
je 0x140016273
lea r8, [rbx + 0x188]
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
mov r9d, r12d
call r10
mov r12d, r15d
mov dword [rsp + 0x90], r15d
cmp rdi, 0xc00
jb 0x14001634a
mov r12, qword [rsp + 0x30]
movabs rax, 0xaaaaaaaaaaaaaaab
lea rcx, [rbx + 0x60]
mul rdi
mov r13, rdx
lea r10, [rbx + 0x40]
shr r13, 0xb
mov rax, r13
mov qword [rsp + 0x40], r13
imul rax, rax, 0xfffffffffffff400
add rdi, rax
mov qword [rsp + 0xa8], rdi
mov rdi, qword [rsp + 0x38]
mov rdx, rcx
mov r9d, 0xc00
mov r8, rsi
mov rcx, r10
call qword [rsp + 0x28]
mov r15d, 0xc0
nop dword [rax]
lea rdx, [rbx + 0x10]
mov r8, r12
mov rcx, rbx
call rdi
inc r14d
add rbp, 0x10
mov eax, r14d
add rsi, 0x10
bswap eax
mov dword [rbx + 0xc], eax
mov rax, qword [rsi - 0x10]
xor rax, qword [rbx + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rsi - 8]
xor rax, qword [rbx + 0x18]
sub r15, 1
mov qword [rbp - 8], rax
jne 0x1400162e0
mov r13, qword [rsp + 0x40]
lea rcx, [rbx + 0x60]
lea r10, [rbx + 0x40]
sub r13, 1
mov qword [rsp + 0x40], r13
jne 0x1400162c0
mov rdi, qword [rsp + 0xa8]
mov r12d, dword [rsp + 0x90]
mov r13d, dword [rsp + 0x20]
mov r9, rdi
and r9, 0xfffffffffffffff0
je 0x1400163e2
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
mov r8, rsi
call qword [rsp + 0x28]
cmp rdi, 0x10
jb 0x1400163e2
mov r12, qword [rsp + 0x30]
mov r15, rdi
shr r15, 4
mov rax, r15
imul rax, rax, 0xfffffffffffffff0
add rdi, rax
mov qword [rsp + 0xa8], rdi
mov rdi, qword [rsp + 0x38]
nop
lea rdx, [rbx + 0x10]
mov r8, r12
mov rcx, rbx
call rdi
inc r14d
add rbp, 0x10
mov eax, r14d
add rsi, 0x10
bswap eax
mov dword [rbx + 0xc], eax
mov rax, qword [rsi - 0x10]
xor rax, qword [rbx + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rsi - 8]
xor rax, qword [rbx + 0x18]
sub r15, 1
mov qword [rbp - 8], rax
jne 0x140016390
mov rdi, qword [rsp + 0xa8]
mov r12d, dword [rsp + 0x90]
mov r13d, dword [rsp + 0x20]
test rdi, rdi
je 0x14001643d
mov r8, qword [rsp + 0x30]
lea rdx, [rbx + 0x10]
mov rcx, rbx
call qword [rsp + reloc.WS2_32.dll_getservbyport]
inc r14d
movsxd rax, r13d
movsxd rcx, r12d
bswap r14d
sub rsi, rbp
lea rdx, [rax + rbp]
lea r8, [rax + rbx + 0x10]
mov dword [rbx + 0xc], r14d
lea r9, [rcx + rbx + 0x188]
add r12d, edi
nop
movzx eax, byte [rsi + rdx]
inc rdx
inc r9
mov byte [r9 - 1], al
xor al, byte [r8]
inc r8
sub rdi, 1
mov byte [rdx - 1], al
jne 0x140016420
mov r14, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov dword [rbx + 0x170], r12d
xor eax, eax
mov r12, qword [rsp + 0x98]
mov r15, qword [rsp + 0x50]
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret
or eax, 0xffffffff
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret