Function at 0x180352fb0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r14
mov eax, 0x68
call fcn.180409810
sub rsp, rax
mov rax, qword [rcx + 0x180]
mov rbx, rcx
mov qword [rsp + 0x38], rax
mov r14, r9
mov rax, qword [rcx + 0x188]
mov rsi, r8
mov rcx, qword [rcx + 0x38]
mov rdi, rdx
mov qword [rsp + 0x30], rax
add rcx, r9
movabs rax, 0xfffffffe0
cmp rcx, rax
ja 0x18035331e
cmp rcx, r9
jb 0x18035331e
mov qword [rsp + 0x58], r13
xor r13d, r13d
mov qword [rsp + 0x50], r15
mov r15d, dword [rbx + 0x178]
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0x60], r12
mov qword [rbx + 0x38], rcx
mov dword [rsp + 0x90], r15d
cmp dword [rbx + 0x17c], r13d
je 0x1803530cb
lea rcx, [rbx + 0x40]
mov qword [rsp + 0x28], rcx
test r9, r9
jne 0x180353086
lea rdx, [rbx + 0x60]
call qword [rbx + 0x170]
mov dword [rbx + 0x17c], r13d
mov r12, qword [rsp + 0x60]
xor eax, eax
mov rbp, qword [rsp + 0x98]
mov r13, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
add rsp, 0x68
pop r14
pop rdi
pop rsi
pop rbx
ret
movups xmm0, xmmword [rcx]
lea rax, [rbx + 0x190]
mov dword [rsp + 0x20], r13d
mov r15d, reloc.WS2_32.dll_recv
mov qword [rsp + 0xa8], rax
movups xmmword [rax], xmm0
mov qword [rcx], r13
mov ebp, r13d
mov qword [rbx + 0x48], r13
mov r12d, dword [rbx + 0xc]
bswap r12d
mov dword [rsp + 0x90], r15d
mov dword [rbx + 0x17c], r13d
jmp 0x180353152
mov r12d, dword [rbx + 0xc]
lea r8, [rbx + 0x190]
mov ebp, r15d
mov qword [rsp + 0xa8], r8
and ebp, 0xf
lea rax, [rbx + 0x40]
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], rax
bswap r12d
je 0x180353152
test r14, r14
je 0x18035312e
movzx ecx, byte [rdi]
dec r14
mov eax, r15d
inc rdi
inc r15d
mov byte [rax + rbx + 0x190], cl
xor cl, byte [rbp + rbx + 0x10]
mov byte [rsi], cl
inc rsi
inc ebp
and ebp, 0xf
mov dword [rsp + 0x20], ebp
jne 0x1803530f6
lea r8, [rbx + 0x190]
jmp 0x180353136
test ebp, ebp
jne 0x180353312
lea rdx, [rbx + 0x60]
mov r9d, r15d
lea rcx, [rbx + 0x40]
call qword [rbx + 0x168]
mov r15d, r13d
mov dword [rsp + 0x90], r13d
lea rax, [rbx + 0x60]
cmp r14, 0x10
jb 0x180353185
test r15d, r15d
je 0x180353185
mov r8, qword [rsp + 0xa8]
mov rdx, rax
mov rcx, qword [rsp + 0x28]
mov r9d, r15d
call qword [rbx + 0x168]
mov r15d, r13d
mov dword [rsp + 0x90], r13d
cmp r14, 0xc00
jb 0x18035323a
mov r15, qword [rsp + 0x30]
movabs rax, 0xaaaaaaaaaaaaaaab
mul r14
shr rdx, 0xb
imul rax, rdx, 0xfffffffffffff400
mov qword [rsp + 0x40], rdx
add r14, rax
mov qword [rsp + 0xa8], r14
nop
mov rcx, qword [rsp + 0x28]
lea rdx, [rbx + 0x60]
mov r9d, 0xc00
mov r8, rdi
call qword [rbx + 0x168]
mov r14, qword [rsp + 0x38]
mov ebp, 0xc0
mov r8, r15
lea rdx, [rbx + 0x10]
mov rcx, rbx
call r14
inc r12d
mov eax, r12d
bswap eax
mov dword [rbx + 0xc], eax
mov rax, qword [rdi]
xor rax, qword [rbx + 0x10]
mov qword [rsi], rax
mov rax, qword [rdi + 8]
add rdi, 0x10
xor rax, qword [rbx + 0x18]
mov qword [rsi + 8], rax
add rsi, 0x10
sub rbp, 1
jne 0x1803531e2
sub qword [rsp + 0x40], 1
jne 0x1803531c0
mov r14, qword [rsp + 0xa8]
mov ebp, dword [rsp + 0x20]
mov r15d, dword [rsp + 0x90]
mov r9, r14
and r9, 0xfffffffffffffff0
je 0x1803532d0
mov rcx, qword [rsp + 0x28]
lea rdx, [rbx + 0x60]
mov r8, rdi
call qword [rbx + 0x168]
cmp r14, 0x10
jb 0x1803532d0
mov r15, qword [rsp + 0x30]
mov rbp, r14
shr rbp, 4
imul rax, rbp, 0xfffffffffffffff0
add r14, rax
mov qword [rsp + 0xa8], r14
mov r14, qword [rsp + 0x38]
nop
mov r8, r15
lea rdx, [rbx + 0x10]
mov rcx, rbx
call r14
inc r12d
mov eax, r12d
bswap eax
mov dword [rbx + 0xc], eax
mov rax, qword [rdi]
xor rax, qword [rbx + 0x10]
mov qword [rsi], rax
mov rax, qword [rdi + 8]
add rdi, 0x10
xor rax, qword [rbx + 0x18]
mov qword [rsi + 8], rax
add rsi, 0x10
sub rbp, 1
jne 0x180353280
mov r14, qword [rsp + 0xa8]
mov ebp, dword [rsp + 0x20]
mov r15d, dword [rsp + 0x90]
test r14, r14
je 0x180353312
mov r8, qword [rsp + 0x30]
lea rdx, [rbx + 0x10]
mov rcx, rbx
call qword [rsp + reloc.WS2_32.dll_getservbyport]
inc r12d
bswap r12d
mov dword [rbx + 0xc], r12d
nop
mov edx, ebp
inc ebp
mov eax, r15d
inc r15d
movzx ecx, byte [rdx + rdi]
mov byte [rax + rbx + 0x190], cl
xor cl, byte [rdx + rbx + 0x10]
mov byte [rdx + rsi], cl
sub r14, 1
jne 0x1803532f0
mov dword [rbx + 0x178], r15d
jmp 0x180353063
mov eax, 0xffffffff
add rsp, 0x68
pop r14
pop rdi
pop rsi
pop rbx
ret