Function at 0x43f220
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5abb21
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x62c2a0]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push esi
push edi
mov eax, dword [0x62c2a0]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x28]
call fcn.00433f60
lea ecx, [esp + 0x64]
mov dword [esp + 0x118], 0
call fcn.00433f60
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], 0
mov byte [esp + 0xdc], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 1
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 1
lea ecx, [esp + 0xa0]
call fcn.00433f60
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0
mov byte [esp + 0x118], 4
mov ecx, edi
push dword [edi + 0x44]
push esi
call fcn.0043f7a0
push dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push dword [esi + 0x18]
call fcn.00432e90
push 0x17
push 0x5fe3b8
lea ecx, [esp + 0xe4]
call fcn.00402f20
cmp dword [esp + 0x100], 8
mov dword [esp + 0x104], 0x7d0
jae 0x43f368
push 8
lea ecx, [esp + 0xf8]
call fcn.00432ce0
test eax, eax
jne 0x43f368
mov eax, dword [esp + 0xf8]
jmp 0x43f374
mov eax, 8
mov dword [esp + 0xf8], eax
push dword [esp + 0xf4]
push eax
push dword [edi + 0x80]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
lea eax, [esp + 0xdc]
mov ecx, edi
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00442310
push str._SEQUENCE__SEQUENCE__OBJECT_IDENTIFIER_1.2.840.113549.1.12.10.1.2__OBJECT_IDENTIFIER__TAG_0_CLASS_2___SEQUENCE__SEQUENCE__OBJECT_IDENTIFIER_1.2.840.113549.1.12.1.3__OBJECT_IDENTIFIER__SEQUENCE__OCTET_STRING____INTEGER_____SEQUENCE___SEQUENCE__OCTET_STRING_____SEQUENCE___TAG_0___SEQUENCE___SEQUENCE_
lea ecx, [esp + 0x2c]
call fcn.004342e0
push 0
push str.0._0_.0.0.0
lea ecx, [esp + 0x30]
call fcn.00434cd0
test eax, eax
je 0x43f3e6
cmp dword [esp + 0xf0], 0x10
lea ecx, [esp + 0xdc]
push 0
cmovae ecx, dword [esp + 0xe0]
push dword [esp + 0xf0]
push ecx
mov ecx, eax
call fcn.00435ff0
push dword [esp + 0xf8]
lea ecx, [esp + 0x2c]
push dword [esp + 0xf8]
push 0
push str.0._0_.0.0.1.0
call fcn.00434cd0
mov ecx, eax
call fcn.00434b00
push 0
push str.0._0_.0.0.1.1
lea ecx, [esp + 0x30]
call fcn.00434cd0
test eax, eax
je 0x43f42f
push 0
push 6
push str.0x07D0
mov ecx, eax
call fcn.00435ff0
push dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push dword [esp + 0x18]
push 0
push str.0._0_.0.1
call fcn.00434cd0
mov ecx, eax
call fcn.00434b00
push str._SET___SET_
mov ecx, esi
call fcn.004342e0
cmp dword [edi + 0x3c], 0x20
jne 0x43f484
push str._SEQUENCE__OBJECT_IDENTIFIER_1.3.6.1.4.1.311.17.2__OBJECT_IDENTIFIER__SET_____SEQUENCE_
lea ecx, [esp + 0x68]
call fcn.004342e0
lea ecx, [esp + 0x64]
call fcn.00434590
test eax, eax
je 0x43f484
push ecx
push eax
mov ecx, esi
call fcn.00434500
push str._SEQUENCE__OBJECT_IDENTIFIER_1.2.840.113549.1.9.21__OBJECT_IDENTIFIER__SET__OCTET_STRING_0x01000000__OCTET_STRING___SET___SEQUENCE_
lea ecx, [esp + 0x68]
call fcn.004342e0
lea ecx, [esp + 0x64]
call fcn.00434590
test eax, eax
je 0x43f4a8
push ecx
push eax
mov ecx, esi
call fcn.00434500
mov eax, dword [edi + 0x30]
mov ebx, 0x5ef390
test eax, eax
je 0x43f542
cmp dword [eax - 0xc], 0
je 0x43f542
push str._SEQUENCE__OBJECT_IDENTIFIER_1.2.840.113549.1.9.20__OBJECT_IDENTIFIER__SET__BMP_STRING_____SET___SEQUENCE_
lea ecx, [esp + 0x68]
call fcn.004342e0
mov eax, dword [edi + 0x30]
mov ecx, ebx
test eax, eax
push 0
cmovne ecx, eax
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x68]
push 0x5f4250
call fcn.00434cd0
mov dword [esp + 0x24], eax
test eax, eax
je 0x43f52c
mov edx, dword [esp + 0x10]
test edx, edx
je 0x43f51c
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x10], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43f507
sub ecx, dword [esp + 0x10]
push 0
push ecx
mov ecx, dword [esp + 0x2c]
push edx
jmp 0x43f527
push 0
push 0
push 0x5ef390
mov ecx, eax
call fcn.00435ff0
lea ecx, [esp + 0x64]
call fcn.00434590
test eax, eax
je 0x43f542
push ecx
push eax
mov ecx, esi
call fcn.00434500
mov eax, dword [edi + 0x34]
test eax, eax
je 0x43f5b9
cmp dword [eax - 0xc], 0
je 0x43f5b9
push str._SEQUENCE__OBJECT_IDENTIFIER_1.3.6.1.4.1.311.17.1__OBJECT_IDENTIFIER__SET__BMP_STRING_____SET___SEQUENCE_
lea ecx, [esp + 0x68]
call fcn.004342e0
mov eax, dword [edi + 0x34]
lea ecx, [esp + 0x64]
test eax, eax
push 0
push 0x5f4250
cmovne ebx, eax
call fcn.00434cd0
mov edx, eax
test edx, edx
je 0x43f5a3
test ebx, ebx
je 0x43f593
mov ecx, ebx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43f584
push 0
sub ecx, edi
push ecx
push ebx
jmp 0x43f59c
push 0
push 0
push 0x5ef390
mov ecx, edx
call fcn.00435ff0
lea ecx, [esp + 0x64]
call fcn.00434590
test eax, eax
je 0x43f5b9
push ecx
push eax
mov ecx, esi
call fcn.00434500
push 0
push 0x5f4214
lea ecx, [esp + 0x30]
call fcn.00434cd0
mov edi, eax
test edi, edi
je 0x43f5e3
mov ecx, esi
call fcn.00434590
test eax, eax
je 0x43f5e3
push ecx
push eax
mov ecx, edi
call fcn.00434500
push str._SEQUENCE__OBJECT_IDENTIFIER_1.2.840.113549.1.7.1__OBJECT_IDENTIFIER__TAG_0_CLASS_2___OCTET_STRING_____TAG_0___SEQUENCE_
mov ecx, esi
call fcn.004342e0
cmp dword [esp + 0x34], 0
je 0x43f62b
lea ecx, [esp + 0x28]
call fcn.004374a0
mov edi, eax
push edi
call fcn.0046424b
add esp, 4
test eax, eax
jne 0x43f618
mov dword [esp + 0x2c], 3
jmp 0x43f62b
push edi
push eax
lea ecx, [esp + 0x30]
call fcn.00437550
mov dword [esp + 0x5c], 1
push dword [esp + 0x44]
mov ecx, esi
push dword [esp + 0x44]
push 0
push 0x5f4204
call fcn.00434cd0
mov ecx, eax
call fcn.00434b00
cmp dword [esi + 0xc], 0
je 0x43f67d
mov ecx, esi
call fcn.004374a0
mov edi, eax
push edi
call fcn.0046424b
add esp, 4
test eax, eax
jne 0x43f66d
mov dword [esi + 4], 3
jmp 0x43f67d
push edi
push eax
mov ecx, esi
call fcn.00437550
mov dword [esi + 0x34], 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x43f6ae
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x43f69d
lea ecx, [ecx]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x43f690
mov eax, dword [esp + 0x14]
push eax
call fcn.00582cf0
add esp, 4
mov dword [esp + 0x14], 0
mov byte [esp + 0x118], 2
lea ecx, [esp + 0xa0]
mov dword [esp + 0xa0], vtable.DASN1.0
call fcn.00434010
mov eax, dword [esp + 0xf4]
test eax, eax
je 0x43f707
mov ecx, dword [esp + 0x100]
test ecx, ecx
je 0x43f6f3
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x43f6e3
mov eax, dword [esp + 0xf4]
push eax
call fcn.00582cf0
add esp, 4
mov dword [esp + 0xf4], 0
cmp dword [esp + 0xf0], 0x10
jb 0x43f720
push dword [esp + 0xdc]
call fcn.00464246
add esp, 4
mov byte [esp + 0x118], 0
lea ecx, [esp + 0x64]
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], 0
mov byte [esp + 0xdc], 0
mov dword [esp + 0x64], vtable.DASN1.0
call fcn.00434010
mov dword [esp + 0x118], 0xffffffff
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], vtable.DASN1.0
call fcn.00434010
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.00581fc1
mov esp, ebp
pop ebp
ret 4