Function at 0x140015d30
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 0x1400160c7
cmp rcx, r9
jb 0x1400160c7
mov qword [rsp + 0x98], r12
mov r12d, dword [rbx + 0x170]
mov qword [rsp + 0x60], r13
xor r13d, r13d
mov qword [rbx + 0x38], rcx
mov dword [rsp + 0x90], r12d
cmp dword [rbx + 0x174], r13d
je 0x140015e0d
test r9, r9
jne 0x140015dda
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call qword [rbx + 0x160]
mov dword [rbx + 0x174], r13d
xor eax, eax
jmp 0x1400160b1
mov rax, qword [rbx + 0x40]
mov r12d, reloc.WS2_32.dll_recv
mov dword [rbx + 0x174], r13d
mov qword [rbx + 0x188], rax
mov rax, qword [rbx + 0x48]
mov qword [rbx + 0x40], r13
mov qword [rbx + 0x48], r13
mov dword [rsp + 0x90], r12d
mov qword [rbx + 0x190], rax
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r15
mov r15d, dword [rbx + 0xc]
mov r14d, r12d
bswap r15d
and r14d, 0xf
mov dword [rsp + 0x20], r14d
je 0x140015e94
movsxd rdx, r12d
nop
test rdi, rdi
je 0x140015e66
movzx ecx, byte [r14 + rbx + 0x10]
inc rdx
inc r12d
xor cl, byte [rsi]
inc rbp
inc rsi
mov byte [rbp - 1], cl
dec rdi
mov byte [rdx + rbx + 0x187], cl
inc r14d
and r14d, 0xf
mov dword [rsp + 0x20], r14d
jne 0x140015e30
jmp 0x140015e6f
test r14d, r14d
jne 0x14001609e
lea r8, [rbx + 0x188]
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
mov r9d, r12d
call r10
mov r10, qword [rsp + 0x28]
mov r12d, r13d
mov dword [rsp + 0x90], r13d
cmp rdi, 0x10
jb 0x140015ebf
test r12d, r12d
je 0x140015ebf
lea r8, [rbx + 0x188]
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
mov r9d, r12d
call r10
mov r12d, r13d
mov dword [rsp + 0x90], r13d
cmp rdi, 0xc00
jb 0x140015f93
mov r12, qword [rsp + 0x30]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rdi
mov rcx, rdx
shr rcx, 0xb
mov rax, rcx
mov qword [rsp + 0x40], rcx
imul rax, rax, 0xfffffffffffff400
add rdi, rax
mov qword [rsp + 0xa8], rdi
mov rdi, qword [rsp + 0x38]
nop word [rax + rax]
mov r13d, 0xc0
nop word [rax + rax]
lea rdx, [rbx + 0x10]
mov r8, r12
mov rcx, rbx
call rdi
inc r15d
add rbp, 0x10
mov eax, r15d
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 r13, 1
mov qword [rbp - 8], rax
jne 0x140015f20
lea r8, [rbp - 0xc00]
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
mov r9d, 0xc00
call qword [rsp + 0x28]
sub qword [rsp + 0x40], 1
jne 0x140015f10
mov rdi, qword [rsp + 0xa8]
mov r12d, dword [rsp + 0x90]
mov r14d, dword [rsp + 0x20]
mov rax, rdi
and rax, 0xfffffffffffffff0
mov qword [rsp + 0x40], rax
je 0x14001603c
cmp rdi, 0x10
jb 0x140016027
mov r12, qword [rsp + 0x30]
mov r13, rdi
shr r13, 4
mov rax, r13
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 r15d
add rbp, 0x10
mov eax, r15d
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 r13, 1
mov qword [rbp - 8], rax
jne 0x140015fd0
mov rdi, qword [rsp + 0xa8]
mov r12d, dword [rsp + 0x90]
mov r14d, dword [rsp + 0x20]
mov rax, qword [rsp + 0x40]
mov r8, rbp
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
sub r8, rax
mov r9, rax
call qword [rsp + 0x28]
test rdi, rdi
je 0x14001609e
mov r8, qword [rsp + 0x30]
lea rdx, [rbx + 0x10]
mov rcx, rbx
call qword [rsp + reloc.WS2_32.dll_getservbyport]
inc r15d
movsxd rcx, r14d
movsxd rax, r12d
bswap r15d
sub rsi, rbp
lea rdx, [rcx + rbp]
lea r9, [rcx + rbx + 0x10]
mov dword [rbx + 0xc], r15d
lea r8, [rax + rbx + 0x188]
add r12d, edi
nop dword [rax + rax]
movzx eax, byte [rsi + rdx]
inc r8
inc r9
xor al, byte [r9 - 1]
inc rdx
sub rdi, 1
mov byte [rdx - 1], al
mov byte [r8 - 1], al
jne 0x140016080
mov r14, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
mov dword [rbx + 0x170], r12d
xor eax, eax
mov r12, qword [rsp + 0x98]
mov r13, qword [rsp + 0x60]
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