Function at 0x140033cd0
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 [0x140287028]
xor rax, rsp
mov qword [rsp + 0x108], rax
test r8, r8
je 0x140033fea
mov rdi, r8
lea rbp, [r8 + 0xffff]
and rbp, 0xffffffffffff0000
cmp rbp, r8
jb 0x140033fea
mov rax, rbp
shr rax, 0x1f
jne 0x140033fea
mov ebx, edx
test edx, edx
je 0x140034003
movabs r13, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0xb8]
mov qword [rcx], r13
mov qword [rsp + 0xb0], r13
movaps xmm6, xmmword [0x140261350]
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 0x140033fea
lea rcx, [rsp + 0x90]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x140033fea
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 0x140033fea
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], 0
call fcn.1401128d0
mov rax, qword [0x14029b590]
cmp dword [rax], 5
jle 0x140034006
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 0x1400340d2
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 0x140033f8e
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 0x140033f8e
mov r14, qword [rsp + 0xc0]
test r14, r14
je 0x140033f8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140033fe2
call fcn.1400f24d0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400340f9
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 0x140034115
mov qword [rsp + 0x40], 0
test r14, r14
je 0x140033f5a
cmp r14, 0xffffffffffffffff
je 0x140034118
call fcn.1400f24d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov qword [rsp + 0x40], r14
call fcn.1400f24d0
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.14014f600
xor r14d, r14d
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140033fa5
call fcn.1400f24d0
mov rcx, r14
call fcn.1401571e0
jmp 0x140033fa5
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 0x1400340e0
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.1401756e0
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 0x140033ee6
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 0x140033fb3
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 0x140034125
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.140102fa0
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.140162970
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 0x1400340c1
mov rcx, qword [rsp + 0x48]
call fcn.140172a44
mov al, byte [rsp + 0x87]
mov rcx, qword [rsp + 0x78]
jmp 0x140033df8
test al, al
jns 0x1400340ef
mov rax, qword [rsp + 0x70]
jmp 0x140033e3f
mov rcx, qword [rsp + 0x70]
call fcn.140172a44
jmp 0x140033fb3
lea rax, [rsp + 0x70]
jmp 0x140033e3f
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 0x140033f75
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x140033f52
int3