Function at 0x14016e390
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push r12
push r15
mov eax, 0x58
call fcn.1400babe0
sub rsp, rax
mov rax, qword [rcx + 0x180]
mov rbx, rcx
mov r10, qword [rcx + 0x168]
mov rsi, r9
mov rcx, qword [rcx + 0x38]
mov r12, r8
mov qword [rsp + 0x98], rax
add rcx, r9
movabs rax, 0xfffffffe0
mov qword [rsp + 0x80], r10
mov r15, rdx
cmp rcx, rax
ja 0x14016e653
cmp rcx, r9
jb 0x14016e653
mov qword [rsp + 0x50], rdi
xor edi, edi
mov qword [rsp + 0x40], r14
mov r14d, dword [rbx + 0x170]
mov qword [rbx + 0x38], rcx
cmp dword [rbx + 0x174], edi
je 0x14016e44f
test r9, r9
jne 0x14016e430
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call qword [rbx + 0x160]
xor eax, eax
mov dword [rbx + 0x174], edi
jmp 0x14016e63e
movups xmm0, xmmword [rbx + 0x40]
mov r14d, reloc.WS2_32.dll_recv
movups xmmword [rbx + 0x188], xmm0
mov qword [rbx + 0x40], rdi
mov qword [rbx + 0x48], rdi
mov dword [rbx + 0x174], edi
mov qword [rsp + 0x88], rbp
mov ebp, r14d
mov qword [rsp + 0x48], r13
mov r13d, dword [rbx + 0xc]
bswap r13d
and ebp, 0xf
je 0x14016e4cb
nop dword [rax + rax]
test rsi, rsi
je 0x14016e4a3
movzx edx, byte [r15]
dec rsi
mov eax, r14d
inc r15
inc r14d
mov byte [rax + rbx + 0x188], dl
movzx ecx, byte [rbp + rbx + 0x10]
xor cl, dl
mov byte [r12], cl
inc r12
inc ebp
and ebp, 0xf
jne 0x14016e470
jmp 0x14016e4ab
test ebp, ebp
jne 0x14016e628
lea r8, [rbx + 0x188]
mov r9d, r14d
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call r10
mov r10, qword [rsp + 0x80]
mov r14d, edi
lea rax, [rbx + 0x60]
cmp rsi, 0x10
jb 0x14016e4f1
test r14d, r14d
je 0x14016e4f1
mov r9d, r14d
lea r8, [rbx + 0x188]
mov rdx, rax
lea rcx, [rbx + 0x40]
call r10
mov r14d, edi
cmp rsi, 0xc00
jb 0x14016e57b
movabs rax, 0xaaaaaaaaaaaaaaab
mul rsi
mov rdi, rdx
shr rdi, 0xb
imul rax, rdi, 0xfffffffffffff400
add rsi, rax
nop dword [rax]
mov r9d, 0xc00
lea rdx, [rbx + 0x60]
mov r8, r15
lea rcx, [rbx + 0x40]
call qword [rsp + pe_nt_image_headers64]
mov r9, qword [rsp + 0x98]
mov r8d, 0xc0
mov rdx, r12
mov qword [rsp + 0x20], rbx
mov rcx, r15
call qword [rsp + 0xa0]
add r13d, 0xc0
add r12, 0xc00
mov eax, r13d
add r15, 0xc00
bswap eax
mov dword [rbx + 0xc], eax
sub rdi, 1
jne 0x14016e520
mov rax, rsi
and rax, 0xfffffffffffffff0
mov qword [rsp + 0x30], rax
je 0x14016e5db
mov rdi, rax
lea rdx, [rbx + 0x60]
mov r9, rax
shr rdi, 4
mov r8, r15
lea rcx, [rbx + 0x40]
call qword [rsp + pe_nt_image_headers64]
mov r9, qword [rsp + 0x98]
mov r8, rdi
mov rdx, r12
mov qword [rsp + 0x20], rbx
mov rcx, r15
call qword [rsp + 0xa0]
add r13d, edi
mov eax, r13d
bswap eax
mov dword [rbx + 0xc], eax
mov rax, qword [rsp + 0x30]
add r12, rax
add r15, rax
sub rsi, rax
test rsi, rsi
je 0x14016e628
mov r8, qword [rsp + 0x98]
lea rdx, [rbx + 0x10]
mov rcx, rbx
call qword [rbx + 0x178]
inc r13d
bswap r13d
mov dword [rbx + 0xc], r13d
nop
movzx ecx, byte [rbp + r15]
mov eax, r14d
inc r14d
mov byte [rax + rbx + 0x188], cl
movzx eax, byte [rbp + rbx + 0x10]
xor al, cl
mov byte [rbp + r12], al
lea ebp, [rbp + 1]
sub rsi, 1
jne 0x14016e600
mov r13, qword [rsp + 0x48]
xor eax, eax
mov rbp, qword [rsp + 0x88]
mov dword [rbx + 0x170], r14d
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x40]
add rsp, 0x58
pop r15
pop r12
pop rsi
pop rbx
ret
mov eax, 0xffffffff
add rsp, 0x58
pop r15
pop r12
pop rsi
pop rbx
ret