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

Disassembly:
mov eax, 0x10061f3a
call fcn.10060610
sub esp, 0xbc
mov byte [ebp - 0x30], cl
push ebx
push esi
push edi
test cl, cl
je 0x100401ac
mov esi, dword [ebp + 8]
push 2
pop edi
mov dword [esi], 0
jmp 0x100401a3
mov edx, dword [ebp + 0x10]
push 0x66
push ecx
mov ecx, dword [ebp + 0x18]
push 0x69bb
call fcn.100412b3
add esp, 0xc
inc dword [esi]
cmp dword [esi], edi
jle 0x1004018b
jmp 0x10040686
lea eax, [ebp - 0x21]
mov dword [ebp - 0x20], 0xb4e1
push 0xb7c
xor ebx, ebx
mov edx, 0x5454
push eax
mov byte [ebp - 0x21], bl
call fcn.10041c05
pop ecx
pop ecx
xor dl, dl
mov ecx, 0x5af5
call fcn.10040de6
mov eax, dword [0x1007e820]
mov esi, 0x270
test al, 1
jne 0x10040225
or dword [0x1007e7f4], 0xffffffff
or eax, 1
mov ecx, 0x1571
mov dword [0x1007e820], eax
xor edx, edx
mov dword [0x1007d474], ecx
inc edx
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [edx*4 + 0x1007d474], ecx
inc edx
cmp edx, esi
jl 0x10040204
mov dword [0x1007d470], esi
push 2
pop edi
push edi
lea ecx, [ebp - 0x64]
call fcn.1000216e
mov dword [ebp - 4], ebx
xor ecx, ecx
inc ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x28], ecx
push 4
pop edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 0x97a2
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], ebx
push 3
pop esi
cmp dword [ebp - 0x10], edi
jge 0x1004026f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x64]
mov dword [eax + ecx*4], esi
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jl 0x1004025b
xor ecx, ecx
inc ecx
mov dword [ebp - 0x10], ebx
jmp 0x10040285
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x90], 0x51ae9a07
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edx
jl 0x10040274
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x10], ecx
jg 0x1004037e
mov dword [ebp - 0x14], 0x8ace4b0a
push ecx
mov dword [ebp - 0x14], 5
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x34], 0xffffffff
call fcn.1000216e
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x34], 9
mov dword [ebp - 0x58], 0xd4ac961f
mov dword [ebp - 0x34], 6
push eax
call fcn.10041047
mov eax, dword [ebp - 0x10]
xor edx, edx
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x58]
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
cmp ecx, eax
push 0xfffffffffffffff8
setg dl
xor ebx, ebx
add edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x64]
cmp dword [eax + esi*4], edx
mov eax, dword [ebp - 0x2c]
setl bl
xor ecx, ecx
cmp ebx, eax
mov eax, dword [ebp - 0x14]
setne cl
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp - 0x88]
setne dl
sub edx, eax
xor eax, eax
mov dword [ebp - 0x84], edx
cmp edx, 0x4e48
pop edx
setle al
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x64]
cmp edx, dword [eax + ecx*4]
lea ecx, [ebp - 0x7c]
sbb eax, eax
xor ebx, ebx
inc eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], bl
call fcn.100021cb
inc dword [ebp - 0x10]
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x10], ecx
jle 0x10040296
push 3
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.100021cb
mov dword [ebp - 0x38], 0x36b16b47
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x10], ebx
jmp 0x100403b2
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x48], 1
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], esi
jl 0x100403a4
mov dword [ebp - 0x10], ebx
jmp 0x100403cd
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0xa0], 0x1b4373c9
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], esi
jl 0x100403bc
mov dword [ebp - 0x48], ebx
cmp dword [ebp - 0x48], 0xa
jg 0x100404db
mov dword [ebp - 0x14], 0x7e8
cmp dword [ebp - 0x14], 0x939
jle 0x1004047b
mov edi, ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x2c], esi
and dword [ebp - 0x20], 0
mov eax, ebx
cdq
idiv esi
mov ebx, dword [ebp - 0x20]
mov esi, edx
mov eax, esi
cdq
idiv ebx
mov eax, edi
mov ecx, edx
shl eax, cl
lea ecx, [ebp - 0xc8]
cdq
push edx
push eax
call fcn.10002b6b
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1004042e
mov eax, dword [eax]
push eax
call fcn.10049d9f
pop ecx
push 0
push 1
lea ecx, [ebp - 0xc8]
call fcn.10017003
inc ebx
cmp ebx, 0x4e26
jl 0x1004040b
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x28]
inc esi
mov dword [ebp - 0x2c], esi
cmp esi, 0x2399
jl 0x100403fd
inc ebx
mov dword [ebp - 0x28], ebx
cmp ebx, 0x6cfe
jl 0x100403f8
inc edi
push 0
pop ebx
cmp edi, 0x1013
jl 0x100403f5
mov dword [ebp - 0x1c], 0xb8f3
cmp dword [ebp - 0x14], 0x4dc
jge 0x10040496
push str.owd_bbtmqxgok_abrxhzxg_nhcvxc_iumnalfvy_ijygrrsl_ngbw_ymfj_qka_bvmo_qhpw
call fcn.10049d9f
pop ecx
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], ebx
jmp 0x100404b0
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0xb0], 0x5309757a
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 4
jl 0x1004049f
cmp dword [ebp - 0x1c], ebx
jne 0x100404c7
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x48]
mov eax, dword [ebp - 0x38]
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa8], eax
inc dword [ebp - 0x48]
jmp 0x100403d5
lea eax, [ebp - 0x38]
mov ecx, 0x3c81
push eax
push 0x5a71
call fcn.10042c6c
cmp byte [0x1007d2ba], 0
pop ecx
pop ecx
push 2
pop edi
jne 0x100405eb
push 1
lea ecx, [ebp - 0x70]
call fcn.1000216e
mov dword [ebp - 4], 8
lea eax, [ebp - 0x94]
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x50], 0x25996fd0
xor dl, dl
mov dword [ebp - 0x3c], 0x37f5e175
push eax
call fcn.10040d6c
pop ecx
lea eax, [ebp - 0x70]
push eax
push ecx
push 0x360a
push ecx
push ecx
push ebx
push 0x1973
push 0x2594
push 0x55c
push 0x2ae7
lea edx, [ebp - 0x18]
mov ecx, 0xa82
call fcn.1003ff67
add esp, 0x28
mov dword [ebp - 0x18], 0x13
jmp 0x100405c2
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x10], ebx
jmp 0x100405b9
push 0x36b3
push ecx
lea eax, [ebp - 0x70]
mov dword [ebp - 0x4c], 0xffffffff
push eax
push ecx
push ecx
push 1
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x54], edi
push eax
lea eax, [ebp - 0x18]
mov edx, 0x532e
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x50]
call fcn.1003ff67
add esp, 0x28
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0xfffffff0
jl 0x1004057e
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0xfffffffb
jne 0x10040572
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.100021cb
push ecx
push ecx
mov edx, 0x1007d470
xor cl, cl
call fcn.10040dc4
pop ecx
pop ecx
mov byte [0x1007d2ba], 1
mov eax, dword [0x1007d470]
cmp eax, 0x270
jne 0x10040637
mov edx, 0x1007d478
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, 0x1007de38
jl 0x100405fc
jmp 0x10040643
cmp eax, 0x4e0
jb 0x10040648
call fcn.10042fde
mov eax, dword [0x1007d470]
mov edx, dword [eax*4 + 0x1007d474]
inc eax
mov dword [0x1007d470], eax
mov eax, edx
shr eax, 0xb
and eax, dword [0x1007e7f4]
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 + 0x14]
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret