Function at 0x423ff0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x5a5784]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xc
call fcn.005260c2
add esp, 4
mov dword [ebp - 0xd0], eax
test eax, eax
je 0x42402c
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
push eax
mov dword [eax + 8], ecx
call fcn.00425850
add esp, 4
jmp 0x42403e
push str._error__CBrCrypt_Init_fail__n
push 0x20000
call fcn.0041abf0
add esp, 8
cmp dword [ebx + 0x14], 0x10
push esi
push edi
jb 0x42404a
mov esi, dword [ebx]
jmp 0x42404c
mov esi, ebx
cmp byte [ebp + 8], 0
mov ecx, 8
lea edi, [ebp - 0xc8]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
je 0x424070
push 0x21
lea edi, [ebp - 0xc8]
call fcn.00423130
add esp, 4
mov edi, dword [ebp - 0xd0]
test byte [edi + 4], 1
mov eax, dword [ebx + 0x10]
jne 0x4240b0
push 0xffffffffffffff9b
push str._error__SHA1_fail_return__d_n
push 0x80000
call fcn.0041abf0
add esp, 0xc
push edi
call fcn.00525d70
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052442d
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x18]
push ecx
push eax
lea edx, [ebp - 0xc8]
push edx
call fcn.00425870
add esp, 0xc
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x424106
mov edx, dword [ebp - 0xcc]
lea ecx, [ebp - 0x68]
push ecx
push 0x14
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
test eax, eax
jne 0x424123
mov eax, dword [ebp - 0xcc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push edi
call fcn.00525d70
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052442d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xcc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x14
lea edx, [ebp - 0x68]
push edx
lea eax, [ebx + 0x4c]
lea ecx, [ebp - 0xd8]
call fcn.0041b7c0
test eax, eax
jne 0x424106
mov eax, dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x54]
mov dword [ebp - 0x54], eax
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebx + 0x5c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x4c], edx
mov edx, dword [ebx + 0x38]
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebx + 0x40]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0x40], edx
mov edx, dword [ebx + 0x44]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
push 0x3c
lea eax, [ebp - 0x54]
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x20], ecx
push eax
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x1c], edx
call fcn.0041b7c0
test eax, eax
je 0x4241dc
lea esi, [ebp - 0xd8]
call fcn.0041b7a0
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052442d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x60], ecx
mov ecx, dword [ebx + 0x44]
mov dword [ebx + 0x64], edx
mov edx, dword [ebx + 0x48]
mov dword [ebx + 0x68], eax
mov eax, dword [ebx + 0x4c]
mov dword [ebx + 0x74], eax
mov eax, dword [ebx + 0x58]
mov dword [ebx + 0x6c], ecx
mov ecx, dword [ebx + 0x50]
mov dword [ebx + 0x70], edx
mov edx, dword [ebx + 0x54]
mov dword [ebx + 0x78], ecx
mov ecx, dword [ebx + 0x5c]
mov dword [ebx + 0x7c], edx
mov edx, dword [ebp - 0xa4]
mov dword [ebx + 0x80], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebx + 0x88], edx
mov edx, dword [ebp - 0x98]
mov dword [ebx + 0x8c], eax
mov eax, dword [ebp - 0x94]
mov dword [ebx + 0x84], ecx
mov ecx, dword [ebp - 0x9c]
mov dword [ebx + 0x90], ecx
mov dword [ebx + 0x94], edx
lea esi, [ebp - 0xd8]
mov dword [ebx + 0x98], eax
call fcn.0041b7a0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0052442d
mov esp, ebp
pop ebp
ret 4