Function at 0x14016e980
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 r15, r8
mov qword [rsp + 0x98], rax
add rcx, r9
movabs rax, 0xfffffffe0
mov qword [rsp + 0x80], r10
mov r12, rdx
cmp rcx, rax
ja 0x14016ec3d
cmp rcx, r9
jb 0x14016ec3d
mov qword [rsp + 0x88], rbp
mov ebp, dword [rbx + 0x170]
mov qword [rsp + 0x50], rdi
xor edi, edi
mov qword [rbx + 0x38], rcx
cmp dword [rbx + 0x174], edi
je 0x14016ea40
test r9, r9
jne 0x14016ea22
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call qword [rbx + 0x160]
xor eax, eax
mov dword [rbx + 0x174], edi
jmp 0x14016ec25
movups xmm0, xmmword [rbx + 0x40]
mov ebp, 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 + 0x48], r13
mov r13d, dword [rbx + 0xc]
mov qword [rsp + 0x40], r14
mov r14d, ebp
bswap r13d
and r14d, 0xf
je 0x14016eab9
nop word [rax + rax]
test rsi, rsi
je 0x14016ea91
movzx ecx, byte [r14 + rbx + 0x10]
dec rsi
xor cl, byte [r12]
inc r12
mov byte [r15], cl
inc r15
mov eax, ebp
inc ebp
inc r14d
mov byte [rax + rbx + 0x188], cl
and r14d, 0xf
jne 0x14016ea60
jmp 0x14016ea9a
test r14d, r14d
jne 0x14016ec13
lea r8, [rbx + 0x188]
mov r9d, ebp
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call r10
mov r10, qword [rsp + 0x80]
mov ebp, edi
lea rax, [rbx + 0x60]
cmp rsi, 0x10
jb 0x14016eadd
test ebp, ebp
je 0x14016eadd
mov r9d, ebp
lea r8, [rbx + 0x188]
mov rdx, rax
lea rcx, [rbx + 0x40]
call r10
mov ebp, edi
mov r10, qword [rsp + 0xa0]
cmp rsi, 0xc00
jb 0x14016eb6f
movabs rax, 0xaaaaaaaaaaaaaaab
mul rsi
mov rdi, rdx
shr rdi, 0xb
imul rax, rdi, 0xfffffffffffff400
add rsi, rax
mov r9, qword [rsp + 0x98]
mov r8d, 0xc0
mov rdx, r15
mov qword [rsp + 0x20], rbx
mov rcx, r12
call r10
add r13d, 0xc0
lea rdx, [rbx + 0x60]
mov eax, r13d
lea rcx, [rbx + 0x40]
bswap eax
mov r9d, 0xc00
mov dword [rbx + 0xc], eax
mov r8, r15
call qword [rsp + pe_nt_image_headers64]
mov r10, qword [rsp + 0xa0]
add r15, 0xc00
add r12, 0xc00
sub rdi, 1
jne 0x14016eb10
mov rax, rsi
and rax, 0xfffffffffffffff0
mov qword [rsp + 0x30], rax
je 0x14016ebcb
mov r9, qword [rsp + 0x98]
mov rdi, rax
shr rdi, 4
mov rdx, r15
mov r8, rdi
mov qword [rsp + 0x20], rbx
mov rcx, r12
call r10
add r13d, edi
lea rdx, [rbx + 0x60]
mov rdi, qword [rsp + 0x30]
lea rcx, [rbx + 0x40]
mov eax, r13d
mov r9, rdi
bswap eax
mov r8, r15
mov dword [rbx + 0xc], eax
add r12, rdi
sub rsi, rdi
call qword [rsp + pe_nt_image_headers64]
add r15, rdi
test rsi, rsi
je 0x14016ec13
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 [r14 + rbx + 0x10]
xor cl, byte [r14 + r12]
mov eax, ebp
inc ebp
mov byte [r14 + r15], cl
lea r14d, [r14 + 1]
mov byte [rax + rbx + 0x188], cl
sub rsi, 1
jne 0x14016ebf0
mov r13, qword [rsp + 0x48]
xor eax, eax
mov r14, qword [rsp + 0x40]
mov dword [rbx + 0x170], ebp
mov rbp, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x50]
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