Function at 0x275a0d00
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x275b61e8
push 0x27580ac0
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x275ba2ec]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x90], eax
xor edi, edi
mov dword [ebp - 0x84], edi
xor ebx, ebx
mov dword [ebp - 0x88], edi
mov eax, 1
mov dword [ebp - 0x7c], edi
mov dword [ebp - 4], edi
lea ebx, [ebx]
mov dword [ebp - 0x78], 0x58
push eax
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x74]
push edx
push 0x16
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_CryptGetProvParam]
test eax, eax
je 0x275a0d9a
xor eax, eax
mov ecx, dword [ebp - 0x74]
cmp ecx, dword [ebp + 0x18]
jne 0x275a0d96
mov dword [ebp - 0x9c], 1
jmp 0x275a0da2
test ebx, ebx
je 0x275a0d60
test ebx, ebx
je 0x275a0f15
lea edx, [ebp - 0x7c]
push edx
push 0
mov eax, dword [ebp + 0x18]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x275a0f15
mov dword [ebp - 0x78], 4
push 0
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x8c]
push edx
push 9
mov eax, dword [ebp - 0x7c]
push eax
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
call ebx
test eax, eax
je 0x275a0f15
mov ecx, dword [ebp - 0x7c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [ebp - 0x7c], 0
mov esi, dword [ebp + 0x14]
lea edx, [esi*8]
cmp edx, dword [ebp - 0x8c]
ja 0x275a0f15
mov dword [ebp - 0x78], 4
push 0
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x98]
push ecx
push 7
mov edx, dword [ebp + 0xc]
push edx
call ebx
test eax, eax
je 0x275a0f15
mov dword [ebp - 0x78], 4
push 0
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x94]
push ecx
push 9
mov edx, dword [ebp + 0xc]
push edx
call ebx
test eax, eax
je 0x275a0f15
mov ebx, dword [ebp - 0x94]
shr ebx, 3
add ebx, 0xc
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x88], edi
test edi, edi
je 0x275a0f15
mov byte [edi], 1
mov byte [edi + 1], 2
xor eax, eax
mov word [edi + 2], ax
mov ecx, dword [ebp + 0x18]
mov dword [edi + 4], ecx
lea ecx, [edi + 8]
mov edx, dword [ebp - 0x98]
mov dword [ecx], edx
add ecx, 4
mov dword [ebp - 0x80], eax
cmp eax, esi
jae 0x275a0eb2
mov edx, dword [ebp + 0x10]
sub edx, eax
mov dl, byte [edx + esi - 1]
mov byte [eax + ecx], dl
add eax, 1
jmp 0x275a0e9a
mov eax, ebx
sub eax, esi
sub eax, 0xf
mov dword [ebp - 0x78], eax
lea esi, [ecx + esi + 1]
push esi
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x275a0f15
xor eax, eax
mov dword [ebp - 0x80], eax
cmp eax, dword [ebp - 0x78]
jae 0x275a0ee9
cmp byte [eax + esi], 0
jne 0x275a0ee4
mov byte [eax + esi], 1
add eax, 1
jmp 0x275a0ed2
mov byte [ebx + edi - 2], 2
mov ecx, dword [ebp - 0x90]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
push ebx
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x275a0f15
mov dword [ebp - 0x84], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.275a0f4b
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.2757f388
mov esp, ebp
pop ebp
ret 0x18