Function at 0x14020c5a0
Capabilities:
Check if file exists
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x13b0]
mov eax, 0x14b0
call fcn.14025cd40
sub rsp, rax
movaps xmmword [rsp + 0x14a0], xmm6
movaps xmmword [rsp + 0x1490], xmm7
movaps xmmword [rsp + 0x1480], xmm8
movaps xmmword [rsp + 0x1470], xmm9
movaps xmmword [rsp + 0x1460], xmm10
mov rax, qword [0x14027e040]
xor rax, rsp
mov qword [rbp + 0x1350], rax
mov r15, rdx
mov r12, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
lea rbx, [rbp + 0x13e8]
movabs rdi, 0xff00ff00ff00ff00
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], rbx
mov rax, qword [rbx]
xor rax, rdi
mov qword [rbp - 0x60], rax
xor r14d, r14d
mov qword [rbx], r14
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rbp + 0x1344], 0xffffffff
mov dword [rbp - 0x3c], eax
mov r13d, 1
mov ecx, r13d
nop word [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rbp + rcx*4 - 0x3c], edx
inc rcx
cmp rcx, 0x270
jb 0x14020c660
mov dword [rbp - 0x40], 0x270
mov dword [rsp + 0x30], r14d
lea rcx, [rsp + 0x40]
call fcn.1401f17b0
mov rsi, qword [rsp + 0x40]
add rsi, 0x5f5e100
lea rcx, [rsp + 0x40]
call fcn.1401f17b0
cmp qword [rax], rsi
jge 0x14020c803
mov edi, 0x186a0
nop dword [rax]
lea rcx, [rbp - 0x40]
call fcn.140247dd0
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x63
ja 0x14020c6ee
lea rcx, [rbp - 0x40]
call fcn.140247dd0
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x64
jb 0x14020c6d7
shr rax, 0x20
lea ebx, [rax + 0x7fffff9c]
xor ebx, 0x80000000
cmove ebx, r13d
lea rcx, [rbp - 0x40]
call fcn.140247dd0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x14020c737
nop dword [rax]
lea rcx, [rbp - 0x40]
call fcn.140247dd0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x14020c720
shr rcx, 0x20
add ecx, 0x7fffff9c
btc ecx, 0x1f
mov eax, dword [rsp + 0x30]
add eax, ecx
mov dword [rsp + 0x30], eax
lea rcx, [rbp - 0x40]
call fcn.140247dd0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x14020c77d
lea rcx, [rbp - 0x40]
call fcn.140247dd0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x14020c766
shr rcx, 0x20
add ecx, 0x7fffff9c
btc ecx, 0x1f
mov eax, dword [rsp + 0x30]
imul eax, ecx
mov dword [rsp + 0x30], eax
lea rcx, [rbp - 0x40]
call fcn.140247dd0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x14020c7c7
nop dword [rax]
lea rcx, [rbp - 0x40]
call fcn.140247dd0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x14020c7b0
shr rcx, 0x20
add ecx, 0x7fffff9c
btc ecx, 0x1f
mov eax, dword [rsp + 0x30]
sub eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
cdq
idiv ebx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
cdq
idiv ebx
mov dword [rsp + 0x30], edx
sub rdi, r13
jne 0x14020c6c0
jmp 0x14020c6a1
mov eax, dword [rsp + 0x30]
lea r8, [rbp - 0x78]
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x14020ca9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movups xmm0, xmmword [str.r___38]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [0x14026b0c0]
movups xmmword [rsp + 0x60], xmm1
psrldq xmm1, 0xf
movd eax, xmm1
test al, al
je 0x14020ca8c
mov r9d, r14d
cmp dword [0x14027e090], 2
jl 0x14020ca2f
movdqa xmm8, xmmword [0x14026e190]
mov edx, r14d
movdqa xmm5, xmmword [0x14026e2d0]
movdqa xmm6, xmmword [0x14026e2f0]
movdqa xmm9, xmmword [str.kkkkmmmm]
movdqa xmm10, xmmword [0x14026e300]
movdqa xmm0, xmmword [0x14026e2c0]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x54]
movdqa xmm7, xmmword [0x14026e2a0]
mov r8d, dword [rsp + 0x40]
nop
movd xmm4, edx
pshufd xmm4, xmm4, 0
paddd xmm4, xmm8
movdqa xmm2, xmm4
punpckldq xmm2, xmm4
movdqa xmm1, xmm4
punpckhdq xmm1, xmm4
movdqa xmm3, xmm2
pmuldq xmm3, xmm5
movdqa xmm0, xmm1
pmuldq xmm0, xmm5
shufps xmm3, xmm0, 0xdd
psrad xmm3, 5
pmuldq xmm2, xmm6
pmuldq xmm1, xmm6
shufps xmm2, xmm1, 0xdd
psrad xmm2, 4
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmm10
movdqa xmm1, xmm4
psubd xmm1, xmm0
andps xmm1, xmm7
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movdqa xmm0, xmm3
psrld xmm0, 0x1f
paddd xmm0, xmm3
pmulld xmm0, xmm9
psubd xmm4, xmm0
andps xmm4, xmm7
packuswb xmm4, xmm4
packuswb xmm4, xmm4
paddb xmm1, xmm4
movd xmm0, r8d
paddb xmm1, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm1, xmm0
movd dword [rcx - 4], xmm1
lea eax, [rdx + 4]
movd xmm4, eax
pshufd xmm4, xmm4, 0
paddd xmm4, xmm8
movdqa xmm2, xmm4
punpckldq xmm2, xmm4
movdqa xmm1, xmm4
punpckhdq xmm1, xmm4
movdqa xmm3, xmm2
pmuldq xmm3, xmm5
movdqa xmm0, xmm1
pmuldq xmm0, xmm5
shufps xmm3, xmm0, 0xdd
psrad xmm3, 5
pmuldq xmm2, xmm6
pmuldq xmm1, xmm6
shufps xmm2, xmm1, 0xdd
psrad xmm2, 4
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmm10
movdqa xmm1, xmm4
psubd xmm1, xmm0
andps xmm1, xmm7
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movdqa xmm0, xmm3
psrld xmm0, 0x1f
paddd xmm0, xmm3
pmulld xmm0, xmm9
psubd xmm4, xmm0
andps xmm4, xmm7
packuswb xmm4, xmm4
packuswb xmm4, xmm4
paddb xmm1, xmm4
movd xmm0, r8d
paddb xmm1, xmm0
movd xmm0, dword [rcx]
xorps xmm1, xmm0
movd dword [rcx], xmm1
add edx, 8
lea rcx, [rcx + 8]
cmp edx, 0x20
jl 0x14020c8b0
mov edx, r11d
lea rcx, [rsp + 0x50]
call fcn.1401f0d40
jmp 0x14020d190
lea r10, [rsp + 0x50]
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x22b63cbf
mul r9d
shr edx, 4
movsx eax, dl
imul ecx, eax, 0x3b
movzx r8d, r9b
sub r8b, cl
add r8b, 0x1f
add r8b, r8b
mov eax, 0x323e34a3
mul r9d
mov eax, r9d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 6
movsx eax, al
imul ecx, eax, 0x6b
sub r8b, cl
xor byte [r10], r8b
inc r9d
lea r10, [r10 + 1]
cmp r9d, 0x20
jl 0x14020ca40
mov edx, r11d
lea rcx, [rsp + 0x50]
call fcn.1401f0d40
jmp 0x14020d190
mov dword [rbp - 0x70], r13d
mov rax, qword [rbp - 0x78]
mov qword [rbp - 0x6c], rax
mov dword [rbp - 0x64], 4
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov r9d, 0x10
lea r8, [rbp - 0x70]
xor edx, edx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x14020cd43
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movups xmm0, xmmword [0x14026b940]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [0x14026b950]
movups xmmword [rsp + 0x60], xmm1
movzx eax, byte [0x14026b960]
mov byte [rsp + 0x70], al
mov r9d, r14d
cmp dword [0x14027e090], 2
jl 0x14020ccd5
movdqa xmm8, xmmword [0x14026e190]
movdqa xmm5, xmmword [0x14026e2d0]
movdqa xmm6, xmmword [0x14026e2f0]
movdqa xmm9, xmmword [str.kkkkmmmm]
movdqa xmm10, xmmword [0x14026e300]
movdqa xmm0, xmmword [0x14026e2c0]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x54]
movdqa xmm7, xmmword [0x14026e2a0]
mov edx, dword [rsp + 0x40]
nop
movd xmm4, r9d
pshufd xmm4, xmm4, 0
paddd xmm4, xmm8
movdqa xmm2, xmm4
punpckldq xmm2, xmm4
movdqa xmm1, xmm4
punpckhdq xmm1, xmm4
movdqa xmm3, xmm2
pmuldq xmm3, xmm5
movdqa xmm0, xmm1
pmuldq xmm0, xmm5
shufps xmm3, xmm0, 0xdd
psrad xmm3, 5
pmuldq xmm2, xmm6
pmuldq xmm1, xmm6
shufps xmm2, xmm1, 0xdd
psrad xmm2, 4
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmm10
movdqa xmm1, xmm4
psubd xmm1, xmm0
andps xmm1, xmm7
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movdqa xmm0, xmm3
psrld xmm0, 0x1f
paddd xmm0, xmm3
pmulld xmm0, xmm9
psubd xmm4, xmm0
andps xmm4, xmm7
packuswb xmm4, xmm4
packuswb xmm4, xmm4
paddb xmm1, xmm4
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm1, xmm0
movd dword [rcx - 4], xmm1
lea eax, [r9 + 4]
movd xmm4, eax
pshufd xmm4, xmm4, 0
paddd xmm4, xmm8
movdqa xmm2, xmm4
punpckldq xmm2, xmm4
movdqa xmm1, xmm4
punpckhdq xmm1, xmm4
movdqa xmm3, xmm2
pmuldq xmm3, xmm5
movdqa xmm0, xmm1
pmuldq xmm0, xmm5
shufps xmm3, xmm0, 0xdd
psrad xmm3, 5
pmuldq xmm2, xmm6
pmuldq xmm1, xmm6
shufps xmm2, xmm1, 0xdd
psrad xmm2, 4
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmm10
movdqa xmm1, xmm4
psubd xmm1, xmm0
andps xmm1, xmm7
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movdqa xmm0, xmm3
psrld xmm0, 0x1f
paddd xmm0, xmm3
pmulld xmm0, xmm9
psubd xmm4, xmm0
andps xmm4, xmm7
packuswb xmm4, xmm4
packuswb xmm4, xmm4
paddb xmm1, xmm4
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [rcx]
xorps xmm1, xmm0
movd dword [rcx], xmm1
add r9d, 8
lea rcx, [rcx + 8]
cmp r9d, 0x20
jl 0x14020cb60
cmp r9d, 0x21
jge 0x14020cd31
movsxd rax, r9d
lea r10, [rsp + 0x50]
add r10, rax
mov eax, 0x22b63cbf
imul r9d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3b
movzx r8d, r9b
sub r8b, cl
add r8b, 0x1f
add r8b, r8b
mov eax, 0x4c8f8d29
imul r9d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x6b
sub r8b, cl
xor byte [r10], r8b
inc r9d
lea r10, [r10 + 1]
cmp r9d, 0x21
jl 0x14020cce0
mov edx, r11d
lea rcx, [rsp + 0x50]
call fcn.1401f0d40
jmp 0x14020d190
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rbp + 0x1344], 0xffffffff
mov dword [rbp - 0x3c], eax
mov rcx, r13
nop dword [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rbp + rcx*4 - 0x3c], edx
inc rcx
cmp rcx, 0x270
jb 0x14020cd60
mov dword [rbp - 0x40], 0x270
mov dword [rsp + 0x30], r14d
lea rcx, [rsp + 0x40]
call fcn.1401f17b0
mov rsi, qword [rsp + 0x40]
add rsi, 0x5f5e100
lea rcx, [rsp + 0x40]
call fcn.1401f17b0
cmp qword [rax], rsi
jge 0x14020cf03
mov edi, 0x186a0
nop dword [rax]
lea rcx, [rbp - 0x40]
call fcn.140247dd0
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x63
ja 0x14020cdee
lea rcx, [rbp - 0x40]
call fcn.140247dd0
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x64
jb 0x14020cdd7
shr rax, 0x20
lea ebx, [rax + 0x7fffff9c]
xor ebx, 0x80000000
cmove ebx, r13d
lea rcx, [rbp - 0x40]
call fcn.140247dd0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x14020ce37
nop dword [rax]
lea rcx, [rbp - 0x40]
call fcn.140247dd0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x14020ce20
shr rcx, 0x20
add ecx, 0x7fffff9c
btc ecx, 0x1f
mov eax, dword [rsp + 0x30]
add eax, ecx
mov dword [rsp + 0x30], eax
lea rcx, [rbp - 0x40]
call fcn.140247dd0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x14020ce7d
lea rcx, [rbp - 0x40]
call fcn.140247dd0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x14020ce66
shr rcx, 0x20
add ecx, 0x7fffff9c
btc ecx, 0x1f
mov eax, dword [rsp + 0x30]
imul eax, ecx
mov dword [rsp + 0x30], eax
lea rcx, [rbp - 0x40]
call fcn.140247dd0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x14020cec7
nop dword [rax]
lea rcx, [rbp - 0x40]
call fcn.140247dd0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x14020ceb0
shr rcx, 0x20
add ecx, 0x7fffff9c
btc ecx, 0x1f
mov eax, dword [rsp + 0x30]
sub eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
cdq
idiv ebx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
cdq
idiv ebx
mov dword [rsp + 0x30], edx
sub rdi, r13
jne 0x14020cdc0
jmp 0x14020cda1
mov eax, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x14020d18d
movups xmm0, xmmword [str.j_d2___p6_3z21]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [0x14026ccb8]
movups xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [0x14026ccc8]
movups xmmword [rsp + 0x70], xmm0
movzx eax, word [0x14026ccd8]
mov word [rbp - 0x80], ax
movzx eax, byte [0x14026ccda]
mov byte [rbp - 0x7e], al
mov r9d, r14d
cmp dword [0x14027e090], 2
jl 0x14020d125
movdqa xmm8, xmmword [0x14026e190]
movdqa xmm5, xmmword [0x14026e2d0]
movdqa xmm6, xmmword [0x14026e2f0]
movdqa xmm9, xmmword [0x14026e300]
movdqa xmm10, xmmword [str.kkkkmmmm]
movdqa xmm0, xmmword [0x14026e2c0]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x54]
movdqa xmm7, xmmword [0x14026e2a0]
mov edx, dword [rsp + 0x40]
nop dword [rax + rax]
movd xmm4, r9d
pshufd xmm4, xmm4, 0
paddd xmm4, xmm8
movdqa xmm2, xmm4
punpckldq xmm2, xmm4
movdqa xmm1, xmm4
punpckhdq xmm1, xmm4
movdqa xmm3, xmm2
pmuldq xmm3, xmm5
movdqa xmm0, xmm1
pmuldq xmm0, xmm5
shufps xmm3, xmm0, 0xdd
psrad xmm3, 5
pmuldq xmm2, xmm6
pmuldq xmm1, xmm6
shufps xmm2, xmm1, 0xdd
psrad xmm2, 4
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmm9
movdqa xmm1, xmm4
psubd xmm1, xmm0
andps xmm1, xmm7
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movdqa xmm0, xmm3
psrld xmm0, 0x1f
paddd xmm0, xmm3
pmulld xmm0, xmm10
psubd xmm4, xmm0
andps xmm4, xmm7
packuswb xmm4, xmm4
packuswb xmm4, xmm4
paddb xmm1, xmm4
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm1, xmm0
movd dword [rcx - 4], xmm1
lea eax, [r9 + 4]
movd xmm4, eax
pshufd xmm4, xmm4, 0
paddd xmm4, xmm8
movdqa xmm2, xmm4
punpckldq xmm2, xmm4
movdqa xmm1, xmm4
punpckhdq xmm1, xmm4
movdqa xmm3, xmm2
pmuldq xmm3, xmm5
movdqa xmm0, xmm1
pmuldq xmm0, xmm5
shufps xmm3, xmm0, 0xdd
psrad xmm3, 5
pmuldq xmm2, xmm6
pmuldq xmm1, xmm6
shufps xmm2, xmm1, 0xdd
psrad xmm2, 4
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmm9
movdqa xmm1, xmm4
psubd xmm1, xmm0
andps xmm1, xmm7
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movdqa xmm0, xmm3
psrld xmm0, 0x1f
paddd xmm0, xmm3
pmulld xmm0, xmm10
psubd xmm4, xmm0
andps xmm4, xmm7
packuswb xmm4, xmm4
packuswb xmm4, xmm4
paddb xmm1, xmm4
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [rcx]
xorps xmm1, xmm0
movd dword [rcx], xmm1
add r9d, 8
lea rcx, [rcx + 8]
cmp r9d, 0x30
jl 0x14020cfb0
cmp r9d, 0x33
jge 0x14020d181
movsxd rax, r9d
lea r10, [rsp + 0x50]
add r10, rax
mov eax, 0x22b63cbf
imul r9d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3b
movzx r8d, r9b
sub r8b, cl
add r8b, 0x1f
add r8b, r8b
mov eax, 0x4c8f8d29
imul r9d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x6b
sub r8b, cl
xor byte [r10], r8b
inc r9d
lea r10, [r10 + 1]
cmp r9d, 0x33
jl 0x14020d130
lea rcx, [rsp + 0x50]
call fcn.1401f0d40
jmp 0x14020d190
mov r14d, r13d
mov rcx, qword [rbp - 0x60]
movabs rax, 0xff00ff00ff00ff00
xor rcx, rax
lea rax, [rbp + 0x13e8]
mov qword [rax], rcx
mov eax, r14d
mov rcx, qword [rbp + 0x1350]
xor rcx, rsp
call fcn.14025ba00
lea r11, [rsp + 0x14b0]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret