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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x350
mov edi, edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x10], ecx
movsd xmm1, qword [edx + 0x20]
movsd xmm2, qword [edx + 0x18]
mov eax, dword [edx + 0x30]
movsd xmm0, qword [edx + 0x28]
movsd qword [esp + 0x38], xmm1
movsd qword [esp + 0x30], xmm2
movsd xmm1, qword [edx + 0x10]
movsd xmm2, qword [edx]
mov dword [esp + 0x48], eax
movsd qword [esp + 0x40], xmm0
movsd qword [esp + 0x28], xmm1
movsd xmm1, qword [edx + 8]
movsd qword [esp + 0x18], xmm2
mov eax, dword [esp + 0x18]
movsd qword [esp + 0x20], xmm1
mov edx, dword [eax + 0x10]
cmp edx, 0x31
jae 0x43ca0b
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
cmp esi, 0xc
ja 0x43ca0b
lea ecx, [esi*4]
cmp ecx, edx
jne 0x43ca0b
xorps xmm0, xmm0
lea ecx, [esp + 0x1c]
add eax, 0x70
lea ebx, [esp + 0x220]
movaps xmmword [esp + 0x240], xmm0
movaps xmmword [esp + 0x230], xmm0
movaps xmmword [esp + 0x220], xmm0
push esi
push ebx
push esi
push eax
call fcn.00435420
add esp, 0x10
test al, al
jne 0x43ca0b
movaps xmm0, xmmword [esp + 0x240]
movaps xmm2, xmmword [esp + 0x220]
movaps xmm1, xmmword [esp + 0x230]
mov eax, dword [edi + 4]
lea edx, [esp + 0x1f0]
movaps xmmword [esp + 0x1f0], xmm2
movaps xmmword [esp + 0x210], xmm0
movaps xmmword [esp + 0x200], xmm1
xorps xmm2, xmm2
mov ecx, dword [eax]
add eax, 8
mov ecx, dword [ecx + 4]
movaps xmmword [esp + 0x240], xmm2
movaps xmmword [esp + 0x230], xmm2
movaps xmmword [esp + 0x220], xmm2
push eax
push edx
lea eax, [esp + 0x228]
push eax
call ecx
add esp, 0xc
movaps xmm2, xmmword [esp + 0x220]
movaps xmm0, xmmword [esp + 0x240]
movaps xmm1, xmmword [esp + 0x230]
mov eax, dword [edi]
mov dword [esp + 0x14], edi
mov edi, dword [edi + 0xc]
movaps xmmword [esp + 0x50], xmm2
xorps xmm2, xmm2
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm1
movaps xmmword [esp + 0x1e0], xmm2
movaps xmmword [esp + 0x1d0], xmm2
movaps xmmword [esp + 0x1c0], xmm2
movaps xmmword [esp + 0x1b0], xmm2
mov esi, dword [eax + 0x10]
cmp esi, 0x40
ja 0x43ca0b
test esi, esi
je 0x43c78a
lea ebx, [esp + 0x1b0]
push 2
push esi
push ebx
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x43c78a
push esi
push ebx
call dword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x43c9e9
movsd xmm0, qword [edi + 0x38]
lea edx, [esp + 0x1b0]
movsd qword [esp + 0x188], xmm0
movsd xmm0, qword [edi + 0x30]
movsd qword [esp + 0x180], xmm0
movsd xmm0, qword [edi + 0x28]
movsd qword [esp + 0x178], xmm0
movsd xmm0, qword [edi + 0x20]
movsd qword [esp + 0x170], xmm0
movsd xmm0, qword [edi + 0x18]
movsd qword [esp + 0x168], xmm0
movsd xmm0, qword [edi + 0x10]
movsd qword [esp + 0x160], xmm0
movsd xmm0, qword [edi]
movsd xmm1, qword [edi + 8]
movsd qword [esp + 0x150], xmm0
xorps xmm0, xmm0
movsd qword [esp + 0x158], xmm1
movaps xmmword [esp + 0xd0], xmm0
movaps xmmword [esp + 0xe0], xmm0
movaps xmmword [esp + 0xf0], xmm0
movaps xmmword [esp + 0x100], xmm0
movaps xmmword [esp + 0x110], xmm0
movaps xmmword [esp + 0x120], xmm0
movaps xmmword [esp + 0x130], xmm0
movaps xmmword [esp + 0x140], xmm0
mov dword [esp + 0x194], 0
mov dword [esp + 0x190], 0
mov dword [esp + 0x198], edi
lea edi, [esp + 0xd0]
mov dword [esp + 0x1a0], 0
mov ecx, edi
push esi
call fcn.00439b00
add esp, 4
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x10]
cmp eax, 0x31
jae 0x43ca0b
lea esi, [esp + 0x150]
mov ecx, edi
lea edx, [esp + 0x1c]
push eax
call fcn.00439b00
add esp, 4
push 0xd8
push edi
lea ebx, [esp + 0x228]
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x2e8]
lea edi, [esp + 0x2f8]
mov ecx, 0x14
mov eax, dword [eax + 0x50]
rep movsd dword es:[edi], dword [esi]
cmp eax, 0x81
jae 0x43ca0b
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x2f8]
push dword [esp + 0x2f0]
push eax
push ebx
call fcn.00439d00
add esp, 0xc
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
test eax, eax
je 0x43c9f3
mov ebx, dword [esp + 0x10]
movsd xmm0, qword [esp + 0xc8]
mov esi, dword [ebp + 8]
movsd xmm1, qword [esp + 0xa0]
mov dword [esp + 0xc], ecx
mov ecx, 0x1a
movsd qword [ebx + 0x3c], xmm0
movsd xmm0, qword [esp + 0xc0]
add esi, 0x34
movsd qword [ebx + 0x14], xmm1
lea edi, [ebx + 0x78]
movsd qword [ebx + 0x34], xmm0
movsd xmm0, qword [esp + 0xb8]
movsd qword [ebx + 0x2c], xmm0
movsd xmm0, qword [esp + 0xb0]
movsd qword [ebx + 0x24], xmm0
movsd xmm0, qword [esp + 0xa8]
movsd qword [ebx + 0x1c], xmm0
movsd xmm0, qword [esp + 0x98]
movsd qword [ebx + 0xc], xmm0
rep movsd dword es:[edi], dword [esi]
movsd xmm1, qword [esp + 0x70]
movsd xmm2, qword [esp + 0x68]
movsd xmm0, qword [esp + 0x78]
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
movsd qword [ebx + 0x68], xmm1
movsd xmm1, qword [esp + 0x60]
movsd qword [ebx + 0x60], xmm2
movsd xmm2, qword [esp + 0x50]
movsd qword [ebx + 0x70], xmm0
movsd qword [ebx + 0x58], xmm1
movsd xmm1, qword [esp + 0x58]
movsd qword [ebx + 0x48], xmm2
movsd qword [ebx + 0x50], xmm1
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], edx
mov dword [ebx + 0x44], ecx
jmp 0x43ca03
mov ecx, str.RNG_failed0
mov edx, 0xa
mov eax, dword [esp + 0x10]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
ud2