Function at 0x10004dc0
Capabilities:
Encode data using xor
Encrypt data using speck
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x1005db71
call fcn.1005d550
sub esp, 0x9c
mov byte [ebp - 0x48], cl
test cl, cl
je 0x10004de8
mov eax, dword [ebp + 0xc]
mov ecx, edx
push dword [eax]
call fcn.10006ac2
jmp 0x100053a4
push ebx
xor ecx, ecx
push edi
inc ecx
xor ebx, ebx
push 2
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x10], ebx
pop edi
jmp 0x10004e08
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x50], 0xddc85f70
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jl 0x10004dfa
mov dword [ebp - 0x50], ebx
cmp dword [ebp - 0x50], 0xfffffff0
jg 0x10004e27
call fcn.10005714
dec dword [ebp - 0x50]
cmp dword [ebp - 0x50], 0xfffffff0
jle 0x10004e16
xor ecx, ecx
inc ecx
mov dword [ebp - 0x10], ebx
jmp 0x10004e36
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x50], ecx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jl 0x10004e2c
mov eax, dword [0x1007a0c0]
test al, 1
jne 0x10004e5d
or dword [0x1007b454], 0xffffffff
or eax, ecx
push ecx
push 0x1571
mov dword [0x1007a0c0], eax
call fcn.10006ec9
push ecx
mov dword [ebp - 0x10], 0x4ec2e0cf
push ecx
mov dword [ebp - 0x38], 0x1de9829c
lea ecx, [ebp - 0x1d]
mov dword [ebp - 0x1c], 0xc7eb2367
mov byte [ebp - 0x1d], bl
push ebx
call fcn.10004be1
add esp, 0xc
mov dword [ebp - 0x10], 0xffffffed
jmp 0x10004f7b
mov dword [ebp - 0x34], 9
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x14], 0x8d9a2b82
push 1
call fcn.10001de3
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], ebx
push eax
push ecx
lea eax, [ebp - 0x98]
mov dword [ebp - 0x74], 0xe69c17f7
push eax
call fcn.10004aca
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [ebp - 0x14], eax
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
mov eax, dword [ebp - 0x98]
mov dword [eax], 1
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x34]
cmp eax, ecx
setl dl
sub edx, 5
neg edx
sbb edx, edx
inc edx
mov dword [ebp - 0x1c], edx
je 0x10004f1d
push ecx
push ecx
mov dl, 1
call fcn.1000549b
jmp 0x10004f67
mov dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x34]
add eax, ecx
mov ecx, dword [ebp - 0x18]
imul ecx, eax
neg ecx
je 0x10004f48
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
xor dl, dl
call fcn.1000450d
lea eax, [ebp - 0x74]
xor dl, dl
push 0x6692
push eax
mov ecx, 0x7138
call fcn.10005859
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x98]
call fcn.10001e40
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0xfffffffc
jg 0x10004e8f
push esi
push 4
pop esi
push esi
lea ecx, [ebp - 0xa4]
call fcn.10001de3
mov dword [ebp - 0x38], 0xf1860ec0
xor edx, edx
inc edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 0x1fdbd017
push 6
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], 0x643b8a2
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x44], 0xf0a64418
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x84], 0xffffffff
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x14], ebx
jmp 0x10004fef
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x60], 0x82062403
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jl 0x10004fe1
mov dword [ebp - 0x14], ebx
jmp 0x10005008
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xa4]
mov dword [eax + ecx*4], edx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jl 0x10004ff9
mov dword [ebp - 0x14], ebx
jmp 0x10005020
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x40], 0x968cb667
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x10005012
mov esi, dword [ebp - 0xa4]
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x14], 0xfffffffc
mov dword [ebp - 0x1c], 0x151c
mov dword [ebp - 0x8c], 0xeba6
mov dword [ebp - 0x18], 0xf4a9b836
mov dword [ebp - 0x2c], 0x1f73439d
mov dword [ebp - 0x18], ebx
jmp 0x1000506a
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x7c], ebx
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], edi
jl 0x10005060
mov eax, dword [ebp - 0x68]
dec dword [ebp - 0x68]
test eax, eax
je 0x10005111
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x24], eax
jge 0x1000509d
mov eax, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x54]
neg eax
mov eax, edx
jne 0x1000509f
mov eax, ebx
mov edx, dword [ebp - 0x10]
xor ecx, ecx
add edx, eax
mov eax, dword [ebp - 0x30]
cmp edx, eax
setg cl
cmp ecx, dword [ebp - 0x54]
jne 0x100050bd
cmp dword [ebp - 0x1c], ebx
je 0x100050bd
xor eax, eax
inc eax
jmp 0x100050bf
mov eax, ebx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
jne 0x100050ca
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x68]
xor ecx, ecx
mov eax, dword [ebp - 0x58]
test eax, eax
setns cl
xor eax, eax
cmp ecx, 0x53f2
setge al
xor ecx, ecx
cmp eax, 7
mov eax, dword [ebp - 0x78]
setge cl
xor edx, edx
cmp ecx, eax
mov eax, dword [esi + 0xc]
sete dl
xor ecx, ecx
mov eax, dword [ebp + eax*4 - 0x60]
cmp edx, eax
mov eax, dword [ebp - 0x38]
setne cl
xor edx, edx
imul eax, ecx
inc edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [esi + 0xc]
mov eax, dword [ebp + eax*4 - 0x60]
mov eax, dword [esi + 0xc]
mov eax, dword [ebp + eax*4 - 0x60]
cmp dword [ebp - 0x60], 0x53575542
je 0x1000512f
mov eax, ebx
cmp dword [ebp - 0x30], ebx
je 0x10005131
mov eax, edx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x2c], ebx
jne 0x100051db
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x78]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
mov eax, dword [esi + 0xc]
cmp dword [ebp + eax*4 - 0x60], ebx
jne 0x1000515d
cmp dword [ebp - 0x2c], ebx
je 0x10005162
cmp dword [ebp - 0x38], ebx
jne 0x10005164
mov edx, ebx
mov eax, dword [ebp - 0x84]
xor ecx, ecx
cmp edx, eax
setg cl
xor eax, eax
cmp ecx, 0x7548
setle al
xor edx, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x18]
cmp eax, ecx
setl dl
xor ecx, ecx
imul edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
cmp edx, eax
mov eax, dword [esi + 0xc]
setle cl
imul ecx, dword [ebp + eax*4 - 0x60]
imul eax, ecx, 0xd177
add eax, 0x84459954
cmp eax, dword [ebp - 0x14]
jle 0x100051bc
cmp dword [ebp - 0x40], ebx
je 0x100051bc
xor edx, edx
inc edx
jmp 0x100051be
mov edx, ebx
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
cmp edx, eax
setl cl
xor edx, edx
sub ecx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
mov eax, ebx
je 0x100051dd
mov eax, edx
inc dword [esi + 0xc]
cmp dword [esi + 0xc], 3
mov dword [ebp - 0x78], eax
jle 0x1000502e
mov dword [ebp - 0x14], 3
pop esi
cmp dword [ebp - 0x14], ebx
jl 0x1000526f
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], ebx
jl 0x1000526a
mov eax, dword [ebp - 0x10]
xor edx, edx
mov eax, dword [ebp + eax*4 - 0x40]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x40]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x40]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + eax*4 - 0x40]
mov eax, dword [ebp - 0x44]
cmp ecx, eax
mov eax, dword [ebp - 0x10]
sete dl
cmp edx, dword [ebp + eax*4 - 0x40]
jle 0x1000524b
cmp dword [ebp - 0x24], ebx
jne 0x1000524b
xor edx, edx
inc edx
jmp 0x1000524d
mov edx, ebx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov eax, dword [ebp + eax*4 - 0x40]
cmp eax, edx
mov eax, dword [ebp - 0x10]
sete cl
mov dword [ebp + eax*4 - 0x40], ecx
dec dword [ebp - 0x10]
jns 0x10005209
xor edx, edx
inc edx
dec dword [ebp - 0x14]
jns 0x100051fa
lea ecx, [ebp - 0xa4]
call fcn.10001e40
cmp byte [0x1007a034], 0
jne 0x100052d2
xor ecx, ecx
mov dword [ebp - 0x18], ebx
inc ecx
jmp 0x10005295
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x28], ecx
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], ecx
jl 0x1000528b
mov dword [ebp - 0x28], ebx
jmp 0x100052ae
mov dword [ebp - 0x44], 0x69aed23b
cmp dword [ebp - 0x44], ebx
jne 0x100052b4
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0x1b
je 0x1000529f
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.10006ec9
push ecx
push ecx
push 1
mov edx, 0x1007a034
call fcn.100044be
add esp, 0xc
push ecx
push 0x3e49
push 0x59ee
push 1
mov dl, 1
mov dword [ebp - 0x88], edi
xor cl, cl
call fcn.1000453b
push ebx
push 0x74b3
mov edx, 0x6d83
lea ecx, [ebp - 0x88]
call fcn.10004d30
mov eax, dword [0x1007a0d0]
add esp, 0x18
pop edi
pop ebx
cmp eax, 0x270
jne 0x10005355
mov edx, 0x1007a0d8
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, 4
cmp edx, 0x1007aa98
jl 0x1000531a
jmp 0x10005361
cmp eax, 0x4e0
jb 0x10005366
call fcn.10006f04
mov eax, dword [0x1007a0d0]
mov edx, dword [eax*4 + 0x1007a0d4]
inc eax
mov dword [0x1007a0d0], eax
mov eax, edx
shr eax, 0xb
and eax, dword [0x1007b454]
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 + 8]
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret