Function at 0x140007c30
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
push rbp
push rsi
push rdi
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x128
mov r15, r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
je 0x1400083a5
test r8, r8
je 0x1400083a5
mov qword [rax + 8], rbx
lea r8, [rbp - 0x20]
xor ebx, ebx
movaps xmmword [rax - 0x38], xmm6
mov qword [rsp + 0x38], rbx
movaps xmmword [rax - 0x48], xmm7
lea rax, [rbp + 0x68]
mov qword [rsp + 0x30], rax
mov qword [rbp - 8], rdx
lea r9d, [rbx + 0x20]
mov dword [rsp + 0x28], ebx
mov edx, 0x80862007
mov qword [rsp + 0x20], rbx
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
mov qword [rbp - 0x20], 0x25
mov dword [rbp + 0x68], ebx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140007ea4
cmp dword [0x140041010], 2
movups xmm0, xmmword [0x140039a80]
movups xmm1, xmmword [0x140039a90]
mov eax, dword [0x140039ad8]
movups xmmword [rbp - 0x80], xmm0
mov dword [rbp - 0x28], eax
movups xmm0, xmmword [0x140039aa0]
movups xmmword [rbp - 0x60], xmm0
movups xmm0, xmmword [0x140039ac0]
movups xmmword [rbp - 0x40], xmm0
movsd xmm0, qword [0x140039ad0]
movups xmmword [rbp - 0x70], xmm1
movups xmm1, xmmword [0x140039ab0]
movsd qword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x50], xmm1
jl 0x140007e2e
movdqa xmm5, xmmword [0x14003b400]
lea rcx, [rbp - 0x80]
movdqa xmm4, xmmword [0x14003b4a0]
movdqa xmm6, xmmword [0x14003b440]
movdqa xmm7, xmmword [0x14003b480]
nop word [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, 0x28
jl 0x140007d40
cmp eax, 0x2e
jge 0x140007e70
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, 0x2e
jl 0x140007e40
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
mov rdx, rsi
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 al, al
jmp 0x1400081c9
mov qword [rsp + 0x120], r14
mov r14, qword [rbp - 0x10]
test r14, r14
je 0x1400081ee
mov qword [rsp + 0x38], rbx
lea rax, [rbp + 0x58]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
xorps xmm0, xmm0
mov dword [rsp + 0x28], ebx
mov r9d, 0x30
mov qword [rsp + 0x20], rbx
mov edx, 0x80862007
mov qword [rsp + 0x58], rbx
mov rcx, rdi
mov qword [rsp + 0x68], 0xc
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x40], 0x19
mov qword [rsp + 0x60], r14
mov dword [rbp + 0x58], ebx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400081ee
mov rsi, qword [rsp + 0x58]
test rsi, rsi
je 0x1400081ee
mov qword [rsp + 0x38], rbx
lea rax, [rbp + 0x58]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov dword [rsp + 0x28], ebx
mov r9d, 0x28
mov edx, 0x80862007
mov qword [rsp + 0x20], rbx
mov rcx, rdi
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], 0x33
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], 0xc
mov dword [rbp + 0x58], ebx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x40]
test eax, eax
mov qword [rsp + 0x60], rbx
lea rax, [rbp + 0x58]
mov qword [rsp + 0x68], 0xc
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
mov dword [rsp + 0x28], ebx
mov r9d, 0x30
mov edx, 0x80862007
mov qword [rsp + 0x20], rbx
mov rcx, rdi
mov qword [rsp + 0x40], 0x1a
setne r15b
mov qword [rsp + 0x58], rsi
movdqu xmmword [rsp + 0x48], xmm0
mov dword [rbp + 0x58], ebx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400081bd
cmp dword [0x140041010], 2
movups xmm0, xmmword [0x1400302b0]
movups xmm1, xmmword [0x1400302c0]
mov eax, dword [0x1400302f8]
movups xmmword [rbp - 0x80], xmm0
mov dword [rbp - 0x38], eax
movups xmm0, xmmword [0x1400302d0]
movzx eax, word [0x1400302fc]
movups xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x34], ax
movsd xmm0, qword [0x1400302f0]
movups xmmword [rbp - 0x70], xmm1
movups xmm1, xmmword [0x1400302e0]
movsd qword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x50], xmm1
jl 0x14000814e
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 0x140008060
cmp eax, 0x27
jge 0x140008190
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, 0x27
jl 0x140008160
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
mov rdx, r14
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]
movzx eax, r15b
mov r14, qword [rsp + 0x120]
movaps xmm6, xmmword [rsp + 0x110]
movaps xmm7, xmmword [rsp + 0x100]
mov rbx, qword [rsp + 0x150]
add rsp, 0x128
pop r15
pop rdi
pop rsi
pop rbp
ret
cmp dword [0x140041010], 2
movups xmm0, xmmword [0x1400305c0]
movups xmm1, xmmword [0x1400305d0]
movups xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [0x1400305e0]
movups xmmword [rsp + 0x50], xmm1
movups xmm1, xmmword [0x1400305f0]
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm1
jl 0x140008339
movdqa xmm5, xmmword [0x14003b400]
lea rcx, [rsp + 0x40]
movdqa xmm4, xmmword [0x14003b4a0]
movdqa xmm6, xmmword [0x14003b440]
movdqa xmm7, xmmword [0x14003b480]
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
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 0x140008250
jmp 0x140008370
lea r8, [rsp + 0x40]
nop
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, 0x20
jl 0x140008340
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, [rsp + 0x40]
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
mov rdx, r14
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 al, al
jmp 0x1400081c1
xor al, al
add rsp, 0x128
pop r15
pop rdi
pop rsi
pop rbp
ret