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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10094400
mov eax, dword fs:[0]
push eax
mov eax, 0x1430
call fcn.10093da0
mov eax, dword [0x100ac00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x13f8], edi
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x1430], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1434], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x143c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1438], eax
xor eax, eax
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1408], edx
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x1424], eax
mov dword [ebp - 0x1420], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
mov ebx, 0x64
mov eax, dword [0x100f1c24]
mov ecx, dword [0x100f19dc]
add eax, 0xffffffc8
xor eax, 0xd134f076
mov byte [ebp - 0x13f4], 0
add eax, dword [edi]
push ecx
mov edx, dword [ecx]
mov eax, dword [eax]
cmp eax, ebx
mov esi, dword [edx + 0x10]
cmovl ebx, eax
mov eax, dword [0x100f1cbc]
mov edx, esp
add eax, 0xffffffa2
xor eax, 0xd134f09c
add eax, dword [0x100da4f8]
mov eax, dword [eax]
mov dword [edx], eax
call esi
mov esi, eax
test esi, esi
je 0x1002048d
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x6f8]
call eax
cmp dword [eax + 0xc8], 0
jne 0x10020464
mov eax, dword [0x100f1cd4]
add eax, 0xffffff9c
xor eax, 0xd134f0a2
cmp dword [eax + esi], 0x1f
jne 0x1002048d
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x6f8]
call eax
mov ecx, dword [ebp - 0x13f4]
movzx ecx, cl
cmp dword [eax + 0xec], ebx
mov eax, 1
cmovge ecx, eax
mov dword [ebp - 0x13f4], ecx
cmp dword [0x100da8c4], 0x1f
jne 0x100204b6
movd xmm0, ebx
cvtdq2ps xmm0, xmm0
mov byte [ebp - 0x13ed], 0
movss dword [ebp - 0x1414], xmm0
movss dword [ebp - 0x1404], xmm0
jmp 0x1002050c
cmp byte [0x100da3f8], 0
je 0x100204c9
movss xmm2, dword [0x100de210]
jmp 0x100204d1
movss xmm2, dword [0x100de0c4]
movss xmm1, dword [0x100a2efc]
comiss xmm2, xmm1
movss dword [ebp - 0x1404], xmm2
jb 0x100204fd
movd xmm0, ebx
cvtdq2ps xmm0, xmm0
addss xmm2, xmm0
subss xmm2, xmm1
movss dword [ebp - 0x1404], xmm2
movss dword [ebp - 0x1414], xmm2
mov byte [ebp - 0x13ed], 1
mov ecx, dword [0x100f1cb4]
mov ebx, dword [ebp - 0x1408]
add ecx, 0xffffffa4
xor ecx, 0xd134f09a
lea esi, [ebx + 0x420]
add ecx, dword [ebx]
mov eax, dword [ebx + 0x414]
mov dword [ecx], eax
mov dword [ecx + 0xc], 0x80
mov ecx, dword [0x100f1bd8]
mov eax, dword [esi]
add ecx, 0xffffffdb
xor ecx, 0xd134f063
add ecx, dword [ebx]
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov ecx, dword [0x100f1be4]
mov eax, dword [ebx + 0x44]
add ecx, 0xffffffd8
xor ecx, 0xd134f066
add ecx, dword [ebx]
mov dword [ecx], eax
mov eax, dword [ebx + 0x48]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0x4c]
mov dword [ecx + 8], eax
mov ecx, dword [0x100f1be8]
mov eax, dword [ebx + 0x50]
add ecx, 0xffffffd7
xor ecx, 0xd134f067
add ecx, dword [ebx]
mov dword [ecx], eax
mov eax, dword [ebx + 0x54]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0x58]
mov dword [ecx + 8], eax
lea eax, [ebx + 0x68]
mov edx, dword [0x100f1b04]
mov ecx, dword [ebx]
push eax
call edx
mov eax, dword [0x100f1b08]
mov ecx, dword [ebx]
push esi
call eax
movss xmm0, dword [0x100de918]
xor ch, ch
mulss xmm0, dword [0x100a2cc4]
movss dword [ebp - 0x1400], xmm0
cmp byte [ebp - 0x13f4], ch
je 0x100206ba
call dword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [ebp - 0x48], 0xffffffff
mov edx, 1
mov dword [ebp - 0x13c8], eax
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [ebp + edx*4 - 0x13c8], eax
inc edx
cmp edx, 0x270
jl 0x100205f3
movsd xmm0, qword [0x100a2eb0]
sub esp, 8
mov dword [ebp - 0x13cc], 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]
add esp, 8
fstp qword [ebp - 0x142c]
cvttsd2si esi, qword [ebp - 0x142c]
mov eax, 1
xorps xmm2, xmm2
cmp esi, 1
cmovl esi, eax
test esi, esi
jle 0x100206a4
nop dword [eax + eax]
lea ecx, [ebp - 0x13cc]
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 0x10020670
divsd xmm2, xmm1
movss xmm0, dword [ebp - 0x1400]
cvtps2pd xmm0, xmm0
comisd xmm0, xmm2
seta ch
mov cl, byte [ebx + 0x43c]
xorps xmm0, xmm0
xor edx, edx
movq qword [ebp - 0x20], xmm0
xor eax, eax
mov dword [ebp - 0x18], 0
not cl
mov dword [ebp - 0x13f4], edx
xor ebx, ebx
mov dword [ebp - 0x20], edx
and cl, 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x13fc], eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
cmp byte [0x100dea58], al
je 0x100207ec
test cl, cl
je 0x100207ec
mov edx, dword [ebp - 0x1408]
movd xmm0, dword [edx + 0xc]
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x100deae4]
jbe 0x100207ec
mov ecx, dword [ebp - 0x13f8]
mov edi, dword [ecx + 0x490]
mov esi, dword [ecx + 0x48c]
cmp esi, edi
je 0x1002078d
cmp dword [esi], 0
je 0x1002076f
cmp ebx, eax
je 0x10020759
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
add ebx, 8
mov eax, dword [ebp - 0x13fc]
mov dword [ebp - 0x1c], ebx
jmp 0x1002076f
push esi
push ebx
lea ecx, [ebp - 0x20]
call fcn.10022e40
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x13fc], eax
add esi, 8
cmp esi, edi
jne 0x10020738
mov ecx, dword [ebp - 0x13f8]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x13f4], edx
mov edi, dword [ecx + 0x490]
jmp 0x1002078f
xor edx, edx
mov esi, dword [ecx + 0x48c]
cmp esi, edi
je 0x10020928
nop dword [eax]
cmp dword [esi], 0
jne 0x100207d7
cmp ebx, eax
je 0x100207c1
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
add ebx, 8
mov eax, dword [ebp - 0x13fc]
mov dword [ebp - 0x1c], ebx
jmp 0x100207d7
push esi
push ebx
lea ecx, [ebp - 0x20]
call fcn.10022e40
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x13fc], eax
add esi, 8
cmp esi, edi
jne 0x100207a0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x13f4], edx
jmp 0x10020922
test ch, ch
je 0x100208be
mov ecx, dword [ebp - 0x13f8]
mov edi, dword [ecx + 0x490]
mov esi, dword [ecx + 0x48c]
cmp esi, edi
je 0x1002085f
nop word [eax + eax]
cmp dword [esi], 0
je 0x10020847
cmp ebx, eax
je 0x10020831
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
add ebx, 8
mov eax, dword [ebp - 0x13fc]
mov dword [ebp - 0x1c], ebx
jmp 0x10020847
push esi
push ebx
lea ecx, [ebp - 0x20]
call fcn.10022e40
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x13fc], eax
add esi, 8
cmp esi, edi
jne 0x10020810
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x13f8]
mov dword [ebp - 0x13f4], edx
jmp 0x10020861
xor edx, edx
mov edi, dword [ecx + 0x490]
mov esi, dword [ecx + 0x48c]
cmp esi, edi
je 0x10020928
cmp dword [esi], 0
jne 0x100208ac
cmp ebx, eax
je 0x10020896
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
add ebx, 8
mov eax, dword [ebp - 0x13fc]
mov dword [ebp - 0x1c], ebx
jmp 0x100208ac
push esi
push ebx
lea ecx, [ebp - 0x20]
call fcn.10022e40
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x13fc], eax
add esi, 8
cmp esi, edi
jne 0x10020875
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x13f4], edx
jmp 0x10020922
mov ebx, dword [edi + 0x490]
mov eax, dword [edi + 0x48c]
sub ebx, eax
mov esi, ebx
mov dword [ebp - 0x1400], eax
sar esi, 3
xor edi, edi
test esi, esi
je 0x1002090c
cmp esi, 0x1fffffff
ja 0x10020c3f
push esi
call fcn.10023440
mov dword [ebp - 0x13f4], eax
mov edi, eax
mov dword [ebp - 0x20], eax
lea ecx, [eax + esi*8]
mov eax, dword [ebp - 0x1400]
mov dword [ebp - 0x13fc], ecx
mov dword [ebp - 0x18], ecx
push ebx
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
mov edx, dword [ebp - 0x13f4]
add esp, 0xc
add ebx, edi
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 0x13f8]
mov eax, edx
mov dword [ebp - 0x140c], edx
cmp eax, ebx
je 0x10020b95
movss xmm1, dword [ebp - 0x38]
movss xmm0, dword [ebp - 0x44]
movss dword [ebp - 0x1400], xmm1
movss xmm1, dword [ebp - 0x3c]
movss dword [ebp - 0x141c], xmm1
movss xmm1, dword [ebp - 0x40]
movss dword [ebp - 0x1418], xmm1
movss dword [ebp - 0x1410], xmm0
nop dword [eax]
lea edx, [ebp - 0x2c]
push edx
push dword [eax]
mov eax, dword [ebp - 0x1408]
push dword [eax + 0x414]
push eax
call fcn.1001f9f0
mov edi, dword [ebp - 0x2c]
test al, al
je 0x10020b12
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1428], eax
cmp edi, eax
je 0x10020b12
lea esi, [edi + 8]
nop word [eax + eax]
movss xmm0, dword [ebp - 0x1404]
lea edx, [ebp - 0x40]
mov al, byte [ebp - 0x13ed]
lea ecx, [ebp - 0x13ec]
movss dword [ebp - 0x13d8], xmm0
movss xmm0, dword [ebp - 0x1414]
movss dword [ebp - 0x13d4], xmm0
movss xmm0, dword [esi - 8]
mov byte [ebp - 0x13d0], al
mov eax, dword [ebp - 0x13f8]
movss dword [ebp - 0x13e4], xmm0
movss xmm0, dword [esi - 4]
movss dword [ebp - 0x13e0], xmm0
mov eax, dword [eax]
movss xmm0, dword [esi]
mov dword [ebp - 0x13e8], eax
mov eax, dword [0x100da4f8]
mov dword [ebp - 0x13ec], eax
movss dword [ebp - 0x13dc], xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xffffffff
mov word [ebp - 0x34], 0
call fcn.1007ccc0
mov edi, dword [ebp - 0x2c]
test al, al
je 0x10020b00
mov eax, dword [ebp - 0x140c]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x38]
test ecx, ecx
jne 0x10020a67
cmp eax, 1
jne 0x10020b00
movss xmm1, dword [ebp - 0x3c]
comiss xmm1, dword [ebp - 0x1410]
jbe 0x10020b00
movss xmm4, dword [esi - 8]
movss xmm0, dword [edi]
movss xmm3, dword [esi - 4]
movss xmm2, dword [esi]
ucomiss xmm0, xmm4
mov dword [ebp - 0x1420], eax
mov dword [ebp - 0x1424], ecx
movss dword [ebp - 0x1410], xmm1
movss dword [ebp - 0x1418], xmm4
lahf
movss dword [ebp - 0x141c], xmm3
movss dword [ebp - 0x1400], xmm2
test ah, 0x44
jp 0x10020b00
movss xmm0, dword [edi + 4]
ucomiss xmm0, xmm3
lahf
test ah, 0x44
jp 0x10020b00
movss xmm0, dword [edi + 8]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jp 0x10020b00
mov eax, dword [ebp - 0x13f8]
mov ecx, dword [0x100f1c24]
add ecx, 0xffffffc8
xor ecx, 0xd134f076
mov eax, dword [eax]
movd xmm0, dword [ecx + eax]
cvtdq2ps xmm0, xmm0
comiss xmm1, xmm0
jae 0x10020b12
add esi, 0xc
lea eax, [esi - 8]
cmp eax, dword [ebp - 0x1428]
jne 0x100209b0
mov eax, dword [ebp - 0x140c]
mov ecx, dword [ebp - 0x13f8]
add eax, 8
mov dword [ebp - 0x140c], eax
cmp eax, ebx
jne 0x10020970
movss xmm0, dword [ebp - 0x1410]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x10020b98
mov eax, dword [ebp - 0x1430]
mov bl, 1
movss xmm1, dword [ebp - 0x1418]
mov ecx, dword [ebp - 0x1438]
movss dword [eax], xmm1
movss xmm1, dword [ebp - 0x141c]
movss dword [eax + 4], xmm1
movss xmm1, dword [ebp - 0x1400]
movss dword [eax + 8], xmm1
mov eax, dword [ebp - 0x1434]
movss dword [eax], xmm0
mov eax, dword [ebp - 0x1420]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x143c]
mov eax, dword [ebp - 0x1424]
mov dword [ecx], eax
jmp 0x10020b9a
mov edi, dword [ebp - 0x2c]
xor bl, bl
mov edx, dword [ebp - 0x13f4]
test edx, edx
je 0x10020bd6
mov ecx, dword [ebp - 0x13fc]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x10020bc9
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10020c0f
push ecx
push edx
call fcn.10092fae
mov edi, dword [ebp - 0x2c]
add esp, 8
test edi, edi
je 0x10020c1f
mov ecx, dword [ebp - 0x24]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 2
cmp ecx, 0x1000
jb 0x10020c15
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10020c15
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.10092fae
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10092b30
mov esp, ebp
pop ebp
ret 0x14
call fcn.10023430
int3