Function at 0x140017040
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm7
movaps xmmword [rsp + 0x40], xmm8
mov rsi, rdx
mov ebx, 4
mov rax, qword gs:[0x58]
add rbx, qword [rax]
mov eax, dword [rbx]
cmp dword [0x140036ed8], eax
jle 0x140017434
lea rcx, [0x140036ed8]
call fcn.140025fb8
cmp dword [0x140036ed8], 0xffffffff
jne 0x140017434
movsd xmm0, qword [0x140028ec8]
movsd qword [rsp + 0x30], xmm0
mov edx, dword [0x140028ed0]
mov dword [rsp + 0x38], edx
movzx eax, word [0x140028ed4]
mov word [rsp + 0x3c], ax
movzx eax, byte [0x140028ed6]
mov byte [rsp + 0x3e], al
xor ecx, ecx
mov r8d, ecx
movdqa xmm6, xmmword [0x140030d70]
movdqa xmm2, xmmword [0x140030cf0]
movdqa xmm3, xmmword [0x140030ce0]
movdqa xmm4, xmmword [0x140030cd0]
movdqa xmm8, xmmword [0x140030d90]
movdqa xmm7, xmmword [0x140030d40]
movdqa xmm5, xmmword [0x140030e00]
mov r10d, dword [0x140036010]
cmp r10d, 2
jl 0x14001723e
movdqa xmm1, xmm4
punpckldq xmm1, xmm4
pmuldq xmm1, xmm5
movdqa xmm0, xmm4
punpckhdq xmm0, xmm4
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm4
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
movdqa xmm1, xmm4
psubd xmm1, xmm0
andps xmm1, xmm6
packuswb xmm1, xmm1
packuswb xmm1, xmm1
paddb xmm1, xmm8
movd xmm0, dword [0x140028ec8]
xorps xmm1, xmm0
movd dword [rsp + 0x30], xmm1
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm5
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
movdqa xmm1, xmm3
psubd xmm1, xmm0
andps xmm1, xmm6
packuswb xmm1, xmm1
packuswb xmm1, xmm1
paddb xmm1, xmm8
movd xmm0, dword [rsp + 0x34]
xorps xmm1, xmm0
movd dword [rsp + 0x34], xmm1
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
movdqa xmm1, xmm2
psubd xmm1, xmm0
andps xmm1, xmm6
packuswb xmm1, xmm1
packuswb xmm1, xmm1
paddb xmm1, xmm8
movd xmm0, edx
xorps xmm1, xmm0
movd dword [rsp + 0x38], xmm1
mov r8d, 0xc
mov eax, r8d
lea r9, [rsp + 0x30]
add r9, rax
nop dword [rax]
mov eax, 0xa0a0a0a1
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x33
movzx eax, r8b
sub al, dl
add al, 0x39
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xf
jl 0x140017250
movsd xmm0, qword [0x140028de0]
movsd qword [rsp + 0x20], xmm0
mov edx, dword [0x140028de8]
mov dword [rsp + 0x28], edx
movzx eax, byte [0x140028dec]
mov byte [rsp + 0x2c], al
cmp r10d, 2
jl 0x1400173d7
movdqa xmm1, xmm4
punpckldq xmm1, xmm4
pmuldq xmm1, xmm5
movdqa xmm0, xmm4
punpckhdq xmm0, xmm4
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm4
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm4, xmm0
andps xmm4, xmm6
packuswb xmm4, xmm4
packuswb xmm4, xmm4
movd eax, xmm8
movd xmm0, eax
paddb xmm4, xmm0
movd xmm0, dword [0x140028de0]
xorps xmm4, xmm0
movd dword [rsp + 0x20], xmm4
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm5
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
andps xmm3, xmm6
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, eax
paddb xmm3, xmm0
movd xmm1, dword [rsp + 0x24]
xorps xmm3, xmm1
movd dword [rsp + 0x24], xmm3
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, edx
xorps xmm2, xmm1
movd dword [rsp + 0x28], xmm2
mov ecx, 0xc
mov eax, ecx
lea r8, [rsp + 0x20]
add r8, rax
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x33
movzx eax, cl
sub al, dl
add al, 0x39
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0xd
jl 0x1400173e1
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.140014d10
mov qword [0x140036d08], rax
lea rcx, [0x140036ed8]
call fcn.140025f4c
mov rdi, qword [0x140036d08]
mov eax, dword [rbx]
cmp dword [0x140036f1c], eax
jle 0x14001748a
lea rcx, [0x140036f1c]
call fcn.140025fb8
cmp dword [0x140036f1c], 0xffffffff
jne 0x14001748a
lea rcx, [0x140029810]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140036db0], rax
lea rcx, [0x140036f1c]
call fcn.140025f4c
mov rcx, qword [0x140036e48]
mov rdx, rdi
call fcn.140016700
mov rax, qword [0x140036db0]
mov rdx, rsi
xor ecx, ecx
call rax
mov rbx, rax
mov rcx, qword [0x140036e48]
call fcn.1400168c0
mov rax, rbx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x50]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop rdi
ret