Function at 0x140380640
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rdi
push r14
mov eax, 0x88
call fcn.1401d84a0
sub rsp, rax
mov rax, qword [rcx + 0x178]
mov rbx, rcx
mov qword [rsp + 0x58], rax
mov r14, r9
mov rax, qword [rcx + 0x180]
mov rdi, r8
mov rcx, qword [rcx + 0x38]
mov rbp, rdx
mov qword [rsp + 0x50], rax
add rcx, r9
movabs rax, 0xfffffffe0
cmp rcx, rax
ja 0x140380ac4
cmp rcx, r9
jb 0x140380ac4
mov qword [rsp + 0xb8], rsi
xor esi, esi
mov qword [rsp + 0x70], r15
mov r15d, dword [rbx + 0x170]
mov qword [rbx + 0x38], rcx
mov dword [rsp + 0xb0], r15d
cmp dword [rbx + 0x174], esi
je 0x140380713
lea r9, [rbx + 0x40]
mov qword [rsp + 0x30], r9
test r14, r14
jne 0x1403806eb
lea rdx, [rbx + 0x60]
mov rcx, r9
call fcn.1403815e0
xor eax, eax
mov dword [rbx + 0x174], esi
jmp 0x140380aaa
movups xmm0, xmmword [r9]
mov r15d, reloc.WS2_32.dll_recv
mov dword [rsp + 0xb0], r15d
movups xmmword [rbx + 0x188], xmm0
mov qword [r9], rsi
mov qword [rbx + 0x48], rsi
mov dword [rbx + 0x174], esi
jmp 0x14038071c
lea rax, [rbx + 0x40]
mov qword [rsp + 0x30], rax
movzx eax, byte [rbx + 0xd]
lea rcx, [rbx + 0xd]
movzx esi, byte [rbx + 0xc]
lea rdx, [rbx + 0xe]
shl esi, 8
lea r8, [rbx + 0xf]
or esi, eax
mov qword [rsp + 0x80], r12
movzx eax, byte [rdx]
lea r12, [rbx + 0xc]
shl esi, 8
lea r10, [rbx + 0x188]
or esi, eax
mov qword [rsp + 0x78], r13
movzx eax, byte [r8]
mov r13d, r15d
shl esi, 8
or esi, eax
mov qword [rsp + 0x40], rcx
and r13d, 0xf
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x20], r13d
mov qword [rsp + 0x28], r8
je 0x140380813
nop
test r14, r14
je 0x140380a94
movzx ecx, byte [r13 + rbx + 0x10]
dec r14
xor cl, byte [rbp]
inc rbp
mov byte [rdi], cl
inc rdi
mov eax, r15d
inc r15d
inc r13d
mov byte [rax + rbx + 0x188], cl
and r13d, 0xf
jne 0x140380780
lea rax, [rbx + 0x40]
mov r9d, r15d
lea rdx, [rbx + 0x60]
mov qword [rsp + 0x30], rax
mov rcx, rax
mov qword [rsp + 0x38], rdx
lea r8, [rbx + 0x188]
call fcn.140381420
lea rax, [rbx + 0xd]
mov dword [rsp + 0x20], r13d
mov qword [rsp + 0x40], rax
lea r12, [rbx + 0xc]
lea rax, [rbx + 0xe]
xor r15d, r15d
mov qword [rsp + 0x48], rax
lea r10, [rbx + 0x188]
lea rax, [rbx + 0xf]
mov dword [rsp + 0xb0], r15d
mov qword [rsp + 0x28], rax
lea rax, [rbx + 0x60]
jmp 0x14038081c
lea rax, [rbx + 0x60]
mov qword [rsp + 0x38], rax
cmp r14, 0x10
jb 0x140380844
test r15d, r15d
je 0x140380844
mov r9d, r15d
lea rcx, [rbx + 0x40]
mov r8, r10
mov rdx, rax
call fcn.140381420
xor r15d, r15d
mov dword [rsp + 0xb0], r15d
cmp r14, 0xc00
jb 0x14038094d
lea rax, [rbx + 0x60]
mov qword [rsp + 0x38], rax
lea rcx, [rbx + 0x10]
lea rax, [rbx + 0x40]
mov qword [rsp + 0x30], rax
movabs rax, 0xaaaaaaaaaaaaaaab
mul r14
shr rdx, 0xb
imul rax, rdx, 0xfffffffffffff400
mov qword [rsp + 0x28], rdx
add r14, rax
nop word [rax + rax]
mov r12d, 0xc0
nop word [rax + rax]
mov r8, qword [rsp + 0x50]
mov rdx, rcx
mov rcx, rbx
call qword [rsp + 0x58]
inc esi
lea rcx, [rbx + 0x10]
mov byte [rbx + 0xf], sil
mov eax, esi
shr eax, 0x18
mov byte [rbx + 0xc], al
mov eax, esi
shr eax, 0x10
mov byte [rbx + 0xd], al
mov eax, esi
shr eax, 8
mov byte [rbx + 0xe], al
mov rax, qword [rcx]
xor rax, qword [rbp]
mov qword [rdi], rax
mov rax, qword [rbp + 8]
add rbp, 0x10
xor rax, qword [rbx + 0x18]
mov qword [rdi + 8], rax
add rdi, 0x10
sub r12, 1
jne 0x1403808a0
mov rdx, qword [rsp + 0x38]
lea r8, [rdi - 0xc00]
mov rcx, qword [rsp + 0x30]
mov r9d, 0xc00
call fcn.140381420
sub qword [rsp + 0x28], 1
lea rcx, [rbx + 0x10]
jne 0x140380890
mov r15d, dword [rsp + 0xb0]
lea rax, [rbx + 0xd]
mov r13d, dword [rsp + 0x20]
lea r12, [rbx + 0xc]
mov qword [rsp + 0x40], rax
lea rax, [rbx + 0xe]
mov qword [rsp + 0x48], rax
lea rax, [rbx + 0xf]
mov qword [rsp + 0x28], rax
mov rcx, r14
and rcx, 0xfffffffffffffff0
mov qword [rsp + 0x60], rcx
je 0x140380a30
cmp r14, 0x10
jb 0x1403809fa
mov r12, r14
lea rcx, [rbx + 0x10]
shr r12, 4
imul rax, r12, 0xfffffffffffffff0
add r14, rax
nop dword [rax + rax]
mov r8, qword [rsp + 0x50]
mov rdx, rcx
mov rcx, rbx
call qword [rsp + 0x58]
inc esi
lea rcx, [rbx + 0x10]
mov byte [rbx + 0xf], sil
mov eax, esi
shr eax, 0x18
mov byte [rbx + 0xc], al
mov eax, esi
shr eax, 0x10
mov byte [rbx + 0xd], al
mov eax, esi
shr eax, 8
mov byte [rbx + 0xe], al
mov rax, qword [rcx]
xor rax, qword [rbp]
mov qword [rdi], rax
mov rax, qword [rbp + 8]
add rbp, 0x10
xor rax, qword [rbx + 0x18]
mov qword [rdi + 8], rax
add rdi, 0x10
sub r12, 1
jne 0x140380980
mov r15d, dword [rsp + 0xb0]
lea rax, [rbx + 0x60]
mov r13d, dword [rsp + 0x20]
lea r12, [rbx + 0xc]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rbx + 0x40]
jmp 0x1403809ff
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov r9, rcx
mov r8, rdi
sub r8, rcx
mov rcx, rax
call fcn.140381420
lea rax, [rbx + 0xd]
mov qword [rsp + 0x40], rax
lea rax, [rbx + 0xe]
mov qword [rsp + 0x48], rax
lea rax, [rbx + 0xf]
mov qword [rsp + 0x28], rax
test r14, r14
je 0x140380a94
mov r8, qword [rsp + 0x50]
lea rdx, [rbx + 0x10]
mov rcx, rbx
call qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
inc esi
mov eax, esi
shr eax, 0x18
mov byte [r12], al
mov eax, esi
shr eax, 0x10
mov byte [rcx], al
mov eax, esi
mov rcx, qword [rsp + 0x48]
shr eax, 8
mov byte [rcx], al
mov rax, qword [rsp + 0x28]
mov byte [rax], sil
mov eax, r13d
inc r13d
movzx ecx, byte [rax + rbx + 0x10]
xor cl, byte [rax + rbp]
mov byte [rax + rdi], cl
mov eax, r15d
inc r15d
mov byte [rax + rbx + 0x188], cl
sub r14, 1
jne 0x140380a70
mov r13, qword [rsp + 0x78]
xor eax, eax
mov r12, qword [rsp + 0x80]
mov dword [rbx + 0x170], r15d
mov rsi, qword [rsp + 0xb8]
mov r15, qword [rsp + 0x70]
add rsp, 0x88
pop r14
pop rdi
pop rbp
pop rbx
ret
mov eax, 0xffffffff
add rsp, 0x88
pop r14
pop rdi
pop rbp
pop rbx
ret