Function at 0x418ac0
Capabilities:
Create directory
Generate random numbers via winapi

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0xf4]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418ad4
sub eax, esi
sar eax, 1
cmp eax, 6
jb 0x418da1
add edx, 0xfffffff4
push 6
push str.XXXXXX
lea esi, [edx + eax*2]
push esi
mov dword [esp + 0x1c], esi
call fcn.0044eba3
add esp, 0xc
test eax, eax
jne 0x418da1
push 0xf0000000
push 1
push eax
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x418b44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [edi + 0xf0], eax
call fcn.0041c770
mov dword [edi + 0x48], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov ebx, accept
nop
lea eax, [esp + 0x18]
push eax
push 8
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x418d57
mov esi, dword [esp + 0x18]
push 0
push 0x3e
push dword [esp + 0x24]
push esi
call fcn.0042bfb0
mov ecx, eax
shl ecx, 5
sub ecx, eax
add ecx, ecx
sub esi, ecx
mov ecx, dword [esp + 0x10]
push 0
push 0x3e
movzx eax, word [esi*2 + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov word [ecx], ax
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.0042bfb0
push 0
push 0x3e
mov esi, eax
mov dword [esp + 0x24], edx
push edx
push esi
mov dword [esp + 0x28], esi
call fcn.0042bfb0
mov ecx, eax
shl ecx, 5
sub ecx, eax
add ecx, ecx
sub esi, ecx
mov ecx, dword [esp + 0x10]
push 0
push 0x3e
movzx eax, word [esi*2 + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov word [ecx + 2], ax
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.0042bfb0
push 0
push 0x3e
mov esi, eax
mov dword [esp + 0x24], edx
push edx
push esi
mov dword [esp + 0x28], esi
call fcn.0042bfb0
mov ecx, eax
shl ecx, 5
sub ecx, eax
add ecx, ecx
sub esi, ecx
mov ecx, dword [esp + 0x10]
push 0
push 0x3e
movzx eax, word [esi*2 + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov word [ecx + 4], ax
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.0042bfb0
push 0
push 0x3e
mov esi, eax
mov dword [esp + 0x24], edx
push edx
push esi
mov dword [esp + 0x28], esi
call fcn.0042bfb0
mov ecx, eax
shl ecx, 5
sub ecx, eax
add ecx, ecx
sub esi, ecx
mov ecx, dword [esp + 0x10]
push 0
push 0x3e
movzx eax, word [esi*2 + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov word [ecx + 6], ax
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.0042bfb0
push 0
push 0x3e
mov esi, eax
mov dword [esp + 0x24], edx
push edx
push esi
mov dword [esp + 0x28], esi
call fcn.0042bfb0
mov ecx, eax
shl ecx, 5
sub ecx, eax
add ecx, ecx
sub esi, ecx
mov ecx, dword [esp + 0x10]
push 0
push 0x3e
movzx eax, word [esi*2 + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov word [ecx + 8], ax
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.0042bfb0
push 0
push 0x3e
mov esi, eax
mov dword [esp + 0x24], edx
push edx
push esi
mov dword [esp + 0x28], esi
call fcn.0042bfb0
mov ecx, eax
shl ecx, 5
sub ecx, eax
add ecx, ecx
sub esi, ecx
push 0
push 0x3e
movzx eax, word [esi*2 + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov esi, dword [esp + 0x18]
mov word [esi + 0xa], ax
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.0042bfb0
push dword [edi + 0xf4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call fcn.0044d393
add esp, 4
test eax, eax
je 0x418d2c
call fcn.0044c2cd
cmp dword [eax], 0x11
jne 0x418d16
sub ebx, 1
jne 0x418b50
jmp 0x418d6d
mov dword [edi + 0x48], 0xffffffff
call fcn.0044c2ba
mov ecx, dword [eax]
mov dword [edi + 0xf0], ecx
jmp 0x418d65
mov edx, dword [edi + 0x50]
mov ecx, edx
lea ebp, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418d34
sub ecx, ebp
lea eax, [edx - 6]
push 6
add eax, ecx
push esi
push eax
call fcn.0044eafc
add esp, 0xc
mov dword [edi + 0x48], 0
jmp 0x418d6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xf0], eax
mov ecx, eax
call fcn.0041c770
mov dword [edi + 0x48], eax
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test ebx, ebx
jne 0x418db2
mov dword [edi + 0x48], 0xffffffff
call fcn.0044c2ba
mov ecx, dword [eax]
mov dword [edi + 0xf0], ecx
call fcn.0041c770
mov dword [edi + 0x48], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov dword [edi + 0x48], 0xfffff019
mov dword [edi + 0xf0], 0x57
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret