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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c0cf
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4720bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x473efc]
mov edi, dword [eax + ecx*4]
mov eax, dword [0x4739b8]
mov dword [ebp - 0x20], edi
cmp eax, dword [edi + 0x139c]
jg 0x410686
mov eax, dword [edi + 0x1390]
test al, 1
jne 0x4104f5
or eax, 1
mov dword [edi + 0x1390], eax
mov dword [ebp - 4], 1
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov ecx, eax
mov dword [edi + 0x138c], 0xffffffff
mov dword [edi + 0xc], ecx
lea esi, [edi + 0x10]
mov edx, 1
mov eax, ecx
lea esi, [esi + 4]
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
inc edx
mov dword [esi - 4], ecx
cmp edx, 0x270
jb 0x4104c6
mov dword [edi + 8], 0x270
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 0x1390]
test al, 2
jne 0x41051e
or eax, 2
mov dword [edi + 0x1394], 0
mov dword [edi + 0x1390], eax
mov eax, dword [0x47208c]
dec eax
mov dword [edi + 0x1398], eax
mov eax, dword [ebp + 0xc]
mov ecx, 0x20
mov esi, dword [ebp + 8]
test eax, eax
push 0
cmovne ecx, eax
push ecx
mov ecx, esi
call fcn.004023d0
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x410549
mov eax, dword [esi]
mov ecx, eax
mov dword [ebp - 0x14], eax
jmp 0x41054e
mov dword [ebp - 0x14], esi
mov ecx, esi
mov edx, dword [esi + 0x10]
add edx, ecx
mov dword [ebp - 0x1c], edx
cmp eax, edx
je 0x410671
lea eax, [edi + 8]
mov dword [ebp - 0x2c], 0x20
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 0xffffffff
mov eax, dword [edi + 0x1394]
cmp eax, 0x80000000
mov edx, dword [edi + 0x1398]
lea ecx, [eax - 0x80000000]
lea esi, [eax - 0x80000000]
cmovae esi, ecx
lea eax, [edx - 0x80000000]
cmp edx, 0x80000000
mov dword [ebp - 0x18], esi
lea edi, [edx - 0x80000000]
cmovae edi, eax
sub edi, esi
cmp edi, 0xffffffff
jne 0x4105c0
lea ecx, [ebp - 0x30]
call fcn.00402850
mov edx, eax
jmp 0x410619
lea eax, [edi + 1]
mov dword [ebp + 0xc], eax
mov ecx, eax
nop dword [eax + eax]
xor esi, esi
mov dword [ebp - 0x10], 0
test edi, edi
je 0x4105ee
mov ecx, dword [ebp - 0x30]
call fcn.004026c0
mov ecx, dword [ebp + 0xc]
or esi, 0xffffffff
mov dword [ebp - 0x10], eax
xor edx, edx
mov eax, esi
div ecx
xor edx, edx
mov ecx, eax
mov eax, dword [ebp - 0x10]
div dword [ebp + 0xc]
cmp eax, ecx
mov ecx, dword [ebp + 0xc]
jb 0x41060f
xor edx, edx
mov eax, esi
div ecx
cmp edx, edi
jne 0x4105d0
mov eax, dword [ebp - 0x10]
xor edx, edx
mov esi, dword [ebp - 0x18]
div ecx
mov edi, dword [ebp - 0x20]
lea eax, [esi + edx]
cmp eax, 0x80000000
lea ecx, [eax - 0x80000000]
lea edx, [eax - 0x80000000]
mov eax, dword [ebp - 0x14]
cmovae edx, ecx
cmp dword [0x472090], 0x10
mov ecx, 0x47207c
cmovae ecx, dword [0x47207c]
mov cl, byte [edx + ecx]
mov byte [eax], cl
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x1c]
jne 0x410575
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x4739b8
call fcn.0045a02a
add esp, 4
cmp dword [0x4739b8], 0xffffffff
jne 0x41048a
push 0x30
mov ecx, 0x47207c
mov dword [ebp - 4], 0
call fcn.004018e0
movups xmm0, xmmword [str.ABCDFGHJKLMNPQRSTVWXZabcdfghjklmnpqrstvwxz]
mov ecx, eax
mov dword [0x47208c], 0x2a
mov dword [0x47207c], ecx
mov dword [0x472090], 0x2f
push 0x45c1f0
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x45d620]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [0x45d630]
movq qword [ecx + 0x20], xmm0
mov ax, word [0x45d638]
mov word [ecx + 0x28], ax
mov byte [ecx + 0x2a], 0
call fcn.00459ce5
push 0x4739b8
mov dword [ebp - 4], 0xffffffff
call fcn.00459fe0
add esp, 8
jmp 0x41048a