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

Disassembly:
push esi
mov esi, esp
sub esp, 0x68
mov eax, dword [0x1002d178]
xor eax, esi
mov dword [esi - 4], eax
xor ecx, ecx
xor edx, edx
inc ecx
mov dword [esi - 0x1c], ecx
push ebp
xor eax, eax
mov dword [esi - 0x24], eax
mov dword [esi - 0x18], eax
push edi
push 2
pop ebp
mov dword [esi - 0x38], ebp
mov dword [esi - 0x34], ecx
mov dword [esi - 0x20], 0xcf54ceaa
mov dword [esi - 0x30], 0xa59f7c1a
mov ecx, dword [esi - 0x1c]
mov ecx, dword [esi - 0x1c]
mov edi, dword [esi - 0x1c]
cmp ecx, edi
setge dl
mov dword [esi - 0x24], edx
mov eax, dword [esi - 0x1c]
mov eax, dword [esi - 0x24]
dec eax
je 0x10007186
mov dword [esi - 0x24], 0xf3de0369
mov dword [esi - 0x38], 0x780ca9f8
mov eax, dword [esi - 0x24]
xor edi, edi
mov dword [esi - 0x38], eax
inc edi
jmp 0x100072a2
mov dword [esi - 0x34], 0x8787d636
xor ecx, ecx
mov dword [esi - 0x24], 0x5a2e712c
mov dword [esi - 0x18], ecx
jmp 0x100071a9
mov eax, dword [esi - 0x18]
mov dword [esi + eax*4 - 0x40], 0xffffffff
inc dword [esi - 0x18]
cmp dword [esi - 0x18], ebp
jl 0x1000719b
mov dword [esi - 0x1c], ecx
xor edi, edi
inc edi
cmp dword [esi - 0x1c], 0x33
jl 0x1000726b
mov dword [esi - 0x28], 0xbdfadf62
mov dword [esi - 0x18], 0xffffffff
mov eax, dword [esi - 0x28]
mov dword [esi - 0x18], eax
cmp dword [esi - 0x18], ecx
je 0x100071da
mov edx, dword [esi - 0x34]
mov ecx, dword [esi - 0x34]
xor eax, eax
mov edx, dword [esi - 0x1c]
mov edx, dword [esi - 0x34]
mov edx, dword [esi - 0x34]
cmp ecx, edx
setne al
mov dword [esi - 0x24], eax
xor edx, edx
mov eax, dword [esi - 0x24]
sub eax, 0xfffa
mov dword [esi - 0x3c], eax
mov ecx, dword [esi - 0x28]
mov eax, dword [esi - 0x1c]
mov eax, dword [esi - 0x38]
cmp ecx, eax
setge dl
cmp dword [esi - 0x28], edx
jle 0x10007226
xor ecx, ecx
mov byte [esi - 0x29], cl
cmp byte [esi - 0x29], cl
je 0x10007263
push ecx
push ecx
push ecx
push ecx
call dword [sym.imp.GDI32.dll_MoveToEx]
jmp 0x10007261
mov dword [esi - 0x18], 4
mov dword [esi - 0x30], 0x617092ff
mov edx, dword [esi - 0x18]
mov ecx, dword [esi - 0x28]
cmp dword [esi - 0x38], ecx
jl 0x10007242
mov ecx, dword [esi - 0x28]
xor eax, eax
mov dword [esi - 0x18], edi
mov edx, dword [esi - 0x18]
mov edx, dword [esi - 0x28]
mov edx, dword [esi - 0x40]
mov ecx, dword [esi - 0x3c]
mov ecx, dword [esi - 0x18]
mov ecx, dword [esi - 0x18]
cmp edx, ecx
setl al
mov dword [esi - 0x30], eax
xor ecx, ecx
inc dword [esi - 0x1c]
jmp 0x100071b4
mov edx, dword [esi - 0x3c]
mov dword [esi - 0x18], edx
mov eax, dword [esi - 0x18]
mov dword [esi - 0x34], eax
mov edx, dword [esi - 0x34]
neg edx
sbb edx, edx
neg edx
cmp edx, dword [esi - 0x20]
jl 0x1000728f
mov edx, dword [esi - 0x3c]
mov edx, ecx
cmp dword [esi - 0x1c], ecx
je 0x10007291
mov edx, edi
xor ecx, ecx
mov eax, dword [esi - 0x38]
cmp edx, eax
setg cl
imul ecx, dword [esi - 0x24]
mov dword [esi - 0x30], ecx
mov eax, dword [0x10033918]
test al, 1
jne 0x100072c4
or dword [0x10033914], 0xffffffff
push ecx
or eax, edi
push 0x1571
mov dword [0x10033918], eax
call fcn.100079f6
push 3
lea ecx, [esi - 0x54]
call fcn.10005bc8
xor edx, edx
mov dword [esi - 0x1c], edx
mov dword [esi - 0x18], edx
jmp 0x100072e4
mov ecx, dword [esi - 0x18]
mov eax, dword [esi - 0x54]
mov dword [eax + ecx*4], edi
inc dword [esi - 0x18]
cmp dword [esi - 0x18], 3
jl 0x100072d8
mov dword [esi - 0x1c], ebp
cmp dword [esi - 0x1c], edx
jl 0x1000731d
mov dword [esi - 0x34], 0x9aed23b6
mov dword [esi - 0x34], ebp
cmp dword [esi - 0x34], edx
jl 0x10007318
mov byte [esi - 0x29], dl
cmp byte [esi - 0x29], 0
je 0x10007313
push edx
call dword [sym.imp.USER32.dll_HideCaret]
xor edx, edx
dec dword [esi - 0x34]
jns 0x10007301
dec dword [esi - 0x1c]
jns 0x100072f2
push 0xfffffffffffffff4
mov dword [esi - 0x1c], edx
pop edi
jmp 0x100073c2
mov dword [esi - 0x20], 0xfffffffd
mov dword [esi - 0x18], edx
jmp 0x10007342
mov eax, dword [esi - 0x18]
mov dword [esi + eax*4 - 0x14], 0xdd1d8f8f
inc dword [esi - 0x18]
cmp dword [esi - 0x18], 4
jl 0x10007334
mov dword [esi - 0x10], edx
cmp dword [esi - 0x10], 0xc
jg 0x100073bf
mov ebp, dword [esi - 0x54]
mov dword [esi - 0x24], 2
mov dword [esi - 0x20], 0xc4df8e3b
cmp dword [esi - 0x10], edx
je 0x1000736a
mov eax, dword [esi - 0x24]
mov eax, dword [esi - 0x10]
cmp dword [esi - 8], 0xfffffff9
push 0
sbb eax, eax
neg eax
sub eax, 0x97b09b37
neg eax
sbb eax, eax
xor ecx, ecx
inc eax
cmp dword [ebp + 4], eax
setle cl
mov eax, dword [esi - 0x10]
mov dword [esi - 0x20], ecx
xor ecx, ecx
cmp eax, 0x981f
mov eax, dword [esi - 0x24]
setle cl
xor edx, edx
cmp ecx, dword [esi - 0x20]
setl dl
xor ecx, ecx
cmp edx, eax
setg cl
pop edx
mov dword [esi - 0x20], ecx
mov dword [esi - 0x20], 0xfffffffd
inc dword [esi - 0x10]
cmp dword [esi - 0x10], 0xc
jle 0x10007354
dec dword [esi - 0x1c]
cmp dword [esi - 0x1c], edi
jle 0x10007328
lea ecx, [esi - 0x54]
call fcn.10005c4a
mov dword [esi - 0x1c], 0xdf98
xor ebp, ebp
mov dword [esi - 0x28], 0xffffffff
mov dword [esi - 0x18], 0xcbcb1a7a
mov dword [esi - 0x24], 0xfffffff9
mov dword [esi - 0x20], 0x84255ebd
mov dword [esi - 0x30], 1
mov dword [esi - 0x28], ebp
jmp 0x10007412
mov eax, dword [esi - 0x28]
mov dword [esi + eax*4 - 0x48], 0x628405ce
inc dword [esi - 0x28]
cmp dword [esi - 0x28], 2
jl 0x10007404
cmp dword [esi - 0x1c], ebp
jne 0x10007456
mov edx, ebp
mov dword [esi - 0x28], edx
xor eax, eax
mov edx, dword [esi - 0x1c]
mov ecx, dword [esi - 0x28]
cmp ecx, edx
mov edx, dword [esi - 0x1c]
setg al
xor ecx, ecx
sub eax, dword [esi - 0x1c]
cmp eax, edx
setge cl
mov eax, dword [esi - 0x1c]
xor edx, edx
cmp ecx, eax
setge dl
mov dword [esi - 0x44], edx
mov dword [esi - 0x18], edx
cmp dword [esi - 0x18], ebp
je 0x10007456
xor eax, eax
inc eax
jmp 0x10007458
mov eax, ebp
mov dword [esi - 0x24], eax
mov eax, dword [esi - 0x24]
mov dword [esi - 0x20], eax
mov dword [esi - 0x28], 0x13
jmp 0x100074e7
mov dword [esi - 0x38], 0xefc1
mov dword [esi - 0x1c], 7
jmp 0x100074de
xor eax, eax
mov dword [esi - 0x24], 0xf914a126
mov ecx, dword [esi - 0x30]
mov edx, dword [esi - 0x48]
mov edx, dword [esi - 0x44]
mov ecx, dword [esi - 0x24]
mov ecx, dword [esi - 0x18]
mov ecx, dword [esi - 0x24]
mov ecx, dword [esi - 0x18]
cmp edx, ecx
setl al
xor ecx, ecx
cmp eax, 4
setne cl
mov dword [esi - 0x20], ecx
xor ecx, ecx
mov eax, dword [esi - 0x38]
cmp eax, 0x6565
setg cl
mov eax, dword [esi - 0x24]
xor edx, edx
cmp ecx, dword [esi - 0x20]
setl dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [esi - 0x38]
setne cl
mov dword [esi - 0x20], ecx
xor ecx, ecx
cmp dword [esi - 0x20], eax
setge cl
sub ecx, dword [esi - 0x18]
mov dword [esi - 0x18], ecx
inc dword [esi - 0x1c]
cmp dword [esi - 0x1c], 0x18
jge 0x1000747a
dec dword [esi - 0x28]
cmp dword [esi - 0x28], edi
jle 0x1000746a
cmp byte [0x1003256a], 0
jne 0x10007584
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.100079f6
mov dword [esi - 0x20], 0xea75c96d
mov dword [esi - 0x20], ebp
lea ecx, [esi - 0x60]
xor edi, edi
inc edi
mov dword [esi - 0x20], 0xb108f825
mov dword [esi - 0x20], 0x2d4ea680
mov dword [esi - 0x20], 0xfffffffc
mov dword [esi - 0x20], 0xd65121ac
mov dword [esi - 0x18], edi
mov dword [esi - 0x20], 0x1d21f1eb
push edi
call fcn.10005bc8
mov dword [esi - 0x18], ebp
jmp 0x1000755b
mov eax, dword [esi - 0x18]
mov ecx, dword [esi - 0x60]
mov dword [ecx + eax*4], 0x6ec17e5c
inc dword [esi - 0x18]
cmp dword [esi - 0x18], edi
jl 0x1000754b
mov eax, dword [esi - 0x60]
inc dword [eax]
mov dword [esi - 0x18], ebp
jmp 0x10007570
mov dword [esi - 0x20], edi
inc dword [esi - 0x18]
cmp dword [esi - 0x18], ebp
jle 0x1000756a
lea ecx, [esi - 0x60]
call fcn.10005c4a
mov byte [0x1003256a], 1
mov dword [esi - 0x20], 0x61f9c28a
mov dword [esi - 0x30], 0x29be1d92
mov dword [esi - 0x30], 0xfffffffd
mov dword [esi - 0x30], 0x887cf2e5
mov dword [esi - 0x30], ebp
mov dword [esi - 0x30], 0x2285faaf
mov dword [esi - 0x30], ebp
mov dword [esi - 0x24], 0xb972
pop edi
mov dword [esi - 0x18], ebp
pop ebp
jmp 0x100075c9
mov eax, dword [esi - 0x18]
mov dword [esi + eax*4 - 0x68], 1
inc dword [esi - 0x18]
cmp dword [esi - 0x18], 2
jl 0x100075bb
mov eax, dword [esi - 0x20]
mov dword [esi - 0x30], eax
dec dword [esi - 0x24]
mov eax, dword [0x10032590]
cmp eax, 0x270
jne 0x10007624
mov edx, 0x10032598
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, 0x10032f58
jl 0x100075e9
jmp 0x10007630
cmp eax, 0x4e0
jb 0x10007635
call fcn.10007a31
mov eax, dword [0x10032590]
mov ecx, dword [eax*4 + 0x10032594]
inc eax
mov dword [0x10032590], eax
mov eax, ecx
shr eax, 0xb
and eax, dword [0x10033914]
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 ecx, dword [esi - 4]
xor ecx, esi
call fcn.100171e4
mov esp, esi
pop esi
ret