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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404f4f
mov eax, dword fs:[0]
push eax
mov eax, 0x13c8
call fcn.00404d70
mov eax, dword [0x408008]
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, edx
mov dword [ebp - 0x13b8], edx
mov esi, ecx
mov dword [ebp - 0x13cc], esi
mov dword [ebp - 0x13bc], esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x13d4], esi
xorps xmm0, xmm0
mov dword [ebp - 0x13c0], 0
push 0x1a
push str.abcdefghijklmnopqrstuvwxyz
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.00402060
push 0x24
push str.0123456789abcdefghijklmnopqrstuvwxyz
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.004037b0
call dword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x13b0], edx
mov ecx, 1
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [ebp + ecx*4 - 0x13b0], edx
inc ecx
cmp ecx, 0x270
jb 0x402352
mov eax, dword [ebp - 0x1c]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
dec eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov dword [ebp - 0x13b4], 0x270
mov byte [esi], 0
mov dword [ebp - 0x13c0], 1
test edi, edi
jle 0x402493
cmp eax, 0x80000000
cmovae eax, eax
mov dword [ebp - 0x13bc], eax
lea ecx, [ebp - 0x13b4]
cmp eax, 0xffffffff
jne 0x4023d8
call fcn.00403dd0
mov ecx, eax
jmp 0x40242f
lea edi, [eax + 1]
call fcn.00403dd0
mul edi
mov dword [ebp - 0x13c4], eax
mov ecx, edx
cmp eax, edi
jae 0x402429
mov eax, edi
xor edx, edx
neg eax
div edi
mov eax, edx
mov dword [ebp - 0x13c8], eax
cmp dword [ebp - 0x13c4], eax
jae 0x402429
mov esi, edx
nop dword [eax + eax]
lea ecx, [ebp - 0x13b4]
call fcn.00403dd0
mul edi
mov ecx, edx
cmp eax, esi
jb 0x402410
mov esi, dword [ebp - 0x13cc]
mov edi, dword [ebp - 0x13b8]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov edx, dword [esi + 0x14]
cmovae eax, dword [ebp - 0x2c]
mov al, byte [ecx + eax]
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x14], al
cmp ecx, edx
jae 0x402466
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x402459
mov eax, dword [esi]
add eax, ecx
mov cl, byte [ebp - 0x14]
mov byte [eax + 1], 0
mov byte [eax], cl
jmp 0x40247e
push dword [ebp - 0x14]
mov byte [ebp - 0x13d0], 0
push dword [ebp - 0x13d0]
push ecx
mov ecx, esi
call fcn.00403b30
mov eax, dword [ebp - 0x13bc]
sub edi, 1
mov dword [ebp - 0x13b8], edi
jne 0x4023c4
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x4024c9
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4024bf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4024bf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00404032
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.00403f42
mov esp, ebp
pop ebp
ret