Function at 0x140222c10
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push r12
push r15
mov eax, 0x68
call fcn.1402d2bf0
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 + 0x48], rax
add rcx, r9
movabs rax, 0xfffffffe0
mov qword [rsp + 0x40], r10
mov r12, rdx
cmp rcx, rax
ja 0x140222f4f
cmp rcx, r9
jb 0x140222f4f
mov qword [rsp + 0x98], rbp
mov ebp, dword [rbx + 0x170]
mov qword [rsp + 0x60], rdi
xor edi, edi
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r14
mov qword [rbx + 0x38], rcx
mov dword [rsp + 0x90], ebp
cmp dword [rbx + 0x174], edi
je 0x140222d24
lea rcx, [rbx + 0x40]
mov qword [rsp + 0x38], rcx
test r9, r9
jne 0x140222ce3
lea rdx, [rbx + 0x60]
call qword [rbx + 0x160]
mov dword [rbx + 0x174], edi
mov r13, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x98]
mov r14, qword [rsp + 0x50]
add rsp, 0x68
pop r15
pop r12
pop rsi
pop rbx
ret
movups xmm0, xmmword [rcx]
lea rdx, [rbx + 0x188]
mov dword [rsp + 0x30], edi
mov ebp, reloc.WS2_32.dll_recv
mov qword [rsp + 0xa8], rdx
movups xmmword [rdx], xmm0
mov qword [rcx], rdi
mov r14d, edi
mov qword [rbx + 0x48], rdi
mov r13d, dword [rbx + 0xc]
bswap r13d
mov dword [rsp + 0x90], ebp
mov dword [rbx + 0x174], edi
jmp 0x140222db3
mov r13d, dword [rbx + 0xc]
lea r8, [rbx + 0x188]
mov r14d, ebp
mov qword [rsp + 0xa8], r8
and r14d, 0xf
lea rax, [rbx + 0x40]
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x38], rax
bswap r13d
je 0x140222db3
test rsi, rsi
je 0x140222d8e
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
and r14d, 0xf
mov dword [rsp + 0x30], r14d
mov byte [rax + rbx + 0x188], cl
jne 0x140222d51
lea r8, [rbx + 0x188]
jmp 0x140222d97
test r14d, r14d
jne 0x140222f44
lea rdx, [rbx + 0x60]
mov r9d, ebp
lea rcx, [rbx + 0x40]
call r10
mov r10, qword [rsp + 0x40]
mov ebp, edi
mov dword [rsp + 0x90], edi
lea rax, [rbx + 0x60]
cmp rsi, 0x10
jb 0x140222de0
test ebp, ebp
je 0x140222de0
mov r8, qword [rsp + 0xa8]
mov rdx, rax
mov rcx, qword [rsp + 0x38]
mov r9d, ebp
call r10
mov ebp, edi
mov dword [rsp + 0x90], edi
mov r10, qword [rsp + 0xb0]
cmp rsi, 0xc00
jb 0x140222e9a
mov rbp, qword [rsp + 0x40]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rsi
mov rdi, rdx
shr rdi, 0xb
imul rax, rdi, 0xfffffffffffff400
add rsi, rax
mov qword [rsp + 0xa8], rsi
mov rsi, qword [rsp + 0x38]
nop word [rax + rax]
mov r9, qword [rsp + 0x48]
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
mov r9d, 0xc00
bswap eax
mov r8, r15
mov dword [rbx + 0xc], eax
mov rcx, rsi
call rbp
mov r10, qword [rsp + 0xb0]
add r15, 0xc00
add r12, 0xc00
sub rdi, 1
jne 0x140222e30
mov rsi, qword [rsp + 0xa8]
mov ebp, dword [rsp + 0x90]
mov r14d, dword [rsp + 0x30]
mov rax, rsi
and rax, 0xfffffffffffffff0
mov qword [rsp + 0xa8], rax
je 0x140222ef7
mov r9, qword [rsp + 0x48]
mov rdi, rax
shr rdi, 4
mov rdx, r15
mov r8, rdi
mov qword [rsp + 0x20], rbx
mov rcx, r12
call r10
mov rcx, qword [rsp + 0x38]
lea rdx, [rbx + 0x60]
add r13d, edi
mov r8, r15
mov rdi, qword [rsp + 0xa8]
mov eax, r13d
bswap eax
mov r9, rdi
mov dword [rbx + 0xc], eax
add r12, rdi
sub rsi, rdi
call qword [rsp + 0x40]
add r15, rdi
test rsi, rsi
je 0x140222f44
mov r8, qword [rsp + 0x48]
lea rdx, [rbx + 0x10]
mov rcx, rbx
call qword [rbx + 0x178]
inc r13d
bswap r13d
mov dword [rbx + 0xc], r13d
nop dword [rax + rax]
mov eax, r14d
inc r14d
movzx ecx, byte [rax + rbx + 0x10]
xor cl, byte [rax + r12]
mov byte [rax + r15], cl
mov eax, ebp
inc ebp
mov byte [rax + rbx + 0x188], cl
sub rsi, 1
jne 0x140222f20
mov dword [rbx + 0x170], ebp
jmp 0x140222cbf
mov eax, 0xffffffff
add rsp, 0x68
pop r15
pop r12
pop rsi
pop rbx
ret