Function at 0x140212880
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.14026ed30
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 [0x140291040]
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 0x140212940
mov dword [rbp - 0x40], 0x270
mov dword [rsp + 0x30], r14d
lea rcx, [rsp + 0x40]
call fcn.1401f2240
mov rsi, qword [rsp + 0x40]
add rsi, 0x5f5e100
lea rcx, [rsp + 0x40]
call fcn.1401f2240
cmp qword [rax], rsi
jge 0x140212ae3
mov edi, 0x186a0
nop dword [rax]
lea rcx, [rbp - 0x40]
call fcn.14025a000
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x63
ja 0x1402129ce
lea rcx, [rbp - 0x40]
call fcn.14025a000
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x64
jb 0x1402129b7
shr rax, 0x20
lea ebx, [rax + 0x7fffff9c]
xor ebx, 0x80000000
cmove ebx, r13d
lea rcx, [rbp - 0x40]
call fcn.14025a000
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x140212a17
nop dword [rax]
lea rcx, [rbp - 0x40]
call fcn.14025a000
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x140212a00
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.14025a000
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x140212a5d
lea rcx, [rbp - 0x40]
call fcn.14025a000
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x140212a46
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.14025a000
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x140212aa7
nop dword [rax]
lea rcx, [rbp - 0x40]
call fcn.14025a000
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x140212a90
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 0x1402129a0
jmp 0x140212981
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 0x140212d77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movups xmm0, xmmword [str._f__:]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [0x14027cfc8]
movups xmmword [rsp + 0x60], xmm1
psrldq xmm1, 0xf
movd eax, xmm1
test al, al
je 0x140212d65
mov r9d, r14d
cmp dword [0x140291090], 2
jl 0x140212d0f
movdqa xmm8, xmmword [0x140280570]
mov edx, r14d
movdqa xmm5, xmmword [0x1402806c0]
movdqa xmm6, xmmword [0x1402806d0]
movdqa xmm9, xmmword [str.jjjjllll]
movdqa xmm10, xmmword [0x1402806e0]
movdqa xmm0, xmmword [0x1402806a0]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x54]
movdqa xmm7, xmmword [0x140280680]
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 0x140212b90
mov edx, r11d
lea rcx, [rsp + 0x50]
call fcn.1401f17d0
jmp 0x14021346b
lea r10, [rsp + 0x50]
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x22b63cbf
mul r9d
shr edx, 4
movsx eax, dl
imul r8d, eax, 0x3b
mov eax, 0xb2b78c13
imul r9d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
sub cl, r8b
add cl, 0x20
add cl, r9b
add cl, cl
xor byte [r10], cl
inc r9d
lea r10, [r10 + 1]
cmp r9d, 0x20
jl 0x140212d20
mov edx, r11d
lea rcx, [rsp + 0x50]
call fcn.1401f17d0
jmp 0x14021346b
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 0x14021301e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movups xmm0, xmmword [0x14027db38]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [0x14027db48]
movups xmmword [rsp + 0x60], xmm1
movzx eax, byte [0x14027db58]
mov byte [rsp + 0x70], al
mov r9d, r14d
cmp dword [0x140291090], 2
jl 0x140212fb5
movdqa xmm8, xmmword [0x140280570]
movdqa xmm5, xmmword [0x1402806c0]
movdqa xmm6, xmmword [0x1402806d0]
movdqa xmm9, xmmword [str.jjjjllll]
movdqa xmm10, xmmword [0x1402806e0]
movdqa xmm0, xmmword [0x1402806a0]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x54]
movdqa xmm7, xmmword [0x140280680]
mov edx, dword [rsp + 0x40]
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
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 0x140212e40
cmp r9d, 0x21
jge 0x14021300c
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 r8d, eax, 0x3b
mov eax, 0xb2b78c13
imul r9d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
sub cl, r8b
add cl, 0x20
add cl, r9b
add cl, cl
xor byte [r10], cl
inc r9d
lea r10, [r10 + 1]
cmp r9d, 0x21
jl 0x140212fc0
mov edx, r11d
lea rcx, [rsp + 0x50]
call fcn.1401f17d0
jmp 0x14021346b
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 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 0x140213040
mov dword [rbp - 0x40], 0x270
mov dword [rsp + 0x30], r14d
lea rcx, [rsp + 0x40]
call fcn.1401f2240
mov rsi, qword [rsp + 0x40]
add rsi, 0x5f5e100
lea rcx, [rsp + 0x40]
call fcn.1401f2240
cmp qword [rax], rsi
jge 0x1402131e3
mov edi, 0x186a0
nop dword [rax]
lea rcx, [rbp - 0x40]
call fcn.14025a000
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x63
ja 0x1402130ce
lea rcx, [rbp - 0x40]
call fcn.14025a000
mov ecx, eax
imul rax, rcx, 0xc9
cmp eax, 0x64
jb 0x1402130b7
shr rax, 0x20
lea ebx, [rax + 0x7fffff9c]
xor ebx, 0x80000000
cmove ebx, r13d
lea rcx, [rbp - 0x40]
call fcn.14025a000
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x140213117
nop dword [rax]
lea rcx, [rbp - 0x40]
call fcn.14025a000
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x140213100
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.14025a000
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x14021315d
lea rcx, [rbp - 0x40]
call fcn.14025a000
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x140213146
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.14025a000
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x63
ja 0x1402131a7
nop dword [rax]
lea rcx, [rbp - 0x40]
call fcn.14025a000
mov ecx, eax
imul rcx, rcx, 0xc9
cmp ecx, 0x64
jb 0x140213190
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 0x1402130a0
jmp 0x140213081
mov eax, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x140213468
movups xmm0, xmmword [0x14027ce88]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [0x14027ce98]
movups xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [0x14027cea8]
movups xmmword [rsp + 0x70], xmm0
movzx eax, word [0x14027ceb8]
mov word [rbp - 0x80], ax
movzx eax, byte [0x14027ceba]
mov byte [rbp - 0x7e], al
mov r9d, r14d
cmp dword [0x140291090], 2
jl 0x140213405
movdqa xmm8, xmmword [0x140280570]
movdqa xmm5, xmmword [0x1402806c0]
movdqa xmm6, xmmword [0x1402806d0]
movdqa xmm9, xmmword [0x1402806e0]
movdqa xmm10, xmmword [str.jjjjllll]
movdqa xmm0, xmmword [0x1402806a0]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x54]
movdqa xmm7, xmmword [0x140280680]
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 0x140213290
cmp r9d, 0x33
jge 0x14021345c
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 r8d, eax, 0x3b
mov eax, 0xb2b78c13
imul r9d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
sub cl, r8b
add cl, 0x20
add cl, r9b
add cl, cl
xor byte [r10], cl
inc r9d
lea r10, [r10 + 1]
cmp r9d, 0x33
jl 0x140213410
lea rcx, [rsp + 0x50]
call fcn.1401f17d0
jmp 0x14021346b
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.14026d9f0
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