Function at 0x1400c32a0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push rsi
push rdi
sub rsp, 0x1f8
movdqa xmmword [rsp + 0x1e0], xmm7
movdqa xmmword [rsp + 0x1d0], xmm6
mov rdi, rcx
mov eax, dword [0x14034be94]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x10]
test rax, rax
je 0x1400c32e9
cmp eax, 1
je 0x1400c3316
xor eax, eax
jmp 0x1400c364d
mov eax, dword [0x14034be94]
mov rcx, qword gs:[0x58]
mov rsi, qword [rcx + rax*8]
lea rcx, [rsi + 8]
lea rdx, [0x1400c36b0]
call fcn.1401e80f0
mov byte [rsi + 0x10], 1
test rdi, rdi
je 0x1400c332e
mov rsi, qword [rdi]
mov qword [rdi], 0
test rsi, rsi
jne 0x1400c35f3
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x20
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x1400c3380
mov esi, eax
lea rcx, [rsp + 0x20]
mov edx, 0x20
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
jne 0x1400c3380
xor esi, 0x80000000
jne 0x1400c3667
movdqa xmm7, xmmword [rsp + 0x20]
movdqa xmm6, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x70], xmm6
movdqa xmmword [rsp + 0x60], xmm7
mov rax, qword [0x14034be88]
test rax, rax
je 0x1400c3400
lea rsi, [rsp + 0xe0]
test eax, 0x4000
jne 0x1400c3414
pshufd xmm0, xmm7, 0xee
pshufd xmm1, xmm6, 0xee
movq rax, xmm7
movq rcx, xmm0
movq rdx, xmm6
movq r8, xmm1
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xe8], rcx
mov qword [rsp + 0xf0], rdx
mov qword [rsp + 0xf8], r8
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x100], xmm0
jmp 0x1400c3428
call fcn.14027a2b0
lea rsi, [rsp + 0xe0]
test eax, 0x4000
je 0x1400c33b3
lea r8, [0x1402b18b0]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1400c5a90
movaps xmm0, xmmword [rsi]
movaps xmm1, xmmword [rsi + 0x10]
movaps xmm2, xmmword [rsi + 0x20]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0xb0], xmm1
movaps xmmword [rsp + 0xc0], xmm2
xorps xmm0, xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0x110], xmm0
movaps xmmword [rsp + 0x120], xmm0
movaps xmmword [rsp + 0x130], xmm0
movaps xmmword [rsp + 0x140], xmm0
movaps xmmword [rsp + 0x150], xmm0
movaps xmmword [rsp + 0x160], xmm0
movaps xmmword [rsp + 0x170], xmm0
movaps xmmword [rsp + 0x180], xmm0
movaps xmmword [rsp + 0x190], xmm0
movaps xmmword [rsp + 0x1a0], xmm0
movaps xmmword [rsp + 0x1b0], xmm0
movaps xmmword [rsp + 0x1c0], xmm0
movaps xmm0, xmmword [rsp + 0xa0]
movaps xmm1, xmmword [rsp + 0xb0]
movaps xmm2, xmmword [rsp + 0xc0]
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm1
movups xmmword [rsp + 0x88], xmm2
movups xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x30], xmm0
movdqu xmm0, xmmword [rsp + 0x80]
movdqa xmmword [rsp + 0x40], xmm0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
movzx eax, byte [0x14034be90]
mov rcx, qword [0x14034bdf0]
test rcx, rcx
jne 0x1400c3554
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1400c36a2
mov rcx, rax
mov qword [0x14034bdf0], rax
mov r8d, 0x170
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1400c36a2
mov rsi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov rcx, rax
add rcx, 0x10
lea rdx, [rsp + 0xd0]
mov r8d, pe_nt_image_headers64
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsi + 0x110], 0x40
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmm2, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x118], xmm0
movups xmmword [rsi + 0x128], xmm1
movups xmmword [rsi + 0x138], xmm2
mov rax, qword [rsp + 0x50]
mov qword [rsi + 0x148], rax
mov qword [rsi + 0x150], 0x10000
mov qword [rsi + 0x158], 0x10000
mov qword [rsi + 0x160], 0
mov eax, dword [0x14034be94]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov r8, qword [rax + 8]
mov qword [rax + 8], rsi
test r8, r8
je 0x1400c3646
dec qword [r8]
jne 0x1400c3633
dec qword [r8 + 8]
jne 0x1400c3633
mov rcx, qword [0x14034bdf0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [0x14034be94]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rax, [rax + 8]
movaps xmm6, xmmword [rsp + 0x1d0]
movaps xmm7, xmmword [rsp + 0x1e0]
add rsp, 0x1f8
pop rdi
pop rsi
ret
movzx eax, byte [0x14034be90]
mov rcx, qword [0x14034bdf0]
test rcx, rcx
jne 0x1400c368f
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1400c36a2
mov rcx, rax
mov qword [0x14034bdf0], rax
mov r8d, 4
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
jne 0x1400c36a4
ud2
mov dword [rax], esi
ud2