Function at 0x1000de17
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005f947
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
cmp byte [ebp + 8], 0
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x3c], esi
je 0x1000e281
mov eax, dword [0x1013e41c]
xor ecx, ecx
inc ecx
mov ebx, 0x270
test cl, al
jne 0x1000de99
or eax, ecx
mov edx, 0x1571
or dword [0x1013f7b4], 0xffffffff
mov esi, ecx
mov dword [0x1013e41c], eax
mov dword [0x1013e434], edx
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
mov dword [esi*4 + 0x1013e434], edx
inc esi
cmp esi, ebx
jl 0x1000de74
mov esi, dword [esp + 0x3c]
mov dword [0x1013e430], ebx
push ecx
lea eax, [esp + 0x12]
mov dword [esp + 0x48], ecx
push eax
mov dword [esp + 0x48], 0x95d7c154
xor ebx, ebx
push ecx
mov dword [esp + 0x5c], 0x8ebcce3f
push ecx
mov byte [esp + 0x1e], bl
call fcn.1000dda8
push 0x4a22
push ebx
lea eax, [esp + 0x58]
mov edx, 0x1387
push eax
lea eax, [esp + 0x60]
mov ecx, 0x4600
push eax
push ebx
call fcn.1000de17
add esp, 0x24
push 2
pop edi
cmp byte [0x1007a4a0], bl
jne 0x1000e15d
push 0xfffffffffffffff8
pop eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 0x570a50b5
mov dword [esp + 0x4c], eax
push 7
pop eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x10], 5
cmp dword [esp + 0x10], eax
jl 0x1000e058
mov dword [esp + 0x24], 1
mov dword [esp + 0x14], 6
mov dword [esp + 0x34], 0x2ddb74a7
mov dword [esp + 0x18], 0x289a6957
cmp dword [esp + 0x24], 0x8ae505b0
jne 0x1000df7e
mov ecx, dword [esp + 0x18]
xor edx, edx
mov eax, dword [esp + 0x18]
cmp ecx, eax
mov eax, dword [esp + 0x10]
setle dl
sub edx, eax
mov eax, dword [esp + 0x18]
add eax, edx
xor edx, edx
cmp eax, 0xfffffffd
mov eax, dword [esp + 0x24]
setne dl
xor ecx, ecx
cmp edx, eax
setle cl
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
add eax, 0x5c14225a
imul ecx, eax
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov eax, dword [esp + 0x14]
cmp eax, 0xfffffff8
mov eax, dword [esp + 0x10]
setne cl
sub ecx, eax
mov dword [esp + 0x34], ecx
je 0x1000e017
push 0x4438
push 0x7ae7
push ebx
push 1
push 0x76b4
push 0x4fee
push 0x19c
lea eax, [esp + 0x2c]
mov dword [esp + 0x4c], 0xe7374489
push eax
lea eax, [esp + 0x50]
mov cl, 1
push eax
lea edx, [esp + 0x3c]
call fcn.1000ec22
add esp, 0x24
lea eax, [esp + 0x24]
lea edx, [esp + 0x34]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x60]
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.1000ebb5
add esp, 0x1c
jmp 0x1000e025
mov dword [esp + 0x3c], 0xf4f
cmp dword [esp + 0x3c], ebx
jne 0x1000e058
mov dword [esp + 0x14], ebx
jmp 0x1000e043
lea eax, [esp + 0xf]
mov byte [esp + 0xf], bl
push eax
mov ecx, 0x5c7e
call fcn.1000e4ea
inc dword [esp + 0x18]
pop ecx
cmp dword [esp + 0x14], edi
jl 0x1000e02b
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 7
jge 0x1000df1e
push 0x1013e430
push 0x68ce
push ebx
push 1
push 0x7d25
push 0x6540
push 0x442
push 0x7832
push 0x71dc
mov edx, 0x1cc5
xor cl, cl
call fcn.1000ec22
mov dword [esp + 0x74], 0xffffffff
mov eax, 0x909b7928
mov dword [esp + 0x60], ebx
add esp, 0x24
mov dword [esp + 0x20], 0xcdcb363f
mov dword [esp + 0x2c], 1
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], 0xd3388a01
mov dword [esp + 0x38], 0xa3e8
mov eax, dword [esp + 0x20]
dec dword [esp + 0x20]
test eax, eax
je 0x1000e14a
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
dec edx
neg edx
sbb edx, edx
xor ecx, ecx
neg edx
cmp eax, edx
setne cl
imul ecx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x50]
je 0x1000e118
mov eax, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x7c], ebx
je 0x1000e12a
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x7c]
xor edx, edx
mov eax, dword [esp + 0x2c]
cmp eax, ecx
setle dl
cmp edx, dword [esp + 0x2c]
jne 0x1000e14a
cmp dword [esp + 0x28], ebx
je 0x1000e14a
xor ecx, ecx
inc ecx
jmp 0x1000e14c
mov ecx, ebx
mov eax, dword [esp + 0x3c]
sub ecx, eax
mov dword [esp + 0x78], ecx
mov byte [0x1007a4a0], 1
push 4
lea ecx, [esp + 0x68]
call fcn.1000354d
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x1c], ebx
jmp 0x1000e185
mov eax, dword [esp + 0x1c]
mov dword [esp + eax*4 + 0x5c], 0x5f70
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], edi
jl 0x1000e175
lea eax, [esp + 0x1c]
push eax
push ecx
push ecx
lea edx, [esp + 0x70]
call fcn.1000eb6e
mov ecx, dword [esp + 0x70]
add esp, 0xc
mov dword [ecx + 8], 1
mov eax, dword [ecx + 8]
mov dword [esp + 0x20], 1
cmp dword [esp + eax*4 + 0x5c], ebx
jne 0x1000e1db
mov dword [esp + 0x20], ebx
jmp 0x1000e1d0
mov eax, dword [esp + 0x20]
mov dword [esp + eax*4 + 0x5c], 0x770a
inc dword [esp + 0x20]
cmp dword [esp + 0x20], edi
jl 0x1000e1c0
dec dword [ecx + 8]
jns 0x1000e1a9
lea ecx, [esp + 0x64]
call fcn.100035d0
mov eax, dword [0x1013e430]
cmp eax, 0x270
jne 0x1000e230
mov edx, 0x1013e438
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, ecx
xor eax, dword [edx + 0x630]
mov dword [edx + 0x9bc], eax
add edx, 4
cmp edx, 0x1013edf8
jl 0x1000e1f5
jmp 0x1000e23c
cmp eax, 0x4e0
jb 0x1000e241
call fcn.10010484
mov eax, dword [0x1013e430]
mov ecx, dword [eax*4 + 0x1013e434]
inc eax
mov dword [0x1013e430], eax
mov eax, ecx
shr eax, 0xb
and eax, dword [0x1013f7b4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [esi], eax
jmp 0x1000e365
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esi], ebx
cmp dword [esi], 0xfffffff7
je 0x1000e365
push 2
pop edi
mov dword [esp + 0x3c], 0xcc9f71d6
mov dword [esp + 0x50], 0xaa6f4ed8
mov dword [esp + 0x20], ebx
jmp 0x1000e2ba
mov eax, dword [esp + 0x20]
mov dword [esp + eax*4 + 0x54], 0x11c15747
inc dword [esp + 0x20]
cmp dword [esp + 0x20], edi
jl 0x1000e2aa
mov dword [esp + 0x3c], 1
cmp dword [esi], ebx
jne 0x1000e2d0
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x54]
mov ecx, 0xee85ec41
cmp ecx, eax
mov eax, dword [esp + 0x54]
sbb edx, edx
xor ecx, ecx
neg edx
cmp edx, eax
mov eax, dword [esp + 0x3c]
setle cl
add eax, 0x40e66cec
add eax, ecx
xor ecx, ecx
cmp eax, 0x64939e63
setne cl
imul eax, ecx, 0xced6
cmp eax, dword [esp + 0x58]
jge 0x1000e315
cmp dword [esp + 0x58], ebx
jne 0x1000e315
mov edx, ebx
jmp 0x1000e318
xor edx, edx
inc edx
mov eax, dword [esi]
xor ecx, ecx
cmp edx, eax
mov eax, dword [esi]
setle cl
imul eax, ecx
cmp eax, 3
jg 0x1000e32d
mov eax, dword [esi]
mov eax, dword [esi]
add eax, dword [esi]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp dword [ecx], 9
sbb eax, eax
xor edx, edx
inc eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [esi]
mov eax, dword [esi]
mov ecx, dword [esp + 0x54]
mov eax, dword [esi]
inc ecx
cmp ecx, eax
setl dl
mov dword [esp + 0x50], edx
dec dword [esi]
cmp dword [esi], 0xfffffff7
jne 0x1000e294
mov ecx, dword [esp + 0x84]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret