Function at 0x40ee70
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c291
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4243cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20]
mov esi, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x60], edi
push 0x10
mov dword [ebp - 0x54], 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x5c], edi
movups xmmword [ebp - 0x20], xmm0
call sub.ADVAPI32.dll_SystemFunction036
push esi
mov ecx, edi
call fcn.0040ac70
push 1
push 0x41d860
mov ecx, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x54], 1
call fcn.0040aef0
xor eax, eax
mov dword [ebp - 0x28], 0
push eax
push 0x41d6c4
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
call fcn.00409e20
mov esi, dword [ebp - 0x24]
xor eax, eax
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x38]
mov dword [ebp - 4], 1
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x58], 0x1a
nop dword [eax + eax]
movzx eax, byte [ebp + eax - 0x20]
xor edx, edx
div dword [ebp - 0x58]
add dl, 0x41
movsx ax, dl
movzx edx, ax
mov dword [ebp - 0x48], edx
cmp ecx, esi
jae 0x40ef73
lea eax, [ecx + 1]
cmp esi, 8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x38]
cmovae eax, edi
mov word [eax + ecx*2], dx
xor edx, edx
mov word [eax + ecx*2 + 2], dx
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x38]
jmp 0x40f073
mov eax, 0x7ffffffe
mov dword [ebp - 0x3c], ecx
sub eax, ecx
cmp eax, 1
jb 0x40f0fc
lea eax, [ecx + 1]
mov edx, esi
mov esi, eax
mov dword [ebp - 0x40], eax
or esi, 7
mov dword [ebp - 0x44], edx
cmp esi, 0x7ffffffe
jbe 0x40efa5
mov esi, 0x7ffffffe
jmp 0x40efc3
mov ecx, edx
mov eax, 0x7ffffffe
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x40efbb
mov esi, 0x7ffffffe
jmp 0x40efc3
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
xor ecx, ecx
mov eax, esi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.00409dc0
cmp dword [ebp - 0x44], 8
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x24], esi
lea edx, [ecx + ecx]
lea ecx, [edx + eax]
mov dword [ebp - 0x3c], ecx
push edx
jb 0x40f04e
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x3c]
add esp, 0xc
mov ecx, dword [ebp - 0x48]
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
mov eax, dword [ebp - 0x44]
lea ecx, [eax*2 + 2]
mov eax, edi
mov byte [ebp - 4], 2
cmp ecx, 0x1000
jb 0x40f03e
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f0cf
push ecx
push edi
call fcn.0041a1df
add esp, 8
mov byte [ebp - 4], 1
jmp 0x40f06a
lea ecx, [ebp - 0x38]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x3c]
add esp, 0xc
mov ecx, dword [ebp - 0x48]
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
mov edi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp eax, 0x10
jl 0x40ef30
cmp esi, 8
lea eax, [ebp - 0x38]
mov esi, dword [ebp - 0x5c]
push ecx
cmovae eax, edi
mov ecx, esi
push eax
call fcn.0040aef0
mov edx, dword [ebp - 0x24]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x40f0df
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
mov dword [ebp - 4], 3
cmp edx, 0x1000
jb 0x40f0d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40f0d5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041a1df
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041a150
mov esp, ebp
pop ebp
ret
call fcn.00409d40
int3