Function at 0x140188880
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rdi, qword [rcx + 0x18]
mov rax, rdi
inc rax
je 0x140189315
mov r15, rdx
mov rsi, rcx
mov r10, qword [rcx + 8]
lea r14, [r10 + 1]
mov rcx, r14
shr rcx, 3
mov r8, r14
and r8, 0xfffffffffffffff8
sub r8, rcx
cmp r10, 8
cmovb r8, r10
mov rcx, r8
shr rcx, 1
cmp rax, rcx
mov qword [rsp + 0x28], r10
mov qword [rsp + 0x30], rdi
jbe 0x140188905
inc r8
cmp rax, r8
cmova r8, rax
cmp r8, 8
jae 0x140188937
xor eax, eax
cmp r8, 4
setae al
lea r12, [rax*4 + 4]
jmp 0x140188987
mov qword [rsp + 0x68], r8
mov rbx, qword [rsi]
mov rcx, r14
shr rcx, 4
xor eax, eax
test r14b, 0xf
setne al
add rax, rcx
je 0x140188c61
cmp rax, 1
jne 0x140188bea
xor edx, edx
jmp 0x140188c47
mov rax, r8
shr rax, 0x3d
jne 0x140189315
shl r8, 3
mov r12d, 1
cmp r8, 0xe
jb 0x140188987
movabs rcx, 0x2492492492492493
mov rax, r8
mul rcx
sub r8, rdx
shr r8, 1
add r8, rdx
shr r8, 2
dec r8
bsr rcx, r8
not ecx
mov r12, 0xffffffffffffffff
shr r12, cl
inc r12
mov ecx, 0x68
mov rax, r12
mul rcx
jo 0x140189315
mov rdi, rax
add rdi, 0xf
and rdi, 0xfffffffffffffff0
lea r13, [r12 + 0x10]
mov rbp, rdi
add rbp, r13
jb 0x140189315
movabs rax, 0x7ffffffffffffff1
cmp rbp, rax
jae 0x140189315
test rbp, rbp
je 0x140188a10
movzx eax, byte [0x14023c318]
mov rcx, qword [0x14023c280]
test rcx, rcx
jne 0x1401889f4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x140188a06
mov rcx, rax
mov qword [0x14023c280], rax
xor edx, edx
mov r8, rbp
call sub.KERNEL32.dll_HeapAlloc
mov rbx, rax
test rax, rax
jne 0x140188a15
mov rcx, rbp
call fcn.14003b030
ud2
mov ebx, reloc.WS2_32.dll_recv
mov qword [rsp + 0x38], r14
lea rbp, [r12 - 1]
mov rax, r12
shr rax, 3
mov r14, r12
and r14, 0xfffffffffffffff8
sub r14, rax
cmp r12, 9
cmovb r14, rbp
add rbx, rdi
mov rcx, rbx
mov dl, 0xff
mov r8, r13
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x30]
sub r14, rax
mov rdi, qword [rsi]
mov r8, qword [rsp + 0x28]
cmp r8, 0xffffffffffffffff
je 0x140188b9f
mov r12, qword [r15]
mov r15, qword [r15 + 8]
xor r13d, r13d
jmp 0x140188afb
shr rax, 0x39
lea rcx, [rdx - 0x10]
and rcx, rbp
mov byte [rbx + rdx], al
mov byte [rcx + rbx + 0x10], al
mov rax, r13
not rax
imul rax, rax, 0x68
not rdx
imul rcx, rdx, 0x68
mov rdx, qword [rdi + rax + 0x60]
mov qword [rbx + rcx + 0x60], rdx
movups xmm0, xmmword [rdi + rax + 0x50]
movups xmmword [rbx + rcx + 0x50], xmm0
movups xmm0, xmmword [rdi + rax + 0x40]
movups xmmword [rbx + rcx + 0x40], xmm0
movdqu xmm0, xmmword [rdi + rax]
movdqu xmm1, xmmword [rdi + rax + 0x10]
movups xmm2, xmmword [rdi + rax + 0x20]
movups xmm3, xmmword [rdi + rax + 0x30]
movups xmmword [rbx + rcx + 0x30], xmm3
movups xmmword [rbx + rcx + 0x20], xmm2
movdqu xmmword [rbx + rcx + 0x10], xmm1
movdqu xmmword [rbx + rcx], xmm0
lea rax, [r13 + 1]
cmp r13, r8
mov r13, rax
je 0x140188b81
cmp byte [rdi + r13], 0
js 0x140188aeb
mov rax, r13
neg rax
imul rax, rax, 0x68
mov r8, qword [rdi + rax - 0x68]
mov r9, qword [rdi + rax - 0x58]
mov rcx, r12
mov rdx, r15
call fcn.1401327d0
mov rcx, rax
and rcx, rbp
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x140188b57
mov r8d, reloc.WS2_32.dll_recv
nop word [rax + rax]
add rcx, r8
and rcx, rbp
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x140188b40
mov r8, qword [rsp + 0x28]
tzcnt edx, edx
add rdx, rcx
and rdx, rbp
cmp byte [rbx + rdx], 0
js 0x140188a80
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x140188a80
mov qword [rsi], rbx
mov qword [rsi + 8], rbp
mov qword [rsi + 0x10], r14
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x18], rax
test r8, r8
jne 0x140188bae
jmp 0x1401892f7
mov qword [rsi], rbx
mov qword [rsi + 8], rbp
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], rax
mov ecx, 0x68
mov rax, qword [rsp + 0x38]
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add r8, rax
cmp r8, 0xffffffffffffffef
je 0x1401892f7
sub rdi, rax
mov rcx, qword [0x14023c280]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1401892f7
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r8d, r8d
movdqa xmm0, xmmword [0x14018c700]
nop word cs:[rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + r8]
por xmm1, xmm0
movdqa xmmword [rbx + r8], xmm1
lea rdx, [r8 + 0x20]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + r8 + 0x10]
por xmm1, xmm0
movdqa xmmword [rbx + r8 + 0x10], xmm1
mov r8, rdx
add rcx, 0xfffffffffffffffe
jne 0x140188c10
test al, 1
je 0x140188c61
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rdx]
por xmm0, xmmword [0x14018c700]
movdqa xmmword [rbx + rdx], xmm0
cmp r14, 0x10
jae 0x140188c88
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, r14
call sub.VCRUNTIME140.dll_memmove
mov r10, qword [rsp + 0x28]
cmp r10, 0xffffffffffffffff
jne 0x140188c92
xor eax, eax
jmp 0x1401892f0
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + r14], xmm0
mov qword [rsp + 0x60], rsi
mov rax, qword [r15]
mov rcx, qword [r15 + 8]
movabs rdx, 0x736f6d6570736575
xor rdx, rax
mov qword [rsp + 0x58], rdx
movabs rdx, 0x646f72616e646f6d
xor rdx, rcx
mov qword [rsp + 0x50], rdx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x48], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x40], rax
mov r12, rbx
xor r11d, r11d
jmp 0x140188d17
shr rcx, 0x39
lea rax, [r11 - 0x10]
and rax, r10
mov byte [rbx + r11], cl
mov byte [rax + rbx + 0x10], cl
lea rax, [r11 + 1]
add r12, 0xffffffffffffff98
cmp r11, r10
mov r11, rax
je 0x1401892e1
cmp byte [rbx + r11], 0x80
jne 0x140188d03
imul rax, r11, 0xffffffffffffff98
lea rcx, [rbx + rax]
add rcx, 0xffffffffffffff98
mov qword [rsp + 0x78], rcx
add rax, rbx
mov qword [rsp + 0x70], rax
mov rax, r11
not rax
imul rbp, rax, 0x68
add rbp, rbx
mov qword [rsp + 0x38], r11
mov rax, r11
neg rax
imul rax, rax, 0x68
add rax, rbx
mov qword [rsp + 0x80], rax
jmp 0x140188e3e
mov rcx, qword [rbp]
mov rdx, qword [rax]
mov qword [rbp], rdx
mov qword [rax], rcx
mov rcx, qword [rbp + 8]
mov rdx, qword [rax + 8]
mov qword [rbp + 8], rdx
mov qword [rax + 8], rcx
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rax + 0x10]
mov qword [rbp + 0x10], rdx
mov qword [rax + 0x10], rcx
mov rcx, qword [rbp + 0x18]
mov rdx, qword [rax + 0x18]
mov qword [rbp + 0x18], rdx
mov qword [rax + 0x18], rcx
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rax + 0x20]
mov qword [rbp + 0x20], rdx
mov qword [rax + 0x20], rcx
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rax + 0x28]
mov qword [rbp + 0x28], rdx
mov qword [rax + 0x28], rcx
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rax + 0x30]
mov qword [rbp + 0x30], rdx
mov qword [rax + 0x30], rcx
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rax + 0x38]
mov qword [rbp + 0x38], rdx
mov qword [rax + 0x38], rcx
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rax + 0x40]
mov qword [rbp + 0x40], rdx
mov qword [rax + 0x40], rcx
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rax + 0x48]
mov qword [rbp + 0x48], rdx
mov qword [rax + 0x48], rcx
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rax + 0x50]
mov qword [rbp + 0x50], rdx
mov qword [rax + 0x50], rcx
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rax + 0x58]
mov qword [rbp + 0x58], rdx
mov qword [rax + 0x58], rcx
mov rcx, qword [rbp + 0x60]
mov rdx, qword [rax + 0x60]
mov qword [rbp + 0x60], rdx
mov qword [rax + 0x60], rcx
mov rax, qword [rsp + 0x80]
mov rdi, qword [rax - 0x68]
mov r13, qword [rax - 0x58]
mov rax, r13
and rax, 0xfffffffffffffff8
je 0x140188ef0
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x50]
mov r10, qword [rsp + 0x40]
xor r14d, r14d
mov r11, qword [rsp + 0x58]
nop word cs:[rax + rax]
add r11, r8
rol r8, 0xd
mov rcx, qword [rdi + r14]
xor r8, r11
rol r11, 0x20
xor r10, rcx
add r9, r10
rol r10, 0x10
xor r10, r9
add r11, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, r11
xor r11, rcx
add r14, 8
cmp r14, rax
jb 0x140188e80
mov edx, r13d
and edx, 7
cmp edx, 3
jbe 0x140188f12
mov r15d, dword [rdi + r14]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, rdx
jb 0x140188f23
jmp 0x140188f3c
mov r11, qword [rsp + 0x58]
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x50]
mov r10, qword [rsp + 0x40]
xor r14d, r14d
mov edx, r13d
and edx, 7
cmp edx, 3
ja 0x140188ece
xor r15d, r15d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, rdx
jae 0x140188f3c
lea rcx, [rax + r14]
movzx esi, word [rdi + rcx]
lea ecx, [rax*8]
shl rsi, cl
or r15, rsi
or rax, 2
cmp rax, rdx
jae 0x140188f60
add r14, rax
movzx esi, byte [rdi + r14]
shl eax, 3
mov ecx, eax
shl rsi, cl
or r15, rsi
jmp 0x140188f65
test rdx, rdx
je 0x140188fc1
lea ecx, [rdx*8]
mov edi, 0xff
shl rdi, cl
or rdi, r15
cmp rdx, 7
jne 0x14018909f
mov ecx, 8
add r11, r8
rol r8, 0xd
sub rcx, rdx
xor r8, r11
rol r11, 0x20
xor r10, rdi
add r9, r10
rol r10, 0x10
xor r10, r9
add r11, r10
rol r10, 0x15
xor r10, r11
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r11, rdi
jmp 0x140188fc3
xor ecx, ecx
mov edx, 1
sub rdx, rcx
mov eax, edx
and eax, 7
and rdx, 0xfffffffffffffff8
cmp rcx, rdx
jae 0x140189050
nop dword [rax]
add r11, r8
rol r8, 0xd
xor r8, r11
rol r11, 0x20
xor r10, 0xff
add r9, r10
rol r10, 0x10
xor r10, r9
add r11, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, r11
xor r11, 0xff
add rcx, 8
cmp rcx, rdx
jb 0x140188fe0
xor edx, edx
cmp rax, 4
setae dl
cmp eax, 4
mov edi, 0
mov ecx, 0xff
cmovae rdi, rcx
shl rdx, 2
jmp 0x140189054
xor edi, edi
xor edx, edx
mov rsi, rdx
lea ecx, [rdx*8]
mov r14d, 0xff
shl r14, cl
or rsi, 1
mov r15, rdx
or r15, 2
cmp rsi, rax
mov esi, 0
cmovae r14, rsi
cmovae r15, rdx
or r14, rdi
lea ecx, [r15*8]
mov edi, 0xff
shl rdi, cl
cmp r15, rax
cmovae rdi, rsi
or rdi, r14
shl r13, 0x38
movabs rax, 0x100000000000000
add r13, rax
add r11, r8
rol r8, 0xd
or r13, rdi
xor r8, r11
rol r11, 0x20
xor r10, r13
add r9, r10
rol r10, 0x10
xor r10, r9
add r11, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r10, r11
xor r8, r9
rol r9, 0x20
xor r11, r13
add r11, r8
rol r8, 0xd
xor r8, r11
rol r11, 0x20
xor r9, 0xff
add r9, r10
rol r10, 0x10
xor r10, r9
add r11, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, r11
add r11, r8
rol r8, 0xd
xor r8, r11
rol r11, 0x20
add r9, r10
rol r10, 0x10
xor r10, r9
add r11, r10
rol r10, 0x15
add r9, r8
rol r8, 0x11
xor r8, r9
rol r9, 0x20
xor r10, r11
add r11, r8
rol r8, 0xd
add r9, r10
rol r10, 0x10
xor r10, r9
rol r10, 0x15
xor r8, r11
add r9, r8
rol r8, 0x11
mov rcx, r9
rol rcx, 0x20
xor rcx, r8
xor rcx, r10
xor rcx, r9
mov r10, qword [rsp + 0x28]
mov rax, r10
and rax, rcx
movdqu xmm0, xmmword [rbx + rax]
pmovmskb edx, xmm0
mov r8, rax
test edx, edx
mov r11, qword [rsp + 0x38]
jne 0x1401891c8
mov r9d, reloc.WS2_32.dll_recv
mov r8, rax
nop dword [rax + rax]
add r8, r9
and r8, r10
movdqu xmm0, xmmword [rbx + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x1401891b0
tzcnt edx, edx
add rdx, r8
and rdx, r10
cmp byte [rbx + rdx], 0
js 0x1401891e4
movdqa xmm0, xmmword [rbx]
pmovmskb edx, xmm0
tzcnt edx, edx
mov r8, r11
sub r8, rax
mov r9, rdx
sub r9, rax
xor r9, r8
and r9, r10
cmp r9, 0x10
jb 0x140188cf0
mov rax, rdx
not rax
imul rax, rax, 0x68
add rax, rbx
movzx r8d, byte [rbx + rdx]
shr rcx, 0x39
lea r9, [rdx - 0x10]
and r9, r10
mov byte [rbx + rdx], cl
mov byte [r9 + rbx + 0x10], cl
cmp r8b, 0xff
je 0x140189290
imul rcx, rdx, 0xffffffffffffff98
add rcx, rbx
cmp qword [rsp + 0x78], rcx
jae 0x140188d70
cmp rax, qword [rsp + 0x70]
jae 0x140188d70
mov rax, 0xffffffffffffff98
nop
movzx edx, byte [r12 + rax]
movzx r8d, byte [rcx + rax]
mov byte [r12 + rax], r8b
mov byte [rcx + rax], dl
movzx edx, byte [r12 + rax + 1]
movzx r8d, byte [rcx + rax + 1]
mov byte [r12 + rax + 1], r8b
mov byte [rcx + rax + 1], dl
add rax, 2
jne 0x140189250
jmp 0x140188e3e
lea rcx, [r11 - 0x10]
and rcx, r10
mov byte [rbx + r11], 0xff
mov byte [rcx + rbx + 0x10], 0xff
mov rcx, qword [rbp + 0x60]
mov qword [rax + 0x60], rcx
movups xmm0, xmmword [rbp + 0x50]
movups xmmword [rax + 0x50], xmm0
movups xmm0, xmmword [rbp + 0x40]
movups xmmword [rax + 0x40], xmm0
movdqu xmm0, xmmword [rbp]
movdqu xmm1, xmmword [rbp + 0x10]
movups xmm2, xmmword [rbp + 0x20]
movups xmm3, xmmword [rbp + 0x30]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rax], xmm0
jmp 0x140188d03
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x68]
sub rax, rdi
mov qword [rsi + 0x10], rax
movabs rax, 0x8000000000000001
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14003aff0
ud2