Function at 0x10004b80
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xd0
push 0
push dword [0x10059a38]
mov ebx, ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x41], 0
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x10004bea
test byte [0x10059ab8], 2
je 0x10004bd4
push eax
push 0xd0
push str.QUIC_BINDING
call fcn.10001500
add esp, 0xc
mov eax, 0x8007000e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100483f7
mov esp, ebp
pop ebp
ret
mov dword [edi + 0xc], 0
mov eax, dword [ebx + 8]
shr eax, 1
not al
xor al, byte [edi + 8]
and al, 1
xor al, byte [edi + 8]
mov byte [edi + 8], al
mov ecx, dword [ebx + 8]
shr ecx, 2
add cl, cl
xor cl, al
and cl, 2
xor cl, al
mov byte [edi + 8], cl
mov eax, dword [ebx + 4]
neg eax
mov dword [edi + 0xc0], 0
sbb al, al
and cl, 0xfb
and al, 4
or al, cl
mov byte [edi + 8], al
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeSRWLock]
lea eax, [edi + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [edi + 0x20]
push 0x34
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [edi + 0x28]
push 0
push eax
call fcn.10049330
add esp, 0xc
lea eax, [edi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeSRWLock]
lea eax, [edi + 0x74]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], eax
call fcn.100461e0
test al, al
jne 0x10004c89
mov ecx, edi
mov esi, 0x8007000e
mov ebx, edi
lea eax, [ecx + 0x5c]
jmp 0x10004d60
push 2
push 4
lea esi, [edi + 0x10]
mov byte [ebp - 0x41], 1
lea eax, [edi + 0x94]
push esi
push 0
mov dword [eax + 4], eax
mov dword [eax], eax
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov eax, dword [esi]
and eax, 0xfafafafa
or eax, 0xa0a0a0a
mov dword [esi], eax
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x14], eax
call dword [sym.imp.IPHLPAPI.DLL_GetCurrentThreadCompartmentId]
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x40], eax
cmp eax, ecx
je 0x10004d1b
push ecx
call dword [sym.imp.IPHLPAPI.DLL_SetCurrentThreadCompartmentId]
mov esi, eax
test esi, esi
jle 0x10004ce4
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x10004cf6
test byte [0x10059abd], 0x20
je 0x10004d59
push str.Set_current_compartment_Id
jmp 0x10004d47
mov edx, dword [ebp - 0x48]
mov dword [ebx + 0x10], edi
lea ebx, [edi + 0x18]
mov ecx, dword [0x100585b0]
push ebx
call fcn.100402a0
add esp, 4
mov esi, eax
push dword [ebp - 0x40]
call dword [sym.imp.IPHLPAPI.DLL_SetCurrentThreadCompartmentId]
jmp 0x10004d35
mov edx, dword [ebp - 0x48]
mov dword [ebx + 0x10], edi
lea ebx, [edi + 0x18]
mov ecx, dword [0x100585b0]
push ebx
call fcn.100402a0
add esp, 4
mov esi, eax
test esi, esi
jns 0x10004daa
test byte [0x10059abd], 0x20
je 0x10004d59
push str.Create_datapath_binding
push esi
push edi
mov edx, 0x1004ca80
lfence
call fcn.100048b0
add esp, 0xc
mov ecx, edi
mov ebx, ecx
lea eax, [ebx + 0x5c]
mov dword [ebp - 0x48], eax
add ecx, 0x28
lfence
call fcn.10020390
cmp byte [ebp - 0x41], 0
je 0x10004d7f
lea ecx, [ebx + 0x74]
lfence
call fcn.100462c0
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push edi
push 0
push dword [0x10059a38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100483f7
mov esp, ebp
pop ebp
ret
lfence
test byte [0x10059abd], 4
mov eax, dword [ebx]
movups xmm0, xmmword [eax + 8]
movups xmmword [ebp - 0x3c], xmm0
movq xmm0, qword [eax + 0x18]
movq qword [ebp - 0x2c], xmm0
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx]
movups xmm0, xmmword [eax + 0x24]
movups xmmword [ebp - 0x20], xmm0
movq xmm0, qword [eax + 0x34]
movq qword [ebp - 0x10], xmm0
mov eax, dword [eax + 0x3c]
mov dword [ebp - 8], eax
je 0x10004e08
lea eax, [ebp - 0x20]
mov edx, 0x1004ccc8
push eax
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push ecx
lfence
push dword [ebx]
push edi
call fcn.10004770
add esp, 0x18
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.100483f7
mov esp, ebp
pop ebp
ret