Function at 0x10002e97
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
mov dword [esp + 0x18], edx
mov byte [esp + 8], cl
push esi
push edi
test cl, cl
je 0x10003128
mov eax, dword [0x10069ee4]
xor esi, esi
inc esi
mov edi, 0x270
test al, 1
jne 0x10002eff
or eax, esi
mov ecx, 0x1571
or dword [0x10069ea4], 0xffffffff
mov edx, esi
mov dword [0x10069ee4], eax
mov dword [0x10068b24], ecx
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [edx*4 + 0x10068b24], ecx
inc edx
cmp edx, edi
jl 0x10002ede
mov dword [0x10068b20], edi
mov dword [esp + 0x14], 0xde19d29b
xor edi, edi
mov dword [esp + 0x18], 0xfffffffd
mov dword [esp + 0x18], 0xc9ed9ba0
mov dword [esp + 0x18], esi
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x1c], 0xf9034e10
mov dword [esp + 0x14], edi
jmp 0x10002f53
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x24], 0x6482
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 2
jl 0x10002f43
mov dword [esp + 0x14], edi
jmp 0x10002f6c
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x3c], esi
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 3
jl 0x10002f60
mov dword [esp + 0x14], edi
jmp 0x10002f8d
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + eax*4 + 0x24]
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x24], ecx
inc dword [esp + 0x14]
cmp dword [esp + 0x14], esi
jle 0x10002f79
lea eax, [esp + 0x1c]
mov ecx, 0x6d9d
push eax
call fcn.100025af
cmp byte [0x10068ad0], 0
pop ecx
jne 0x10003009
mov dword [esp + 0x18], esi
mov dword [esp + 0x18], 0xce53d8da
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
jmp 0x10002fd2
mov eax, dword [esp + 0x18]
mov dword [esp + eax*4 + 0x2c], 0xde0b4074
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 2
jl 0x10002fc2
inc dword [esp + 0x14]
mov dword [esp + 0x14], edi
jmp 0x10002ff7
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + eax*4 + 0x2c]
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x2c], ecx
inc dword [esp + 0x14]
cmp dword [esp + 0x14], esi
jle 0x10002fe3
call fcn.10001ab3
push ecx
call fcn.10001ee0
pop ecx
push 0xfffffffffffffff7
pop eax
mov dword [esp + 0x48], eax
xor ecx, ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
push 4
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x1c], ecx
pop edi
jmp 0x10003037
mov eax, dword [esp + 0x18]
mov dword [esp + eax*4 + 0x34], edi
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 2
jl 0x1000302b
push 3
pop esi
mov dword [esp + 0x18], esi
cmp dword [esp + 0x18], ecx
jl 0x1000308c
mov dword [esp + 0x14], 0x6b950ba1
mov dword [esp + 0x14], ecx
jmp 0x10003080
mov eax, dword [esp + 0x14]
cmp dword [esp + eax*4 + 0x48], ecx
jne 0x10003086
mov byte [esp + 0xf], cl
lea eax, [esp + 0xf]
push eax
xor dl, dl
mov ecx, 0x2442
call fcn.10001ac3
inc dword [esp + 0x18]
pop ecx
push 0
pop ecx
cmp dword [esp + 0x14], esi
jle 0x10003059
dec dword [esp + 0x18]
jns 0x1000304b
mov eax, dword [0x10068b20]
cmp eax, 0x270
jne 0x100030d7
mov edx, 0x10068b28
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, dword [edx - 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x630]
xor eax, ecx
mov dword [edx + 0x9bc], eax
add edx, edi
cmp edx, 0x100694e8
jl 0x1000309d
jmp 0x100030e3
cmp eax, 0x4e0
jb 0x100030e8
call fcn.10003bb1
mov eax, dword [0x10068b20]
mov edx, dword [eax*4 + 0x10068b24]
inc eax
mov dword [0x10068b20], eax
mov eax, edx
shr eax, 0xb
and eax, dword [0x10069ea4]
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, dword [ebp + 0xc]
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
mov dword [eax], ecx
jmp 0x10003130
push 0
call dword [sym.imp.KERNEL32.dll_SuspendThread]
pop edi
pop esi
mov esp, ebp
pop ebp
ret