Function at 0x14002fd70
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, 0x128
movaps xmmword [rsp + 0x110], xmm6
mov rsi, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x108], rax
test r8, r8
je 0x14003008a
mov rdi, r8
lea rbp, [r8 + 0xffff]
and rbp, 0xffffffffffff0000
cmp rbp, r8
jb 0x14003008a
mov rax, rbp
shr rax, 0x1f
jne 0x14003008a
mov ebx, edx
test edx, edx
je 0x1400300a3
movabs r13, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0xb8]
mov qword [rcx], r13
mov qword [rsp + 0xb0], r13
movaps xmm6, xmmword [0x140270690]
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
mov edx, 8
mov r8d, 2
call qword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x14003008a
lea rcx, [rsp + 0x90]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x14003008a
lea r14, [rsp + 0x90]
lea r8, [rsp + 0xb8]
mov rcx, r14
mov edx, 1
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x14003008a
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], 0
call fcn.140121e00
mov rax, qword [0x1402a2738]
cmp dword [rax], 5
jle 0x1400300a6
xor ecx, ecx
xor eax, eax
movaps xmmword [rsp + 0xe0], xmm6
mov qword [rsp + 0xf0], r13
mov dword [rsp + 0xe0], 0x18
mov qword [rsp + 0xe8], r14
mov dword [rsp + 0xf0], 0
mov edx, eax
and dl, 0x7f
test al, al
movzx edx, dl
cmovs rdx, rcx
test rdx, rdx
jne 0x140030172
xor eax, eax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
lea rdx, [rsp + 0xe0]
xor ebp, ebp
mov rcx, 0xffffffffffffffff
mov r8d, 4
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test rax, rax
je 0x14003002e
mov r14, rax
lea r15, [rsp + 0xc0]
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 0x14003002e
mov r14, qword [rsp + 0xc0]
test r14, r14
je 0x14003002e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140030082
call fcn.140105b90
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140030199
xorps xmm0, xmm0
lea r15, [rsp + 0xc0]
movaps xmmword [r15], xmm0
mov rcx, r15
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400301b5
mov qword [rsp + 0x40], 0
test r14, r14
je 0x14002fffa
cmp r14, 0xffffffffffffffff
je 0x1400301b8
call fcn.140105b90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov qword [rsp + 0x40], r14
call fcn.140105b90
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.1401550e0
xor r14d, r14d
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140030045
call fcn.140105b90
mov rcx, r14
call fcn.1401651a0
jmp 0x140030045
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 + 0x87], 0
js 0x140030180
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.14017e7b0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x110]
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x14002ff86
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 0x140030053
int3
lea rcx, [rsp + 0xe0]
movaps xmmword [rcx + 0x10], xmm6
movaps xmmword [rcx], xmm6
mov edx, 0x20
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400301c5
movaps xmm0, xmmword [rsp + 0xf0]
mov r8, qword [rsp + 0xe0]
mov r9, qword [rsp + 0xe8]
movups xmmword [rsp + 0x20], xmm0
lea rdx, str.CrSharedMem__016llx_016llx_016llx_016llx
lea r15, [rsp + 0x48]
mov rcx, r15
call fcn.14010a600
movzx eax, byte [r15 + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [r15]
cmovns rax, r15
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
cmovs rcx, qword [r15 + 8]
mov qword [rdx + 8], rcx
lea r12, [rsp + 0xc0]
mov rcx, r12
call fcn.140170b50
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x70], xmm0
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x80], rax
mov byte [r12 + 0x17], 0
mov word [r12], 0
cmp byte [r15 + 0x17], 0
jns 0x140030161
mov rcx, qword [rsp + 0x48]
call fcn.14017b254
mov al, byte [rsp + 0x87]
mov rcx, qword [rsp + 0x78]
jmp 0x14002fe98
test al, al
jns 0x14003018f
mov rax, qword [rsp + 0x70]
jmp 0x14002fedf
mov rcx, qword [rsp + 0x70]
call fcn.14017b254
jmp 0x140030053
lea rax, [rsp + 0x70]
jmp 0x14002fedf
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 0x140030015
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x14002fff2
int3