Function at 0x140164e70
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r14
mov eax, 0x78
call fcn.1401f4630
sub rsp, rax
mov rax, qword [rcx + 0x178]
mov rbx, rcx
mov r11, qword [rcx + 0x168]
mov r14, r9
mov qword [rsp + 0x48], rax
mov rsi, r8
mov rax, qword [rcx + 0x180]
mov rdi, rdx
mov rcx, qword [rcx + 0x38]
mov qword [rsp + 0x40], rax
add rcx, r9
movabs rax, 0xfffffffe0
mov qword [rsp + 0x38], r11
cmp rcx, rax
ja 0x140165213
cmp rcx, r9
jb 0x140165213
mov qword [rsp + 0xa8], rbp
lea r10, [rbx + 0x40]
mov qword [rsp + 0x70], r12
xor r12d, r12d
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], r15
mov r15d, dword [rbx + 0x170]
mov dword [rsp + 0xa0], r15d
mov qword [rbx + 0x38], rcx
mov qword [rsp + 0x28], r10
cmp dword [rbx + 0x174], r12d
je 0x140164f90
test r9, r9
jne 0x140164f51
lea rdx, [rbx + 0x60]
mov rcx, r10
call qword [rbx + 0x160]
mov dword [rbx + 0x174], r12d
mov r13, qword [rsp + 0x68]
xor eax, eax
mov r12, qword [rsp + 0x70]
mov rbp, qword [rsp + 0xa8]
mov r15, qword [rsp + 0x60]
add rsp, 0x78
pop r14
pop rdi
pop rsi
pop rbx
ret
movups xmm0, xmmword [r10]
lea rcx, [rbx + 0x188]
mov dword [rsp + 0x20], r12d
lea rax, [rbx + 0xc]
mov r15d, reloc.WS2_32.dll_recv
movups xmmword [rcx], xmm0
mov qword [r10], r12
mov r13d, r12d
mov qword [rbx + 0x48], r12
mov ebp, dword [rax]
bswap ebp
mov dword [rsp + 0xa0], r15d
mov dword [rbx + 0x174], r12d
jmp 0x140165026
mov ebp, dword [rbx + 0xc]
lea rax, [rbx + 0xc]
mov r13d, r15d
mov qword [rsp + 0x30], rax
and r13d, 0xf
lea rcx, [rbx + 0x188]
bswap ebp
mov dword [rsp + 0x20], r13d
je 0x14016502b
test r14, r14
je 0x140165207
movzx edx, byte [rdi]
dec r14
mov eax, r15d
inc rdi
inc r15d
mov byte [rax + rbx + 0x188], dl
movzx ecx, byte [r13 + rbx + 0x10]
xor cl, dl
mov byte [rsi], cl
inc rsi
inc r13d
and r13d, 0xf
jne 0x140164fb3
lea r8, [rbx + 0x188]
mov r9d, r15d
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call r11
mov r11, qword [rsp + 0x38]
lea r10, [rbx + 0x40]
mov qword [rsp + 0x28], r10
lea rcx, [rbx + 0x188]
mov r15d, r12d
mov dword [rsp + 0xa0], r12d
mov dword [rsp + 0x20], r13d
lea rax, [rbx + 0xc]
mov qword [rsp + 0x30], rax
lea rax, [rbx + 0x60]
cmp r14, 0x10
jb 0x140165059
test r15d, r15d
je 0x140165059
mov r8, rcx
mov r9d, r15d
mov rcx, r10
mov rdx, rax
call r11
mov r10, qword [rsp + 0x28]
mov r15d, r12d
mov dword [rsp + 0xa0], r12d
cmp r14, 0xc00
jb 0x14016511e
mov r15, qword [rsp + 0x30]
movabs rax, 0xaaaaaaaaaaaaaaab
mul r14
shr rdx, 0xb
imul rax, rdx, 0xfffffffffffff400
mov qword [rsp + 0x50], rdx
add r14, rax
mov qword [rsp + 0xb8], r14
nop dword [rax]
nop word [rax + rax]
mov r9d, 0xc00
lea rdx, [rbx + 0x60]
mov r8, rdi
mov rcx, r10
call qword [rsp + 0x38]
mov r14, qword [rsp + 0x48]
mov r12d, 0xc0
nop
mov r8, qword [rsp + 0x40]
lea rdx, [rbx + 0x10]
mov rcx, rbx
call r14
inc ebp
mov eax, ebp
bswap eax
mov dword [r15], eax
mov rax, qword [rbx + 0x10]
xor rax, qword [rdi]
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 r12, 1
jne 0x1401650c0
sub qword [rsp + 0x50], 1
mov r10, qword [rsp + 0x28]
jne 0x1401650a0
mov r14, qword [rsp + 0xb8]
mov r15d, dword [rsp + 0xa0]
mov r13d, dword [rsp + 0x20]
mov r9, r14
and r9, 0xfffffffffffffff0
je 0x1401651b2
mov rcx, qword [rsp + 0x28]
lea rdx, [rbx + 0x60]
mov r8, rdi
call qword [rsp + 0x38]
cmp r14, 0x10
jb 0x1401651b2
mov r15, qword [rsp + 0x30]
mov r12, r14
shr r12, 4
imul rax, r12, 0xfffffffffffffff0
add r14, rax
mov qword [rsp + 0xb8], r14
mov r14, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
lea rdx, [rbx + 0x10]
mov rcx, rbx
call r14
inc ebp
mov eax, ebp
bswap eax
mov dword [r15], eax
mov rax, qword [rbx + 0x10]
xor rax, qword [rdi]
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 r12, 1
jne 0x140165161
mov r14, qword [rsp + 0xb8]
mov r15d, dword [rsp + 0xa0]
mov r13d, dword [rsp + 0x20]
test r14, r14
je 0x140165207
mov r8, qword [rsp + 0x40]
lea rdx, [rbx + 0x10]
mov rcx, rbx
call qword [rsp + 0x48]
mov rax, qword [rsp + 0x30]
inc ebp
bswap ebp
mov dword [rax], ebp
nop dword [rax]
nop word [rax + rax]
mov edx, r13d
inc r13d
mov eax, r15d
inc r15d
movzx ecx, byte [rdx + rdi]
mov byte [rax + rbx + 0x188], cl
movzx eax, byte [rdx + rbx + 0x10]
xor al, cl
mov byte [rdx + rsi], al
sub r14, 1
jne 0x1401651e0
mov dword [rbx + 0x170], r15d
jmp 0x140164f2e
mov eax, 0xffffffff
add rsp, 0x78
pop r14
pop rdi
pop rsi
pop rbx
ret