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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bbdf
mov eax, dword fs:[0]
push eax
mov eax, 0x13cc
call fcn.0045b090
mov eax, dword [0x478080]
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 - 0x13d0], edi
mov dword [ebp - 0x13c4], edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x13d8], edi
xorps xmm0, xmm0
mov dword [ebp - 0x13bc], 0
push 0x34
push str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.004073d0
mov dword [ebp - 4], 1
call fcn.0040f580
mov dword [ebp - 0x34], 0xffffffff
mov edx, 1
mov dword [ebp - 0x13b4], eax
nop
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [ebp + edx*4 - 0x13b4], eax
inc edx
cmp edx, 0x270
jb 0x4033e0
mov esi, dword [ebp - 0x1c]
sub esi, 1
mov dword [ebp - 0x13b8], 0x270
jns 0x403455
push str.invalid_min_and_max_arguments_for_uniform_int
push 0x472c24
push 0
push 0x845
push 0x472ed0
push 2
call fcn.00417980
add esp, 0x18
cmp eax, 1
jne 0x403437
int3
push 0
push 0x845
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.40.33807include_random
push 0x472d54
push str._invalid_min_and_max_arguments_for_uniform_int_
call fcn.00418230
add esp, 0x14
mov byte [ebp - 4], 2
xorps xmm0, xmm0
mov dword [edi], 0
movups xmmword [edi + 4], xmm0
push 8
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.00411450
mov byte [ebp - 4], 1
mov dword [eax + 4], 0
mov dword [edi], eax
mov dword [eax], edi
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
or dword [ebp - 0x13bc], 1
mov ecx, edi
call fcn.004047b0
xor esi, 0x80000000
mov dword [ebp - 0x13c0], 0xe
mov dword [ebp - 0x13c4], esi
lea ecx, [ebp - 0x13b8]
cmp esi, 0x7fffffff
jne 0x4034d7
call fcn.00409290
mov ecx, eax
jmp 0x403529
add esi, 0x80000001
call fcn.00409290
mul esi
mov dword [ebp - 0x13c8], eax
mov ecx, edx
cmp eax, esi
jae 0x403529
mov eax, esi
xor edx, edx
neg eax
div esi
mov eax, edx
mov dword [ebp - 0x13cc], eax
cmp dword [ebp - 0x13c8], eax
jae 0x403529
mov edi, edx
nop word [eax + eax]
lea ecx, [ebp - 0x13b8]
call fcn.00409290
mul esi
mov ecx, edx
cmp eax, edi
jb 0x403510
mov edi, dword [ebp - 0x13d0]
lea esi, [ecx - 0x80000000]
xor esi, 0x80000000
cmp esi, dword [ebp - 0x1c]
jbe 0x40357e
push str.string_subscript_out_of_range
push 0x472c24
push 0
push 0xfea
push 0x4735f8
push 2
call fcn.00417980
add esp, 0x18
cmp eax, 1
jne 0x403560
int3
push 0
push 0xfea
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.40.33807includexstring
push 0x472d54
push str._string_subscript_out_of_range_
call fcn.00418230
add esp, 0x14
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x14]
cmova eax, dword [ebp - 0x2c]
mov dl, byte [eax + esi]
mov esi, dword [edi + 0x18]
mov byte [ebp - 0x14], dl
cmp ecx, esi
jae 0x4035b3
lea eax, [ecx + 1]
mov dword [edi + 0x14], eax
lea eax, [edi + 4]
cmp esi, 0xf
jbe 0x4035a9
mov eax, dword [eax]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x4035cc
push dword [ebp - 0x14]
mov byte [ebp - 0x13d4], 0
mov ecx, edi
push dword [ebp - 0x13d4]
push 1
call fcn.00407ab0
sub dword [ebp - 0x13c0], 1
mov esi, dword [ebp - 0x13c4]
jne 0x4034c0
lea ecx, [ebp - 0x30]
call fcn.00405900
mov ecx, dword [ebp - 0x30]
push 8
push ecx
mov dword [ebp - 0x30], 0
call fcn.00411200
add esp, 8
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.004111f0
mov esp, ebp
pop ebp
ret