Function at 0x140011740
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push r15
lea rbp, [rsp - 0x1018]
mov eax, 0x1118
call fcn.14002d7a0
sub rsp, rax
mov r15, rdx
test r8, r8
jne 0x140011777
xor eax, eax
add rsp, 0x1118
pop r15
pop rbp
ret
mov qword [rsp + 0x1130], rbx
lea rax, [rbp - 0x30]
xor ebx, ebx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov edx, 0x80862007
mov qword [rsp + 0x58], r8
lea r8, [rsp + 0x48]
movaps xmmword [rsp + 0x10e0], xmm6
lea r9d, [rbx + 0x28]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
movaps xmmword [rsp + 0x10d0], xmm7
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], 0x33
mov qword [rsp + 0x68], 0x1000
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400119b8
cmp dword [0x140041010], 2
movups xmm0, xmmword [0x1400394c0]
movups xmm1, xmmword [0x1400394d0]
mov eax, dword [0x140039500]
movups xmmword [rbp - 0x80], xmm0
mov dword [rbp - 0x40], eax
movups xmm0, xmmword [0x1400394e0]
movzx eax, word [0x140039504]
movups xmmword [rbp - 0x70], xmm1
mov word [rbp - 0x3c], ax
movups xmm1, xmmword [0x1400394f0]
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm1
jl 0x14001194e
movdqa xmm5, xmmword [0x14003b400]
lea rcx, [rbp - 0x80]
movdqa xmm4, xmmword [0x14003b4a0]
movdqa xmm6, xmmword [0x14003b440]
movdqa xmm7, xmmword [0x14003b480]
nop
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add ebx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
xorps xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
mov eax, ebx
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp ebx, 0x20
jl 0x140011860
cmp eax, 0x23
jge 0x140011990
movsxd rax, ebx
lea r8, [rbp - 0x80]
lea r8, [r8 + rax*2]
nop dword [rax]
mov eax, 0x94f2095
lea r8, [r8 + 2]
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x37
movzx eax, bx
inc ebx
sub ax, cx
add ax, 0x39
xor word [r8 - 2], ax
cmp ebx, 0x23
jl 0x140011960
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x140016670]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor eax, eax
jmp 0x140011c4c
mov qword [rsp + 0x1110], rsi
mov rsi, 0xffffffffffffffff
mov qword [rsp + 0x1100], r12
mov qword [rsp + 0x10f8], r13
mov qword [rsp + 0x10f0], r14
nop
inc rsi
cmp byte [r15 + rsi], bl
jne 0x1400119e0
movsxd rax, dword [rbp + 0xc]
lea rcx, [rbp - 0x30]
add rcx, rax
mov qword [rsp + 0x1108], rdi
mov r14d, ebx
movzx eax, word [rcx + 0x14]
lea r13, [rcx + 0x18]
movzx r12d, word [rcx + 6]
add r13, rax
test r12d, r12d
je 0x140011a69
nop dword [rax]
nop dword [rax + rax]
mov eax, r14d
mov r8, rsi
mov rdx, r15
lea rcx, [rax + rax*4]
lea rdi, [rcx*8]
add rdi, r13
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140011a61
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rdi + rax], bl
jne 0x140011a50
cmp rsi, rax
je 0x140011c6f
inc r14d
cmp r14d, r12d
jb 0x140011a20
cmp dword [0x140041010], 2
movups xmm0, xmmword [0x14002fb30]
movzx eax, word [0x14002fb60]
movups xmm1, xmmword [0x14002fb40]
mov word [rsp + 0x78], ax
movups xmmword [rsp + 0x48], xmm0
movups xmm0, xmmword [0x14002fb50]
movups xmmword [rsp + 0x58], xmm1
movups xmmword [rsp + 0x68], xmm0
jl 0x140011bbe
movdqa xmm5, xmmword [0x14003b400]
lea rcx, [rsp + 0x48]
movdqa xmm4, xmmword [0x14003b4a0]
movdqa xmm6, xmmword [0x14003b440]
movdqa xmm7, xmmword [0x14003b480]
nop dword [rax + rax]
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add ebx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
xorps xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
mov eax, ebx
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp ebx, 0x18
jl 0x140011ad0
cmp eax, 0x19
jge 0x140011c00
movsxd rax, ebx
lea r8, [rsp + 0x48]
lea r8, [r8 + rax*2]
nop word [rax + rax]
mov eax, 0x94f2095
lea r8, [r8 + 2]
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x37
movzx eax, bx
inc ebx
sub ax, cx
add ax, 0x39
xor word [r8 - 2], ax
cmp ebx, 0x19
jl 0x140011bd0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, [rsp + 0x48]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x140016670]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor eax, eax
mov rdi, qword [rsp + 0x1108]
mov r14, qword [rsp + 0x10f0]
mov r13, qword [rsp + 0x10f8]
mov r12, qword [rsp + 0x1100]
mov rsi, qword [rsp + 0x1110]
movaps xmm6, xmmword [rsp + 0x10e0]
mov rbx, qword [rsp + 0x1130]
movaps xmm7, xmmword [rsp + 0x10d0]
add rsp, 0x1118
pop r15
pop rbp
ret
mov eax, dword [rdi + 0xc]
test eax, eax
je 0x140011a69
mov ecx, dword [rdi + 8]
lea rax, [rbp + rax - 0x30]
test rax, rax
je 0x140011a69
test ecx, ecx
je 0x140011a69
mov rdx, qword [rbp + 0x1048]
test rdx, rdx
je 0x140011ca1
mov dword [rdx], ecx
lea rcx, [rbp - 0x30]
sub rax, rcx
add rax, qword [rbp + 0x1040]
jmp 0x140011c24