Function at 0x140222580
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.140272980
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 [0x140294040]
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 0x140222640
mov dword [rbp - 0x40], 0x270
mov dword [rsp + 0x30], r14d
lea rcx, [rsp + 0x40]
call fcn.140201b40
mov rsi, qword [rsp + 0x40]
add rsi, 0x5f5e100
lea rcx, [rsp + 0x40]
call fcn.140201b40
cmp qword [rax], rsi
jge 0x1402227e3
mov edi, 0x186a0
nop dword [rax]
lea rcx, [rbp - 0x40]
call fcn.14025d840
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x63
ja 0x1402226ce
lea rcx, [rbp - 0x40]
call fcn.14025d840
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x64
jb 0x1402226b7
shr rax, 0x20
lea ebx, [rax + 0x7fffff9c]
xor ebx, 0x80000000
cmove ebx, r13d
lea rcx, [rbp - 0x40]
call fcn.14025d840
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x140222717
nop dword [rax]
lea rcx, [rbp - 0x40]
call fcn.14025d840
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x140222700
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.14025d840
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x14022275d
lea rcx, [rbp - 0x40]
call fcn.14025d840
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x140222746
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.14025d840
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x1402227a7
nop dword [rax]
lea rcx, [rbp - 0x40]
call fcn.14025d840
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x140222790
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 0x1402226a0
jmp 0x140222681
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 0x140222a93
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movups xmm0, xmmword [0x140280ed8]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [0x140280ee8]
movups xmmword [rsp + 0x60], xmm1
psrldq xmm1, 0xf
movd eax, xmm1
test al, al
je 0x140222a81
mov r9d, r14d
cmp dword [0x140294090], 2
jl 0x140222a1f
movdqa xmm8, xmmword [0x140284260]
mov edx, r14d
movdqa xmm5, xmmword [0x1402843c0]
movdqa xmm6, xmmword [0x1402843a0]
movdqa xmm9, xmmword [str.ffffiiii]
movdqa xmm10, xmmword [0x1402843d0]
movdqa xmm0, xmmword [0x140284390]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x54]
movdqa xmm7, xmmword [0x140284370]
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
paddd xmm3, xmm4
psrad xmm3, 6
pmuldq xmm2, xmm6
pmuldq xmm1, xmm6
shufps xmm2, xmm1, 0xdd
psubd xmm2, xmm4
psrad xmm2, 6
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
paddd xmm3, xmm4
psrad xmm3, 6
pmuldq xmm2, xmm6
pmuldq xmm1, xmm6
shufps xmm2, xmm1, 0xdd
psubd xmm2, xmm4
psrad xmm2, 6
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 0x140222890
mov edx, r11d
lea rcx, [rsp + 0x50]
call fcn.1402010d0
jmp 0x1402231b1
lea r10, [rsp + 0x50]
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x1f7047dd
mul r9d
mov eax, r9d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 6
movsx eax, al
imul r8d, eax, 0x39
mov eax, 0x5f5f5f5f
imul r9d
sub edx, r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
sub cl, r8b
add cl, 0x23
add cl, r9b
add cl, cl
xor byte [r10], cl
inc r9d
lea r10, [r10 + 1]
cmp r9d, 0x20
jl 0x140222a30
mov edx, r11d
lea rcx, [rsp + 0x50]
call fcn.1402010d0
jmp 0x1402231b1
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 0x140222d54
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movups xmm0, xmmword [str._a__9_]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [0x140281df8]
movups xmmword [rsp + 0x60], xmm1
movzx eax, byte [0x140281e08]
mov byte [rsp + 0x70], al
mov r9d, r14d
cmp dword [0x140294090], 2
jl 0x140222ce5
movdqa xmm8, xmmword [0x140284260]
movdqa xmm5, xmmword [0x1402843c0]
movdqa xmm6, xmmword [0x1402843a0]
movdqa xmm9, xmmword [str.ffffiiii]
movdqa xmm10, xmmword [0x1402843d0]
movdqa xmm0, xmmword [0x140284390]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x54]
movdqa xmm7, xmmword [0x140284370]
mov edx, dword [rsp + 0x40]
nop dword [rax]
nop word [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
paddd xmm3, xmm4
psrad xmm3, 6
pmuldq xmm2, xmm6
pmuldq xmm1, xmm6
shufps xmm2, xmm1, 0xdd
psubd xmm2, xmm4
psrad xmm2, 6
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 xmm3, xmm4
punpckldq xmm3, xmm4
movdqa xmm1, xmm4
punpckhdq xmm1, xmm4
movdqa xmm2, xmm3
pmuldq xmm2, xmm5
movdqa xmm0, xmm1
pmuldq xmm0, xmm5
shufps xmm2, xmm0, 0xdd
paddd xmm2, xmm4
psrad xmm2, 6
pmuldq xmm3, xmm6
pmuldq xmm1, xmm6
shufps xmm3, xmm1, 0xdd
psubd xmm3, xmm4
psrad xmm3, 6
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, 0x20
jl 0x140222b60
cmp r9d, 0x21
jge 0x140222d42
movsxd rax, r9d
lea r10, [rsp + 0x50]
add r10, rax
mov eax, 0x8fb823ef
imul r9d
add edx, r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul r8d, eax, 0x39
mov eax, 0x5f5f5f5f
imul r9d
sub edx, r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
sub cl, r8b
add cl, 0x23
add cl, r9b
add cl, cl
xor byte [r10], cl
inc r9d
lea r10, [r10 + 1]
cmp r9d, 0x21
jl 0x140222cf0
mov edx, r11d
lea rcx, [rsp + 0x50]
call fcn.1402010d0
jmp 0x1402231b1
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]
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 0x140222d70
mov dword [rbp - 0x40], 0x270
mov dword [rsp + 0x30], r14d
lea rcx, [rsp + 0x40]
call fcn.140201b40
mov rsi, qword [rsp + 0x40]
add rsi, 0x5f5e100
lea rcx, [rsp + 0x40]
call fcn.140201b40
cmp qword [rax], rsi
jge 0x140222f13
mov edi, 0x186a0
nop dword [rax]
lea rcx, [rbp - 0x40]
call fcn.14025d840
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x63
ja 0x140222dfe
lea rcx, [rbp - 0x40]
call fcn.14025d840
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x64
jb 0x140222de7
shr rax, 0x20
lea ebx, [rax + 0x7fffff9c]
xor ebx, 0x80000000
cmove ebx, r13d
lea rcx, [rbp - 0x40]
call fcn.14025d840
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x140222e47
nop dword [rax]
lea rcx, [rbp - 0x40]
call fcn.14025d840
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x140222e30
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.14025d840
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x140222e8d
lea rcx, [rbp - 0x40]
call fcn.14025d840
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x140222e76
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.14025d840
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x140222ed7
nop dword [rax]
lea rcx, [rbp - 0x40]
call fcn.14025d840
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x140222ec0
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 0x140222dd0
jmp 0x140222db1
mov eax, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x1402231ae
movups xmm0, xmmword [0x140281b68]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [0x140281b78]
movups xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [0x140281b88]
movups xmmword [rsp + 0x70], xmm0
movzx eax, word [0x140281b98]
mov word [rbp - 0x80], ax
movzx eax, byte [0x140281b9a]
mov byte [rbp - 0x7e], al
mov r9d, r14d
cmp dword [0x140294090], 2
jl 0x140223145
movdqa xmm8, xmmword [0x140284260]
movdqa xmm5, xmmword [0x1402843c0]
movdqa xmm6, xmmword [0x1402843a0]
movdqa xmm9, xmmword [0x1402843d0]
movdqa xmm10, xmmword [str.ffffiiii]
movdqa xmm0, xmmword [0x140284390]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x54]
movdqa xmm7, xmmword [0x140284370]
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
paddd xmm3, xmm4
psrad xmm3, 6
pmuldq xmm2, xmm6
pmuldq xmm1, xmm6
shufps xmm2, xmm1, 0xdd
psubd xmm2, xmm4
psrad xmm2, 6
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
paddd xmm3, xmm4
psrad xmm3, 6
pmuldq xmm2, xmm6
pmuldq xmm1, xmm6
shufps xmm2, xmm1, 0xdd
psubd xmm2, xmm4
psrad xmm2, 6
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 0x140222fc0
cmp r9d, 0x33
jge 0x1402231a2
movsxd rax, r9d
lea r10, [rsp + 0x50]
add r10, rax
mov eax, 0x8fb823ef
imul r9d
add edx, r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul r8d, eax, 0x39
mov eax, 0x5f5f5f5f
imul r9d
sub edx, r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
sub cl, r8b
add cl, 0x23
add cl, r9b
add cl, cl
xor byte [r10], cl
inc r9d
lea r10, [r10 + 1]
cmp r9d, 0x33
jl 0x140223150
lea rcx, [rsp + 0x50]
call fcn.1402010d0
jmp 0x1402231b1
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.140271640
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