Function at 0x140168c80
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x78
call fcn.1402b4f90
sub rsp, rax
mov rax, qword [0x1403c37a8]
xor rax, rsp
mov qword [rsp + 0x60], rax
movzx r12d, byte [rcx]
lea r15, [rcx + 0x10]
mov r10, qword [rsp + 0xe0]
mov rdi, r9
mov r9, qword [rcx + 0x30]
mov r14, r8
mov rax, qword [rcx + 0x28]
mov rbp, rdx
mov qword [rsp + 0x40], r9
mov rsi, rcx
mov qword [rsp + 0x38], r10
lea rbx, [rcx + 0x20]
mov byte [rsp + 0x30], r12b
mov qword [rsp + 0x48], rax
test r12b, 0x40
jne 0x140168d00
mov r8, r9
mov rdx, r15
call rax
inc qword [rbx]
mov r9, qword [rsp + 0x40]
mov r10, qword [rsp + 0x38]
mov r8d, r12d
xor r13d, r13d
and r8d, 7
mov r12d, reloc.WS2_32.dll_ntohs
sub r12d, r8d
mov byte [rsi], r8b
mov dword [rsp + 0x38], r12d
mov ecx, r13d
cmp r12d, 0xf
jae 0x140168d4b
mov edx, r12d
add rdx, rsi
nop word [rax + rax]
movzx eax, byte [rdx]
mov byte [rdx], r13b
lea rdx, [rdx + 1]
or rcx, rax
shl rcx, 8
sub r8, 1
jne 0x140168d30
lea rbx, [rsi + 0x20]
movzx eax, byte [rsi + 0xf]
or rcx, rax
mov byte [rsi + 0xf], 1
cmp rcx, rdi
je 0x140168d65
mov eax, 0xffffffff
jmp 0x140168fac
lea rax, [rdi + 0xf]
or rax, 8
shr rax, 3
add qword [rbx], rax
movabs rax, 0x2000000000000000
cmp qword [rbx], rax
jbe 0x140168d8d
mov eax, 0xfffffffe
jmp 0x140168fac
mov rbx, rdi
shr rbx, 4
test rbx, rbx
je 0x140168e12
mov qword [rsp + 0x28], r15
mov r8, rbx
mov rdx, r14
mov qword [rsp + 0x20], rsi
mov rcx, rbp
call r10
shl rbx, 4
add rbp, rbx
add r14, rbx
sub rdi, rbx
je 0x140168e12
shr rbx, 4
lea r8, [rsi + 0x10]
mov r9, 0xfffffffffffffff8
mov rdx, r13
sub r9, rsi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 - 1]
lea r8, [r8 - 1]
add rdx, rax
movzx ecx, bl
add rdx, rcx
shr rbx, 8
mov byte [r8], dl
lea rax, [r9 + r8]
shr rdx, 8
test rax, rax
je 0x140168e1b
test rbx, rbx
jne 0x140168de0
test rdx, rdx
jne 0x140168de0
jmp 0x140168e1b
test rdi, rdi
je 0x140168f65
mov edx, r13d
test rdi, rdi
je 0x140168fca
mov rcx, r13
nop word [rax + rax]
movzx eax, byte [rcx + rbp]
inc edx
xor byte [rcx + rsi + 0x10], al
mov rbx, r14
mov ecx, edx
mov r12, rbp
cmp rcx, rdi
jb 0x140168e30
mov r8, qword [rsp + 0x40]
lea rcx, [rsi + 0x10]
mov rbp, qword [rsp + 0x48]
mov rdx, rcx
call rbp
mov r8, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call rbp
mov edx, r13d
mov rbp, r12
cmp rdi, 0x40
jb 0x140168f32
lea eax, [rdi - 1]
mov ecx, eax
lea r8, [rax + r14]
lea rax, [rsp + 0x50]
add rax, rcx
cmp rbx, rax
ja 0x140168e9d
lea rax, [rsp + 0x50]
cmp r8, rax
jae 0x140168f32
lea rax, [rcx + r12]
cmp rbx, rax
ja 0x140168eb2
mov rbp, r12
cmp r8, r12
jae 0x140168f32
mov r8, rdi
and r8, 0xffffffffffffffc0
mov r9d, 0x20
mov rbp, r12
movdqu xmm0, xmmword [rsp + r13 + 0x50]
lea eax, [r9 - 0x10]
add edx, 0x40
movdqu xmm1, xmmword [r12 + r13]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rsp + rax + 0x50]
movdqu xmmword [rbx + r13], xmm1
mov r13d, edx
movdqu xmm1, xmmword [rax + r12]
pxor xmm1, xmm0
movdqu xmmword [rax + rbx], xmm1
mov eax, r9d
movdqu xmm0, xmmword [rsp + rax + 0x50]
movdqu xmm1, xmmword [rax + r12]
pxor xmm1, xmm0
movdqu xmmword [rax + rbx], xmm1
lea eax, [r9 + 0x10]
add r9d, 0x40
movdqu xmm1, xmmword [rax + r12]
movdqu xmm0, xmmword [rsp + rax + 0x50]
pxor xmm1, xmm0
movdqu xmmword [rax + rbx], xmm1
cmp r13, r8
jb 0x140168ec2
mov r12d, dword [rsp + 0x38]
lea r15, [rsi + 0x10]
mov ecx, edx
cmp rcx, rdi
jae 0x140168f65
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + rbp]
inc edx
xor al, byte [rsp + rcx + 0x50]
mov byte [rcx + r14], al
mov ecx, edx
cmp rcx, rdi
jb 0x140168f50
cmp r12d, 0x10
jae 0x140168f81
mov r8d, reloc.WS2_32.dll_recv
mov ecx, r12d
sub r8d, r12d
add rcx, rsi
xor edx, edx
call fcn.1402bb0a0
mov r8, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
xor qword [r15], rax
mov rax, qword [rsp + 0x58]
xor qword [rsi + 0x18], rax
movzx eax, byte [rsp + 0x30]
mov byte [rsi], al
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1402b4ff0
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov r8, qword [rsp + 0x40]
mov rdx, r15
mov rcx, r15
call qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [rsp + 0x48]
mov edx, r13d
jmp 0x140168f3b