Function at 0x401000
Capabilities:
Generate random numbers via rtlgenrandom
Set console window title
Terminate process

Disassembly:
sub esp, 0x2040
push ebp
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push str.HELLO
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 1
push 0
push 1
push 0xc0000000
push str.CONIN_
call esi
push 0
push 0
push 1
push 0
push 2
push 0xc0000000
push str.CONOUT_
mov edi, eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov ebx, eax
push edi
push 0xfffffffffffffff6
mov dword [esp + 0x38], ebx
call esi
push ebx
push 0xfffffffffffffff5
call esi
push ebx
push 0xfffffffffffffff4
call esi
lea eax, [esp + 0x38]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movsx eax, word [esp + 0x42]
xor esi, esi
movsx ebx, word [esp + 0x46]
sub ebx, eax
mov dword [esp + 0x18], 1
push 0x10
lea eax, [esp + 0x20]
dec ebx
push eax
mov dword [esp + 0x3c], ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x4010ac
pop edi
pop esi
pop ebx
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, 0xa
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov word [esp + 0x50], cx
mov dword [esp + 0x14], 1
cmp esi, 1
jbe 0x40113e
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
jmp 0x4010e4
mov eax, dword [esp + 0x10]
lea edi, [eax + ebp]
xor ebx, eax
mov eax, edx
mov ecx, edx
xor eax, ebp
shl ecx, 9
xor dword [esp + 0x10], eax
mov ebp, eax
xor edx, ebx
rol ebp, 0xb
mov dword [esp + 0x2c], edx
mov eax, 0x58ed2309
mul edi
mov eax, edi
xor ebx, ecx
mov ecx, dword [esp + 0x14]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [esp + 0x2c]
shr eax, 6
imul eax, eax, 0x5f
sub edi, eax
mov ax, word [edi*2 + str.________._0123456789:_____ABCDEFGHIJKLMNOPQRSTUVWXYZ____abcdefghijklmnopqrstuvwxyz]
mov word [esp + ecx*2 + 0x50], ax
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, esi
jb 0x4010e0
mov ecx, dword [esp + 0x10]
jmp 0x401146
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
lea edi, [ecx + ebp]
xor ebx, ecx
mov eax, edx
mov ecx, edx
shl eax, 9
xor edx, ebx
xor ebx, eax
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x10]
xor ecx, ebp
xor edx, ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], edx
mov eax, 0x58ed2309
mul edi
mov eax, edi
rol ecx, 0xb
sub eax, edx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x14]
shr eax, 1
add eax, edx
shr eax, 6
imul eax, eax, 0x5f
sub edi, eax
mov ax, word [edi*2 + str.________._0123456789:_____ABCDEFGHIJKLMNOPQRSTUVWXYZ____abcdefghijklmnopqrstuvwxyz]
mov word [esp + ecx*2 + 0x50], ax
xor eax, eax
push eax
push eax
mov word [esp + ecx*2 + 0x5c], ax
lea eax, [ecx + 2]
push eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x18], 0
mov ecx, 0xa
je 0x4011e7
cmp esi, dword [esp + 0x34]
jae 0x4011d5
inc esi
jmp 0x4010b1
jne 0x4010b1
xor eax, eax
dec esi
mov dword [esp + 0x18], eax
jmp 0x4010b1
test esi, esi
je 0x4011f1
dec esi
jmp 0x4010b1
mov dword [esp + 0x18], 1
inc esi
jmp 0x4010b1