Function at 0x410a30
Capabilities:
Encrypt data using des via winapi
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x443ed8
push 0x427ac0
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x448050]
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 esi, ecx
mov dword [ebp - 0xa0], esi
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x94], eax
mov ebx, 0x6603
xor edi, edi
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], edi
mov eax, 1
mov dword [ebp - 0x80], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x7c], 0x58
push eax
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x78]
push edx
push 0x16
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetProvParam]
test eax, eax
je 0x410acc
xor eax, eax
cmp dword [ebp - 0x78], ebx
jne 0x410ac8
mov dword [ebp - 0xa4], 1
jmp 0x410ad4
xor ecx, ecx
je 0x410a95
xor eax, eax
je 0x410c45
lea ecx, [ebp - 0x80]
push ecx
push 0
push ebx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x410c45
mov dword [ebp - 0x7c], 4
push 0
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x90]
push ecx
push 9
mov edx, dword [ebp - 0x80]
push edx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
call ebx
test eax, eax
je 0x410c45
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [ebp - 0x80], 0
lea ecx, [esi*8]
cmp ecx, dword [ebp - 0x90]
ja 0x410c45
mov dword [ebp - 0x7c], 4
push 0
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x98]
push eax
push 7
mov ecx, dword [ebp + 0xc]
push ecx
call ebx
test eax, eax
je 0x410c45
mov dword [ebp - 0x7c], 4
push 0
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x9c]
push eax
push 9
mov ecx, dword [ebp + 0xc]
push ecx
call ebx
test eax, eax
je 0x410c45
mov ebx, dword [ebp - 0x9c]
shr ebx, 3
add ebx, 0xc
push ebx
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x8c], edi
test edi, edi
je 0x410c45
mov dword [edi], 0x201
mov eax, 0x6603
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x98]
mov dword [edi + 8], eax
xor eax, eax
mov dword [ebp - 0x84], eax
cmp eax, esi
jae 0x410be1
sub esi, eax
mov edx, dword [ebp + 0x10]
mov dl, byte [esi + edx - 1]
mov byte [eax + edi + 0xc], dl
inc eax
mov esi, dword [ebp - 0xa0]
jmp 0x410bc1
mov eax, ebx
sub eax, esi
sub eax, 0xf
mov dword [ebp - 0x7c], eax
lea esi, [edi + esi + 0xd]
push esi
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x410c45
xor eax, eax
mov dword [ebp - 0x84], eax
cmp eax, dword [ebp - 0x7c]
jae 0x410c19
cmp byte [eax + esi], 0
jne 0x410c16
mov byte [eax + esi], 1
inc eax
jmp 0x410c01
mov byte [ebx + edi - 2], 2
mov ecx, dword [ebp - 0x94]
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 0x410c45
mov dword [ebp - 0x88], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.00410c79
mov eax, dword [ebp - 0x88]
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.00424761
mov esp, ebp
pop ebp
ret