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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405162
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x4c2040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x18], esi
mov edi, dword [eax]
mov eax, dword [0x4c2644]
mov dword [ebp - 0x28], edi
cmp eax, dword [edi + 8]
jle 0x402294
push 0x4c2644
call fcn.004040e2
add esp, 4
cmp dword [0x4c2644], 0xffffffff
jne 0x402294
push str.0123456789aAbBcCdDeEfFgGhHjJkKlLmMnNoO
mov ecx, 0x4c262c
mov dword [ebp - 4], 0
call fcn.00403360
push 0x405310
call fcn.004045af
push 0x4c2644
mov dword [ebp - 4], 0xffffffff
call fcn.00404091
add esp, 8
mov eax, dword [edi + 0x14]
test al, 1
jne 0x4022fc
or eax, 1
mov dword [edi + 0x14], eax
mov dword [ebp - 4], 1
call dword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov ecx, eax
mov dword [edi + 0x139c], 0xffffffff
mov dword [edi + 0x1c], ecx
lea esi, [edi + 0x20]
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 0x4022d1
mov esi, dword [ebp - 0x1c]
mov dword [edi + 0x18], 0x270
mov eax, dword [edi + 0x14]
test al, 2
jne 0x402325
or eax, 2
mov dword [edi + 0xc], 0
mov dword [edi + 0x14], eax
mov eax, dword [0x4c263c]
dec eax
mov dword [edi + 0x10], eax
xor eax, eax
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 6
mov dword [esi + 0x14], 0xf
mov dword [esi], eax
mov word [esi + 4], ax
mov byte [esi + 6], al
mov eax, esi
cmp dword [esi + 0x14], 0xf
jbe 0x402363
mov eax, dword [esi]
mov ecx, eax
mov dword [ebp - 0x14], eax
jmp 0x402368
mov dword [ebp - 0x14], esi
mov ecx, esi
mov edx, dword [esi + 0x10]
add edx, ecx
mov dword [ebp - 0x18], edx
cmp eax, edx
je 0x402468
nop dword [eax + eax]
mov eax, dword [edi + 0xc]
cmp eax, 0x80000000
mov edx, dword [edi + 0x10]
lea esi, [eax - 0x80000000]
lea ecx, [eax - 0x80000000]
mov dword [ebp - 0x10], esi
mov eax, esi
lea esi, [edi + 0x18]
cmovae eax, ecx
cmp edx, 0x80000000
mov dword [ebp - 0x10], eax
lea ecx, [edx - 0x80000000]
lea eax, [edx - 0x80000000]
cmovae ecx, eax
sub ecx, dword [ebp - 0x10]
cmp ecx, 0xffffffff
jne 0x4023d6
mov ecx, esi
call fcn.00403e50
mov ecx, eax
jmp 0x402413
lea edi, [ecx + 1]
mov ecx, esi
call fcn.00403e50
mul edi
mov dword [ebp - 0x20], eax
mov ecx, edx
cmp eax, edi
jae 0x402410
mov eax, edi
xor edx, edx
neg eax
div edi
mov eax, edx
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x20], eax
jae 0x402410
nop dword [eax]
mov ecx, esi
call fcn.00403e50
mul edi
mov ecx, edx
cmp eax, dword [ebp - 0x24]
jb 0x402400
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
add eax, ecx
cmp eax, 0x80000000
lea ecx, [eax - 0x80000000]
lea edx, [eax - 0x80000000]
mov eax, dword [ebp - 0x14]
cmovae edx, ecx
cmp dword [0x4c2640], 0xf
mov ecx, 0x4c262c
cmova ecx, dword [0x4c262c]
mov cl, byte [edx + ecx]
mov byte [eax], cl
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x18]
jne 0x402380
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
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