Function at 0x140150c70
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x140264330]
xor rax, rsp
mov qword [rsp + 0x58], rax
movzx edi, byte [rcx]
mov rax, qword [rcx + 0x28]
mov r13, qword [rsp + 0xd0]
mov r15, r8
mov r8, qword [rcx + 0x30]
mov rsi, r9
mov rbp, rdx
mov rbx, rcx
mov byte [rsp + 0x30], dil
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x40], rax
test dil, 0x40
jne 0x140150cd3
lea rdx, [rcx + 0x10]
call rax
inc qword [rbx + 0x20]
mov r8, qword [rsp + 0x38]
movzx eax, dil
mov edi, reloc.WS2_32.dll_ntohs
xor r14d, r14d
and eax, 7
mov r12d, edi
mov ecx, r14d
sub r12d, eax
mov byte [rbx], al
cmp r12d, edi
jae 0x140150d16
mov edx, r12d
add rdx, rbx
sub edi, r12d
nop dword [rax + rax]
movzx eax, byte [rdx]
mov byte [rdx], r14b
lea rdx, [rdx + 1]
or rcx, rax
shl rcx, 8
dec rdi
jne 0x140150d00
movzx eax, byte [rbx + 0xf]
mov byte [rbx + 0xf], 1
or rcx, rax
cmp rcx, rsi
je 0x140150d2e
or eax, 0xffffffff
jmp 0x140150efe
lea rax, [rsi + 0xf]
or rax, 8
shr rax, 3
add qword [rbx + 0x20], rax
movabs rax, 0x2000000000000000
cmp qword [rbx + 0x20], rax
jbe 0x140150d58
mov eax, 0xfffffffe
jmp 0x140150efe
mov rdi, rsi
shr rdi, 4
test rdi, rdi
je 0x140150de1
lea rax, [rbx + 0x10]
mov r9, r8
mov rdx, r15
mov qword [rsp + 0x28], rax
mov r8, rdi
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call r13
shl rdi, 4
add rbp, rdi
add r15, rdi
sub rsi, rdi
je 0x140150eb7
lea r9, [rbx + 8]
shr rdi, 4
mov rdx, r14
lea r8, [r9 + 8]
neg r9
nop word [rax + rax]
movzx eax, byte [r8 - 1]
lea r8, [r8 - 1]
movzx ecx, dil
add rdx, rax
lea rax, [r9 + r8]
shr rdi, 8
add rdx, rcx
mov byte [r8], dl
shr rdx, 8
test rax, rax
je 0x140150de1
test rdi, rdi
jne 0x140150db0
test rdx, rdx
jne 0x140150db0
test rsi, rsi
je 0x140150eb7
mov edx, r14d
mov rcx, r14
movzx eax, byte [rcx + rbp]
inc edx
xor byte [rcx + rbx + 0x10], al
mov ecx, edx
cmp rcx, rsi
jb 0x140150df0
mov r13, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
lea rcx, [rbx + 0x10]
mov r8, r13
mov rdx, rcx
call rdi
lea rdx, [rsp + 0x48]
mov r8, r13
mov rcx, rbx
call rdi
mov edx, r14d
cmp rsi, 0x10
jb 0x140150e92
lea eax, [rsi - 1]
mov ecx, eax
lea rdi, [rax + r15]
lea rax, [rsp + 0x48]
add rax, rcx
cmp r15, rax
ja 0x140150e4d
lea rax, [rsp + 0x48]
cmp rdi, rax
jae 0x140150e92
lea rax, [rcx + rbp]
cmp r15, rax
ja 0x140150e5b
cmp rdi, rbp
jae 0x140150e92
mov rax, rsi
mov rcx, rsi
and eax, 0xf
sub rcx, rax
nop word [rax + rax]
movdqu xmm1, xmmword [r14 + rbp]
movdqu xmm0, xmmword [rsp + r14 + 0x48]
add edx, 0x10
pxor xmm1, xmm0
movdqu xmmword [r14 + r15], xmm1
mov r14d, edx
cmp r14, rcx
jb 0x140150e70
mov ecx, edx
cmp rcx, rsi
jae 0x140150ebc
nop dword [rax]
movzx eax, byte [rcx + rbp]
inc edx
xor al, byte [rsp + rcx + 0x48]
mov byte [rcx + r15], al
mov ecx, edx
cmp rcx, rsi
jb 0x140150ea0
jmp 0x140150ebc
mov r13, qword [rsp + 0x38]
cmp r12d, 0x10
jae 0x140150ed4
mov ecx, reloc.WS2_32.dll_recv
mov edi, r12d
add rdi, rbx
sub ecx, r12d
xor eax, eax
rep stosb byte [rdi], al
lea rdx, [rsp + 0x48]
mov r8, r13
mov rcx, rbx
call qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
xor qword [rbx + 0x10], rax
mov rax, qword [rsp + 0x50]
xor qword [rbx + 0x18], rax
movzx eax, byte [rsp + 0x30]
mov byte [rbx], al
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401bb2c0
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret