Function at 0x408500
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410dc1
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x41800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x1c], esi
mov edi, dword [eax]
mov eax, dword [0x419b50]
cmp eax, dword [edi + 4]
jle 0x4085be
push 0x419b50
call fcn.0040f0c2
add esp, 4
cmp dword [0x419b50], 0xffffffff
jne 0x4085be
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [0x419b34], 0xffffffff
mov edx, 1
mov dword [0x4187b4], eax
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x4187b4], eax
inc edx
cmp edx, 0x270
jb 0x408581
push 0x419b50
mov dword [0x4187b0], 0x270
mov dword [ebp - 4], 0xffffffff
call fcn.0040f078
add esp, 4
mov eax, dword [0x4187a0]
cmp eax, dword [edi + 4]
jle 0x408602
push 0x4187a0
call fcn.0040f0c2
add esp, 4
cmp dword [0x4187a0], 0xffffffff
jne 0x408602
push 0x4187a0
mov dword [0x419b38], 0
mov dword [0x419b3c], 0x3d
call fcn.0040f078
add esp, 4
xorps xmm0, xmm0
mov eax, SysReAllocString
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
mov edx, dword [esi + 0x14]
mov ecx, edx
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x408636
mov edi, SysReAllocString
jmp 0x408643
lea eax, [ecx + edx]
mov edi, 0x1f
cmp eax, edi
cmova edi, eax
xor ecx, ecx
mov eax, edi
add eax, 1
setb cl
neg ecx
or ecx, eax
cmp ecx, 0x1000
jb 0x408684
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x408760
push eax
call fcn.0040ef21
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40867e
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x408695
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
test ecx, ecx
je 0x408693
push ecx
call fcn.0040ef21
add esp, 4
jmp 0x408695
xor eax, eax
mov dword [esi], eax
xorps xmm0, xmm0
mov dword [esi + 0x10], 0x14
mov dword [esi + 0x14], edi
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov byte [eax + 0x14], 0
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x18], esi
jb 0x4086c0
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov edi, 0x14
mov dword [ebp - 0x14], edi
nop dword [eax + eax]
mov eax, dword [0x419b3c]
mov ecx, 0x4187b0
sub eax, dword [0x419b38]
cmp eax, 0xffffffff
jne 0x4086ee
call fcn.0040dac0
mov ecx, eax
jmp 0x408725
lea esi, [eax + 1]
call fcn.0040dac0
mul esi
mov dword [ebp - 0x1c], eax
mov ecx, edx
cmp eax, esi
jae 0x408725
mov eax, esi
xor edx, edx
neg eax
div esi
mov edi, edx
cmp dword [ebp - 0x1c], edi
jae 0x408722
mov ecx, 0x4187b0
call fcn.0040dac0
mul esi
mov ecx, edx
cmp eax, edi
jb 0x408710
mov edi, dword [ebp - 0x14]
mov eax, dword [0x419b38]
dec edi
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edi
mov cl, byte [ecx + eax + str.0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]
mov byte [edx], cl
inc edx
mov dword [ebp - 0x18], edx
test edi, edi
jne 0x4086d0
mov eax, dword [ebp - 0x20]
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.0040ef13
mov esp, ebp
pop ebp
ret
call fcn.00401dd0
int3