Function at 0x40c020
Capabilities:
Generate random numbers via winapi
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x60cff4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push dword [esi + 0x10]
mov dword [ebp - 0xe8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 8], eax
test eax, eax
je 0x40c13b
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHA1
push eax
call ebx
mov dword [esi + 4], eax
test eax, eax
je 0x40c13b
push str.EncryptAES_ECB
push dword [esi + 8]
call ebx
mov dword [esi + 0xc], eax
test eax, eax
je 0x40c13b
push edi
lea eax, [ebp - 0xa0]
push 0x21
push eax
call fcn.0057783d
add esp, 0xc
mov byte [ebp - 0x80], 0
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x40c0a8
sub edi, ecx
cmp dword [esi + 8], 0
jne 0x40c0e7
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 8], eax
test eax, eax
je 0x40c13b
push str.SHA1
push eax
call ebx
mov dword [esi + 4], eax
test eax, eax
je 0x40c13b
push str.EncryptAES_ECB
push dword [esi + 8]
call ebx
mov dword [esi + 0xc], eax
test eax, eax
je 0x40c13b
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xa0]
push edi
push eax
mov eax, dword [esi + 4]
call eax
add esp, 0xc
lea eax, [ebp - 0xe0]
push 0xf0000000
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40c13b
lea eax, [ebp - 0x7c]
push eax
push 0x14
push dword [ebp - 0xe0]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 0xe0]
test eax, eax
jne 0x40c165
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esi + 8]
test eax, eax
je 0x40c149
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 8], 0
xor ecx, ebp
pop esi
pop ebx
call fcn.0056e21e
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [esi + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jne 0x40c1a3
push dword [esi + 0x10]
call edi
mov dword [esi + 8], eax
test eax, eax
je 0x40c13b
push str.SHA1
push eax
call ebx
mov dword [esi + 4], eax
test eax, eax
je 0x40c13b
push str.EncryptAES_ECB
push dword [esi + 8]
call ebx
mov dword [esi + 0xc], eax
test eax, eax
je 0x40c13b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x7c]
push 0x14
push eax
mov eax, dword [esi + 4]
call eax
mov eax, dword [ebp - 8]
add esp, 0xc
cmp dword [esi + 8], 0
movups xmm0, xmmword [ebp - 0x18]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0xe4]
movups xmmword [ebp - 0x68], xmm0
movups xmm0, xmmword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x1c]
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x30], eax
movups xmm0, xmmword [ebp - 0x2c]
movups xmmword [ebp - 0x40], xmm0
jne 0x40c222
push dword [esi + 0x10]
call edi
mov dword [esi + 8], eax
test eax, eax
je 0x40c13b
push str.SHA1
push eax
call ebx
mov dword [esi + 4], eax
test eax, eax
je 0x40c13b
push str.EncryptAES_ECB
push dword [esi + 8]
call ebx
mov dword [esi + 0xc], eax
test eax, eax
je 0x40c13b
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x68]
push 0x3c
push eax
mov eax, dword [esi + 4]
call eax
mov eax, dword [ebp - 0xe4]
add esp, 0xc
mov ecx, dword [ebp - 0xe8]
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
mov eax, dword [eax + 0x10]
movups xmm0, xmmword [ebp - 0x18]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 8]
movups xmmword [ecx + 0x14], xmm0
mov dword [ecx + 0x24], eax
movups xmm0, xmmword [ebp - 0xdc]
mov eax, dword [ebp - 0xcc]
movups xmmword [ecx + 0x28], xmm0
mov dword [ecx + 0x38], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x40c27f
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x40c14b