Function at 0x140005ed0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r15
lea rbp, [rsp - 0x18]
sub rsp, 0x118
mov rax, qword [0x1400f3e08]
xor rax, rsp
mov qword [rbp], rax
mov r13, rdx
mov r15, rcx
mov rcx, qword [0x1400f8a70]
xor edx, edx
mov r8d, 0x130
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x140005f6f
test byte [0x1400f8b38], 2
je 0x140005f65
lea rax, str.QUIC_BINDING
mov qword [rsp + 0x30], 0x130
mov qword [rbp - 0x60], rax
lea r9d, [rdi + 3]
lea rax, [rsp + 0x30]
mov qword [rbp - 0x58], SafeArrayLock
mov qword [rbp - 0x50], rax
lea rdx, [0x1400d0050]
lea rax, [rbp - 0x70]
mov qword [rbp - 0x48], 8
mov qword [rsp + 0x20], rax
call fcn.140001460
mov eax, 0x8007000e
jmp 0x1400062b7
xor esi, esi
mov qword [rsp + 0x160], r12
mov dword [rax + 0x14], esi
mov eax, dword [r15 + 0x10]
shr eax, 1
not al
mov qword [rsp + 0x110], r14
xor al, byte [rdi + 0x10]
and al, 1
xor al, byte [rdi + 0x10]
mov byte [rdi + 0x10], al
mov edx, dword [r15 + 0x10]
shr edx, 2
add dl, dl
xor dl, al
and dl, 2
xor dl, al
mov byte [rdi + 0x10], dl
mov rax, qword [r15 + 8]
neg rax
mov dword [rdi + 0x120], esi
sbb cl, cl
and dl, 0xfb
and cl, 4
or cl, dl
mov byte [rdi + 0x10], cl
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_InitializeSRWLock]
lea rcx, [rdi + 0x88]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xorps xmm0, xmm0
lea rax, [rdi + 0x30]
mov qword [rax + 8], rax
lea rcx, [rdi + 0x48]
mov qword [rax], rax
xor eax, eax
movups xmmword [rdi + 0x40], xmm0
movups xmmword [rdi + 0x50], xmm0
movups xmmword [rdi + 0x60], xmm0
movups xmmword [rdi + 0x70], xmm0
mov qword [rdi + 0x80], rax
call qword [sym.imp.KERNEL32.dll_InitializeSRWLock]
lea rax, [rdi + 0xb0]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.14005ca20
test al, al
jne 0x140006040
lea rcx, [rdi + 0x40]
mov ebx, 0x8007000e
lea r14, [rdi + 0x88]
call fcn.140030430
jmp 0x1400061a1
lea rax, [rdi + 0xd8]
mov r9d, 2
lea rdx, [rdi + 0x18]
mov qword [rax + 8], rax
xor ecx, ecx
mov qword [rax], rax
lea r8d, [r9 + 2]
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov eax, dword [rdi + 0x18]
and eax, 0xfafafafa
or eax, 0xa0a0a0a
mov dword [rdi + 0x18], eax
mov eax, dword [r15 + 0x28]
mov dword [rdi + 0x1c], eax
call qword [sym.imp.IPHLPAPI.DLL_GetCurrentThreadCompartmentId]
mov ecx, dword [r15 + 0x28]
mov r12d, eax
cmp eax, ecx
je 0x1400060fc
call qword [sym.imp.IPHLPAPI.DLL_SetCurrentThreadCompartmentId]
mov ebx, eax
test eax, eax
jle 0x1400060a1
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x1400060d5
test byte [0x1400f8b3d], 0x20
je 0x140006182
lea rax, [rsp + 0x38]
mov qword [rbp - 0x38], 0x1b
mov qword [rbp - 0x60], rax
lea rax, [rsp + 0x30]
mov qword [rbp - 0x50], rax
lea rax, str.Set_current_compartment_Id
jmp 0x14000614a
mov qword [r15 + 0x20], rdi
lea r14, [rdi + 0x20]
mov rcx, qword [0x1400f75a8]
mov r8, r14
mov rdx, r15
call fcn.140058080
mov ecx, r12d
mov ebx, eax
call qword [sym.imp.IPHLPAPI.DLL_SetCurrentThreadCompartmentId]
jmp 0x140006118
mov qword [r15 + 0x20], rdi
lea r14, [rdi + 0x20]
mov rcx, qword [0x1400f75a8]
mov r8, r14
mov rdx, r15
call fcn.140058080
mov ebx, eax
test ebx, ebx
jns 0x1400061c3
test byte [0x1400f8b3d], 0x20
je 0x140006182
lea rax, [rsp + 0x38]
mov qword [rbp - 0x38], reloc.OLEAUT32.dll_SafeArrayGetElement
mov qword [rbp - 0x60], rax
lea rax, [rsp + 0x30]
mov qword [rbp - 0x50], rax
lea rax, str.Create_datapath_binding
mov qword [rbp - 0x40], rax
lea rdx, [0x1400d0280]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x30], ebx
mov r9d, 4
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], rdi
mov qword [rbp - 0x58], 8
mov qword [rbp - 0x48], 4
call fcn.140001460
lea rcx, [rdi + 0x40]
mov rsi, rdi
lea r14, [rdi + 0x88]
call fcn.140030430
lea rcx, [rdi + 0xb0]
call fcn.14005cbb0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [0x1400f8a70]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
jmp 0x1400062a7
test byte [0x1400f8b3d], 4
mov rax, qword [r14]
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rsp + 0x60], xmm1
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x68], eax
mov rax, qword [r14]
movups xmm0, xmmword [rax + 0x1c]
movups xmmword [rsp + 0x70], xmm0
movsd xmm1, qword [rax + 0x2c]
movsd qword [rbp - 0x80], xmm1
mov eax, dword [rax + 0x34]
mov dword [rbp - 0x78], eax
je 0x1400062a1
mov rax, qword [r14]
lea rdx, [0x1400d04d8]
mov qword [rsp + 0x30], rax
mov r9d, 7
lea rax, [rsp + 0x38]
mov byte [rsp + 0x48], 0x1c
mov qword [rbp - 0x60], rax
lea rax, [rsp + 0x30]
mov qword [rbp - 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rbp - 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rbp - 0x20], rax
lea rax, [rsp + 0x70]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x40], 0x1c
mov qword [rsp + 0x38], rdi
mov qword [rbp - 0x58], 8
mov qword [rbp - 0x48], 8
mov qword [rbp - 0x38], 1
mov qword [rbp - 0x28], 0x1c
mov qword [rbp - 0x18], 1
mov qword [rbp - 8], 0x1c
call fcn.140001460
mov qword [r13], rdi
mov eax, esi
mov r12, qword [rsp + 0x160]
mov r14, qword [rsp + 0x110]
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14007f5b0
add rsp, 0x118
pop r15
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret