Function at 0x14015b450
Capabilities:
Check if file exists
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
movaps xmmword [rsp + 0x100], xmm6
mov rsi, rcx
mov rax, qword [0x14033f038]
xor rax, rsp
mov qword [rsp + 0xf8], rax
test r8, r8
je 0x14015b62b
mov rdi, r8
lea rbp, [r8 + 0xffff]
and rbp, 0xffffffffffff0000
cmp rbp, r8
jb 0x14015b62b
mov rax, rbp
shr rax, 0x1f
jne 0x14015b62b
mov ebx, edx
test edx, edx
je 0x14015b876
movabs r13, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0xa8]
mov qword [rcx], r13
mov qword [rsp + 0xa0], r13
movaps xmm6, xmmword [0x140301d60]
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
mov edx, 8
mov r8d, 2
call qword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x14015b62b
lea rcx, [rsp + 0x80]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x14015b62b
lea r14, [rsp + 0x80]
lea r8, [rsp + 0xa8]
mov rcx, r14
mov edx, 1
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x14015b62b
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
call fcn.14008daa0
cmp eax, 5
jg 0x14015b671
lea rcx, [rsp + 0xd0]
movaps xmmword [rcx + 0x10], xmm6
movaps xmmword [rcx], xmm6
mov edx, 0x20
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14015b879
movaps xmm0, xmmword [rsp + 0xe0]
mov r8, qword [rsp + 0xd0]
mov r9, qword [rsp + 0xd8]
movups xmmword [rsp + 0x20], xmm0
lea rdx, str.CrSharedMem__016llx_016llx_016llx_016llx
lea r15, [rsp + 0x48]
mov rcx, r15
call fcn.1400482f0
movzx eax, byte [r15 + 0x17]
mov r8d, eax
and r8d, 0x7f
test al, al
mov rdx, qword [r15]
cmovns rdx, r15
cmovs r8, qword [r15 + 8]
add r8, rdx
lea r12, [rsp + 0xb0]
mov rcx, r12
call fcn.1400a16f0
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x60], xmm0
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x70], rax
mov byte [r12 + 0x17], 0
mov word [r12], 0
cmp byte [r15 + 0x17], 0
jns 0x14015b61b
mov rcx, qword [rsp + 0x48]
call fcn.14016eccc
mov dl, byte [rsp + 0x77]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
jmp 0x14015b677
xor eax, eax
mov qword [rsi], rax
mov dword [rsi + 8], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
mov qword [rsi + 0x20], rax
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.140171860
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
xor ecx, ecx
xor edx, edx
mov r8d, edx
and r8b, 0x7f
test dl, dl
lea rdx, [rsp + 0xd0]
movaps xmmword [rdx], xmm6
mov qword [rdx + 0x10], r13
mov dword [rdx], 0x18
movzx r8d, r8b
cmovs r8, rcx
mov qword [rdx + 8], r14
lea rcx, [rsp + 0x60]
cmovs rcx, rax
mov dword [rdx + 0x10], 0
test r8, r8
cmove rcx, r8
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov rcx, 0xffffffffffffffff
mov r8d, 4
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test rax, rax
je 0x14015b780
mov r14, rax
lea r15, [rsp + 0xb0]
mov qword [r15], r13
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 7
mov rcx, rax
mov rdx, r14
mov r8, rax
mov r9, r15
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ebp, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x14015b780
mov r14, qword [rsp + 0xb0]
test r14, r14
je 0x14015b780
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14015b860
call fcn.1400412c0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14015b7b1
xor eax, eax
mov qword [rsi], rax
mov dword [rsi + 8], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
mov qword [rsi + 0x20], rax
jmp 0x14015b82d
xor eax, eax
mov qword [rsi], rax
mov dword [rsi + 8], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
mov qword [rsi + 0x20], rax
cmp byte [rsp + 0x77], 0
jns 0x14015b642
mov rcx, qword [rsp + 0x60]
call fcn.14016eccc
jmp 0x14015b642
xorps xmm0, xmm0
lea r15, [rsp + 0xb0]
movaps xmmword [r15], xmm0
mov rcx, r15
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14015b87c
mov qword [rsp + 0x40], 0
test r14, r14
je 0x14015b812
cmp r14, 0xffffffffffffffff
jne 0x14015b7f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x14015b80a
call fcn.1400412c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov qword [rsp + 0x40], r14
call fcn.1400412c0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x20], r15
lea rdx, [rsp + 0x40]
mov rcx, rsi
mov r8d, ebx
mov r9, rdi
call fcn.140075870
xor r14d, r14d
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14015b797
call fcn.1400412c0
mov rcx, qword [0x14035abe0]
test rcx, rcx
je 0x14015b868
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [case.0x140211850.0]
jmp 0x14015b797
xor r14d, r14d
jmp 0x14015b74f
call fcn.1400bf420
mov rcx, qword [0x14035abe0]
jmp 0x14015b84c
int3
int3
int3