Function at 0x14020ce60
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.140267620
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 [0x14028a040]
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 0x14020cf20
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 0x14020d0c3
mov edi, 0x186a0
nop dword [rax]
lea rcx, [rbp - 0x40]
call fcn.1402526b0
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x63
ja 0x14020cfae
lea rcx, [rbp - 0x40]
call fcn.1402526b0
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x64
jb 0x14020cf97
shr rax, 0x20
lea ebx, [rax + 0x7fffff9c]
xor ebx, 0x80000000
cmove ebx, r13d
lea rcx, [rbp - 0x40]
call fcn.1402526b0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x14020cff7
nop dword [rax]
lea rcx, [rbp - 0x40]
call fcn.1402526b0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x14020cfe0
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.1402526b0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x14020d03d
lea rcx, [rbp - 0x40]
call fcn.1402526b0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x14020d026
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.1402526b0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x14020d087
nop dword [rax]
lea rcx, [rbp - 0x40]
call fcn.1402526b0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x14020d070
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 0x14020cf80
jmp 0x14020cf61
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 0x14020d35e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movups xmm0, xmmword [str._r____]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [0x140276dd0]
movups xmmword [rsp + 0x60], xmm1
psrldq xmm1, 0xf
movd eax, xmm1
test al, al
je 0x14020d34c
mov r9d, r14d
cmp dword [0x14028a090], 2
jl 0x14020d2ef
movdqa xmm8, xmmword [0x140279550]
mov edx, r14d
movdqa xmm5, xmmword [0x140279690]
movdqa xmm6, xmmword [0x1402796b0]
movdqa xmm9, xmmword [str.kkkkoooo]
movdqa xmm10, xmmword [0x1402796c0]
movdqa xmm0, xmmword [0x140279680]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x54]
movdqa xmm7, xmmword [0x140279660]
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 0x14020d170
mov edx, r11d
lea rcx, [rsp + 0x50]
call fcn.1401f0d40
jmp 0x14020da50
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, 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
add r8b, 0x41
xor byte [r10], r8b
inc r9d
lea r10, [r10 + 1]
cmp r9d, 0x20
jl 0x14020d300
mov edx, r11d
lea rcx, [rsp + 0x50]
call fcn.1401f0d40
jmp 0x14020da50
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 0x14020d603
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movups xmm0, xmmword [0x140276e10]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [0x140276e20]
movups xmmword [rsp + 0x60], xmm1
movzx eax, byte [0x140276e30]
mov byte [rsp + 0x70], al
mov r9d, r14d
cmp dword [0x14028a090], 2
jl 0x14020d595
movdqa xmm8, xmmword [0x140279550]
movdqa xmm5, xmmword [0x140279690]
movdqa xmm6, xmmword [0x1402796b0]
movdqa xmm9, xmmword [str.kkkkoooo]
movdqa xmm10, xmmword [0x1402796c0]
movdqa xmm0, xmmword [0x140279680]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x54]
movdqa xmm7, xmmword [0x140279660]
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 0x14020d420
cmp r9d, 0x21
jge 0x14020d5f1
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, 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
add r8b, 0x41
xor byte [r10], r8b
inc r9d
lea r10, [r10 + 1]
cmp r9d, 0x21
jl 0x14020d5a0
mov edx, r11d
lea rcx, [rsp + 0x50]
call fcn.1401f0d40
jmp 0x14020da50
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 0x14020d620
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 0x14020d7c3
mov edi, 0x186a0
nop dword [rax]
lea rcx, [rbp - 0x40]
call fcn.1402526b0
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x63
ja 0x14020d6ae
lea rcx, [rbp - 0x40]
call fcn.1402526b0
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x64
jb 0x14020d697
shr rax, 0x20
lea ebx, [rax + 0x7fffff9c]
xor ebx, 0x80000000
cmove ebx, r13d
lea rcx, [rbp - 0x40]
call fcn.1402526b0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x14020d6f7
nop dword [rax]
lea rcx, [rbp - 0x40]
call fcn.1402526b0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x14020d6e0
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.1402526b0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x14020d73d
lea rcx, [rbp - 0x40]
call fcn.1402526b0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x14020d726
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.1402526b0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x14020d787
nop dword [rax]
lea rcx, [rbp - 0x40]
call fcn.1402526b0
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x14020d770
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 0x14020d680
jmp 0x14020d661
mov eax, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x14020da4d
movups xmm0, xmmword [0x140275ad0]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [0x140275ae0]
movups xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [0x140275af0]
movups xmmword [rsp + 0x70], xmm0
movzx eax, word [0x140275b00]
mov word [rbp - 0x80], ax
movzx eax, byte [0x140275b02]
mov byte [rbp - 0x7e], al
mov r9d, r14d
cmp dword [0x14028a090], 2
jl 0x14020d9e5
movdqa xmm8, xmmword [0x140279550]
movdqa xmm5, xmmword [0x140279690]
movdqa xmm6, xmmword [0x1402796b0]
movdqa xmm9, xmmword [0x1402796c0]
movdqa xmm10, xmmword [str.kkkkoooo]
movdqa xmm0, xmmword [0x140279680]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x54]
movdqa xmm7, xmmword [0x140279660]
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 0x14020d870
cmp r9d, 0x33
jge 0x14020da41
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, 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
add r8b, 0x41
xor byte [r10], r8b
inc r9d
lea r10, [r10 + 1]
cmp r9d, 0x33
jl 0x14020d9f0
lea rcx, [rsp + 0x50]
call fcn.1401f0d40
jmp 0x14020da50
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.1402662e0
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