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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100943c0
mov eax, dword fs:[0]
push eax
mov eax, 0x142c
call fcn.10093da0
mov eax, dword [0x100ac00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [edi + 0x48c]
lea ecx, [edi + 0x48c]
mov dword [ecx + 4], edx
cmp dword [0x100da8c4], 0x1f
mov dword [ebp - 0x13d0], ecx
jne 0x1001dc1d
xor eax, eax
mov dword [ebp - 0x13d4], 4
mov dword [ebp - 0x13d0], eax
cmp edx, dword [ecx + 8]
je 0x1001dc0b
mov dword [edx], 4
mov dword [edx + 4], eax
add dword [ecx + 4], 8
jmp 0x1001e32d
lea eax, [ebp - 0x13d4]
push eax
push edx
call fcn.10022e40
jmp 0x1001e32d
mov eax, dword [0x100df2b0]
cmp eax, 0xffffffff
je 0x1001dc35
lea eax, [eax + eax*2]
mov al, byte [eax*4 + 0x100efa00]
test al, al
jne 0x1001dbe2
mov ecx, dword [0x100f19dc]
mov eax, dword [0x100f1cbc]
add eax, 0xffffffa2
mov byte [ebp - 0x13c2], 0
xor eax, 0xd134f09c
mov edx, dword [ecx]
add eax, dword [0x100da4f8]
push ecx
mov esi, dword [edx + 0x10]
mov edx, esp
mov eax, dword [eax]
mov dword [edx], eax
call esi
mov esi, eax
test esi, esi
je 0x1001dde1
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x6f8]
call eax
cmp dword [eax + 0xc8], 0
jne 0x1001dc99
mov eax, dword [0x100f1cd4]
add eax, 0xffffff9c
xor eax, 0xd134f0a2
cmp dword [eax + esi], 0x1f
jne 0x1001dde8
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x6f8]
call eax
mov ecx, dword [0x100f1c24]
sub esp, 8
add ecx, 0xffffffc8
mov esi, eax
xor ecx, 0xd134f076
add ecx, dword [edi]
movd xmm0, dword [ecx]
cvtdq2pd xmm0, xmm0
movsd qword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_round]
fstp qword [ebp - 0x28]
cvttsd2si eax, qword [ebp - 0x28]
add esp, 8
cmp dword [esi + 0xec], eax
jl 0x1001dde1
movss xmm0, dword [0x100de918]
mulss xmm0, dword [0x100a2cc4]
movss dword [ebp - 0x13c8], xmm0
call dword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [ebp - 0x3c], 0xffffffff
mov ecx, 1
mov dword [ebp - 0x13bc], edx
mov byte [ebp - 0x13c2], cl
nop dword [eax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [ebp + ecx*4 - 0x13bc], edx
inc ecx
cmp ecx, 0x270
jl 0x1001dd20
movsd xmm0, qword [0x100a2eb0]
sub esp, 8
mov dword [ebp - 0x13c0], 0x270
movsd qword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_log2]
fdivr qword [0x100a2e38]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
movsd xmm1, qword [0x100a2de0]
mov eax, 1
fstp qword [ebp - 0x28]
cvttsd2si esi, qword [ebp - 0x28]
add esp, 8
xorps xmm2, xmm2
cmp esi, eax
cmovl esi, eax
test esi, esi
jle 0x1001ddc5
lea ecx, [ebp - 0x13c0]
call fcn.10023b40
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100a3020]
mulsd xmm0, xmm1
mulsd xmm1, qword [0x100a2eb0]
addsd xmm2, xmm0
sub esi, 1
jne 0x1001dd91
divsd xmm2, xmm1
movss xmm0, dword [ebp - 0x13c8]
cvtps2pd xmm0, xmm0
comisd xmm0, xmm2
seta byte [ebp - 0x13c1]
jmp 0x1001ddef
mov byte [ebp - 0x13c2], 0
mov byte [ebp - 0x13c1], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
push 0x100ddd68
lea ecx, [ebp - 0x34]
movq qword [ebp - 0x34], xmm0
call fcn.10021540
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x30]
je 0x1001e2f7
xor esi, esi
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
xor edi, edi
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
mov ebx, edx
cmp dword [ebx], 0
jne 0x1001de99
cmp byte [ebp - 0x13c1], 0
je 0x1001de5b
cmp byte [ebp - 0x13c2], 0
jne 0x1001de99
xorps xmm0, xmm0
movq qword [ebp - 0x13dc], xmm0
cmp esi, edi
je 0x1001de83
mov eax, dword [ebp - 0x13dc]
mov dword [esi], eax
mov eax, dword [ebp - 0x13d8]
mov dword [esi + 4], eax
add esi, 8
mov dword [ebp - 0x18], esi
jmp 0x1001de99
lea eax, [ebp - 0x13dc]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.10022e40
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
cmp dword [ebx], 1
jne 0x1001df59
xor eax, eax
mov dword [ebp - 0x13cc], 5
mov dword [ebp - 0x13c8], eax
cmp esi, edi
je 0x1001dec9
mov dword [esi], 5
mov dword [esi + 4], eax
add esi, 8
mov dword [ebp - 0x18], esi
jmp 0x1001dedf
lea eax, [ebp - 0x13cc]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.10022e40
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x13e4], 6
mov dword [ebp - 0x13e0], eax
cmp esi, edi
je 0x1001df06
mov dword [esi], 6
mov dword [esi + 4], eax
add esi, 8
mov dword [ebp - 0x18], esi
jmp 0x1001df1c
lea eax, [ebp - 0x13e4]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.10022e40
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x13ec], 7
mov dword [ebp - 0x13e8], eax
cmp esi, edi
je 0x1001df43
mov dword [esi], 7
mov dword [esi + 4], eax
add esi, 8
mov dword [ebp - 0x18], esi
jmp 0x1001df59
lea eax, [ebp - 0x13ec]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.10022e40
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
cmp dword [ebx], 2
jne 0x1001dfd8
xor eax, eax
mov dword [ebp - 0x13f4], 3
mov dword [ebp - 0x13f0], eax
cmp esi, edi
je 0x1001df85
mov dword [esi], 3
mov dword [esi + 4], eax
add esi, 8
mov dword [ebp - 0x18], esi
jmp 0x1001df9b
lea eax, [ebp - 0x13f4]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.10022e40
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x13fc], 4
mov dword [ebp - 0x13f8], eax
cmp esi, edi
je 0x1001dfc2
mov dword [esi], 4
mov dword [esi + 4], eax
add esi, 8
mov dword [ebp - 0x18], esi
jmp 0x1001dfd8
lea eax, [ebp - 0x13fc]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.10022e40
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
cmp dword [ebx], 3
jne 0x1001e057
xor eax, eax
mov dword [ebp - 0x1404], 0x12
mov dword [ebp - 0x1400], eax
cmp esi, edi
je 0x1001e004
mov dword [esi], 0x12
mov dword [esi + 4], eax
add esi, 8
mov dword [ebp - 0x18], esi
jmp 0x1001e01a
lea eax, [ebp - 0x1404]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.10022e40
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x140c], 0x10
mov dword [ebp - 0x1408], eax
cmp esi, edi
je 0x1001e041
mov dword [esi], 0x10
mov dword [esi + 4], eax
add esi, 8
mov dword [ebp - 0x18], esi
jmp 0x1001e057
lea eax, [ebp - 0x140c]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.10022e40
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
cmp dword [ebx], 4
jne 0x1001e1c5
xor eax, eax
mov dword [ebp - 0x1414], 9
mov dword [ebp - 0x1410], eax
cmp esi, edi
je 0x1001e087
mov dword [esi], 9
mov dword [esi + 4], eax
add esi, 8
mov dword [ebp - 0x18], esi
jmp 0x1001e09d
lea eax, [ebp - 0x1414]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.10022e40
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x141c], 8
mov dword [ebp - 0x1418], eax
cmp esi, edi
je 0x1001e0c4
mov dword [esi], 8
mov dword [esi + 4], eax
add esi, 8
mov dword [ebp - 0x18], esi
jmp 0x1001e0da
lea eax, [ebp - 0x141c]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.10022e40
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x1424], 0xb
mov dword [ebp - 0x1420], eax
cmp esi, edi
je 0x1001e101
mov dword [esi], 0xb
mov dword [esi + 4], eax
add esi, 8
mov dword [ebp - 0x18], esi
jmp 0x1001e117
lea eax, [ebp - 0x1424]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.10022e40
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x142c], 0xa
mov dword [ebp - 0x1428], eax
cmp esi, edi
je 0x1001e13e
mov dword [esi], 0xa
mov dword [esi + 4], eax
add esi, 8
mov dword [ebp - 0x18], esi
jmp 0x1001e154
lea eax, [ebp - 0x142c]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.10022e40
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x1434], 0xd
mov dword [ebp - 0x1430], eax
cmp esi, edi
je 0x1001e17b
mov dword [esi], 0xd
mov dword [esi + 4], eax
add esi, 8
mov dword [ebp - 0x18], esi
jmp 0x1001e191
lea eax, [ebp - 0x1434]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.10022e40
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x24], eax
cmp esi, edi
je 0x1001e1b2
mov dword [esi], 0xc
mov dword [esi + 4], eax
add esi, 8
mov dword [ebp - 0x18], esi
jmp 0x1001e1c5
lea eax, [ebp - 0x28]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.10022e40
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
add ebx, 4
cmp ebx, dword [ebp - 0x30]
jne 0x1001de44
cmp byte [ebp - 0x13c1], 0
mov dword [ebp - 0x13c8], edi
je 0x1001e25a
cmp byte [ebp - 0x13c2], 0
je 0x1001e25a
mov ecx, dword [ebp - 0x1c]
mov edx, ecx
cmp edx, esi
je 0x1001e25d
cmp dword [edx], 0
je 0x1001e200
add edx, 8
cmp edx, esi
jne 0x1001e1f2
jmp 0x1001e25d
cmp edx, esi
je 0x1001e25d
mov eax, dword [edx + 4]
lea ecx, [edx + 8]
mov ebx, dword [edx]
mov dword [ebp - 0x13d8], eax
mov dword [ebp - 0x24], eax
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x28], ebx
push eax
push ecx
push edx
call sub.VCRUNTIME140.dll_memmove
lea eax, [esi - 8]
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x1001e241
mov ecx, dword [ebp - 0x13d8]
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [ebp - 0x18], esi
jmp 0x1001e25a
lea ecx, [ebp - 0x28]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.10022e40
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x13c8], edi
mov ecx, dword [ebp - 0x1c]
mov ebx, ecx
cmp ebx, esi
je 0x1001e2c7
mov edi, dword [ebp - 0x13d0]
nop dword [eax]
mov edx, dword [edi + 4]
mov ecx, dword [edi]
cmp ecx, edx
je 0x1001e299
mov eax, dword [ebx]
nop dword [eax + eax]
cmp dword [ecx], eax
jne 0x1001e28e
mov eax, dword [ecx + 4]
cmp eax, dword [ebx + 4]
je 0x1001e295
mov eax, dword [ebx]
add ecx, 8
cmp ecx, edx
jne 0x1001e280
cmp ecx, edx
jne 0x1001e2b7
cmp edx, dword [edi + 8]
je 0x1001e2ae
mov eax, dword [ebx]
mov dword [edx], eax
mov eax, dword [ebx + 4]
mov dword [edx + 4], eax
add dword [edi + 4], 8
jmp 0x1001e2b7
push ebx
push edx
mov ecx, edi
call fcn.10022e40
add ebx, 8
cmp ebx, esi
jne 0x1001e270
mov edi, dword [ebp - 0x13c8]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1001e2f4
sub edi, ecx
mov eax, ecx
and edi, 0xfffffff8
cmp edi, 0x1000
jb 0x1001e2ea
mov ecx, dword [ecx - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001e31d
push edi
push ecx
call fcn.10092fae
add esp, 8
mov edx, dword [ebp - 0x34]
test edx, edx
je 0x1001e32d
mov ecx, dword [ebp - 0x2c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1001e323
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001e323
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10092fae
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10092b30
mov esp, ebp
pop ebp
ret 8