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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45041d
mov eax, dword fs:[0]
push eax
sub esp, 0x9e8
mov eax, dword [0x492040]
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, ecx
mov dword [ebp - 0x9dc], edi
mov dword [ebp - 0x9d8], edi
mov dword [ebp - 0x9e4], edi
mov dword [ebp - 0x9e0], 0
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x495d70]
mov dword [ebp - 0x9d8], esi
cmp eax, dword [esi + 4]
jle 0x404876
push 0x495d70
call fcn.0044ed17
add esp, 4
cmp dword [0x495d70], 0xffffffff
jne 0x404876
mov dword [ebp - 4], 1
xorps xmm0, xmm0
mov esi, dword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
movq qword [0x495d78], xmm0
mov dword [0x495d80], 0
call esi
mov dword [ebp - 0x9f4], eax
call esi
mov dword [ebp - 0x9f0], eax
call esi
mov dword [ebp - 0x9ec], eax
call esi
mov dword [ebp - 0x9e8], eax
lea esi, [ebp - 0x9f4]
xor eax, eax
mov dword [0x495d78], 0
xor edx, edx
mov dword [0x495d7c], eax
lea ecx, [ebp - 0x9e4]
mov dword [0x495d80], edx
mov byte [ebp - 4], 2
cmp esi, ecx
je 0x404859
mov edi, ecx
mov ecx, dword [esi]
mov dword [ebp - 0x9d4], ecx
cmp eax, edx
je 0x404832
mov dword [eax], ecx
mov eax, dword [0x495d7c]
add eax, 4
mov dword [0x495d7c], eax
jmp 0x404844
lea ecx, [ebp - 0x9d4]
push ecx
push eax
call fcn.00422a60
mov eax, dword [0x495d7c]
add esi, 4
cmp esi, edi
je 0x404853
mov edx, dword [0x495d80]
jmp 0x404815
mov edi, dword [ebp - 0x9dc]
push 0x452ee0
call fcn.0044efe7
push 0x495d70
call fcn.0044ecc6
mov esi, dword [ebp - 0x9d8]
add esp, 8
mov eax, dword [0x497158]
cmp eax, dword [esi + 4]
jle 0x40494e
push 0x497158
call fcn.0044ed17
add esp, 4
cmp dword [0x497158], 0xffffffff
jne 0x40494e
mov dword [0x497134], 0xffffffff
mov edx, 0x1571
mov dword [0x495db4], 0x1571
mov ecx, 1
nop
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [ecx*4 + 0x495db4], edx
inc ecx
cmp ecx, 0x270
jb 0x4048c0
lea eax, [ebp - 0x10]
mov dword [0x495db0], 0x270
push eax
lea eax, [ebp - 0x9d0]
push eax
call fcn.00420610
xor eax, eax
lea edx, [ebp - 0x9d0]
xor ecx, ecx
mov esi, dword [edx]
mov dword [ecx*4 + 0x495db4], esi
test ecx, ecx
jne 0x40491b
mov eax, esi
inc ecx
shr eax, 0x1f
add edx, 4
jmp 0x404903
inc ecx
or eax, esi
add edx, 4
cmp ecx, 0x270
jb 0x404903
test eax, eax
jne 0x404937
mov dword [0x495db4], 0x80000000
push 0x497158
mov dword [0x495db0], 0x270
call fcn.0044ecc6
add esp, 4
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
mov esi, 0xa
mov dword [ebp - 0x9e0], 1
nop dword [eax]
call fcn.00414d00
xor edx, edx
mov ecx, 0x3e
div ecx
mov ecx, dword [edi + 0x10]
mov al, byte [edx + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]
mov edx, dword [edi + 0x14]
mov byte [ebp - 0x9d4], al
cmp ecx, edx
jae 0x4049d3
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0xf
jbe 0x4049c3
mov eax, dword [edi]
add eax, ecx
mov cl, byte [ebp - 0x9d4]
mov byte [eax + 1], 0
mov byte [eax], cl
jmp 0x4049e7
push dword [ebp - 0x9d4]
push dword [ebp - 0x9e4]
push ecx
mov ecx, edi
call fcn.0041b760
sub esi, 1
jne 0x404990
mov eax, edi
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.0044ec8d
mov esp, ebp
pop ebp
ret