Function at 0x1001fda0
Capabilities:
Check for peb ntglobalflag flag
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061c68
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x1007a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 7
xor ebx, ebx
xor ecx, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x5c], esi
mov word [esi], cx
mov dword [ebp - 4], ebx
xor edx, edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], ebx
mov word [esi + 0x1c], dx
mov dword [esi + 0x4c], eax
mov dword [esi + 0x48], ebx
mov word [esi + 0x38], cx
mov dword [esi + 0x68], eax
mov dword [esi + 0x64], ebx
mov word [esi + 0x54], dx
mov dword [esi + 0x84], eax
mov dword [esi + 0x80], ebx
mov word [esi + 0x70], cx
mov dword [esi + 0xa0], eax
mov dword [esi + 0x9c], ebx
mov word [esi + 0x8c], dx
mov dword [esi + 0xbc], eax
xor eax, eax
mov dword [esi + 0xb8], ebx
mov word [esi + 0xa8], ax
lea edi, [esi + 0xc4]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xd8], ebx
mov dword [esi + 0xdc], ebx
lea eax, [esi + 0xe4]
mov byte [ebp - 4], 8
call fcn.100077d0
push 0x58
mov dword [esi + 0x1474], ebx
call fcn.10046eee
add esp, 4
cmp eax, ebx
je 0x10020230
mov dword [esi + 0x1470], eax
mov dword [eax], eax
mov eax, dword [esi + 0x1470]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x1470]
mov dword [eax + 8], eax
mov ecx, dword [esi + 0x1470]
mov byte [ecx + 0x54], 1
mov edx, dword [esi + 0x1470]
mov byte [edx + 0x55], 1
mov byte [ebp - 4], 9
push 0x48
mov dword [esi + 0x1484], ebx
call fcn.10046eee
add esp, 4
cmp eax, ebx
je 0x1002020c
mov dword [esi + 0x1480], eax
mov dword [eax], eax
mov eax, dword [esi + 0x1480]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x1480]
mov dword [eax + 8], eax
mov eax, dword [esi + 0x1480]
mov byte [eax + 0x44], 1
mov ecx, dword [esi + 0x1480]
mov byte [ecx + 0x45], 1
mov byte [ebp - 4], 0xa
push 0x48
mov dword [esi + 0x1494], ebx
call fcn.10046eee
add esp, 4
cmp eax, ebx
je 0x100201e8
mov dword [esi + 0x1490], eax
mov dword [eax], eax
mov eax, dword [esi + 0x1490]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x1490]
mov dword [eax + 8], eax
mov edx, dword [esi + 0x1490]
mov byte [edx + 0x44], 1
mov eax, dword [esi + 0x1490]
mov byte [eax + 0x45], 1
mov byte [ebp - 4], 0xb
push 0x48
mov dword [esi + 0x14a4], ebx
call fcn.10046eee
add esp, 4
cmp eax, ebx
je 0x100201c4
mov dword [esi + 0x14a0], eax
mov dword [eax], eax
mov eax, dword [esi + 0x14a0]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x14a0]
mov dword [eax + 8], eax
mov ecx, dword [esi + 0x14a0]
mov byte [ecx + 0x44], 1
mov edx, dword [esi + 0x14a0]
mov byte [edx + 0x45], 1
push 1
push 0x1006f14c
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.10008dc0
push 1
push 0x1006f150
lea ecx, [esi + 0x1c]
call fcn.10008dc0
push 7
xor eax, eax
push 0x1006f154
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
call fcn.10008dc0
mov dword [ebp - 0x14], 3
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xd
call fcn.1002aec0
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x1c], 8
jb 0x1001fff6
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.10046e92
add esp, 4
push 7
xor edx, edx
push str.letters
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], dx
call fcn.10008dc0
mov dword [ebp - 0x14], 4
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xe
call fcn.1002aec0
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x1c], 8
jb 0x1002003e
mov eax, dword [ebp - 0x30]
push eax
call fcn.10046e92
add esp, 4
xor ecx, ecx
push 9
mov word [ebp - 0x30], cx
push str.dict_word
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
call fcn.10008dc0
mov dword [ebp - 0x14], 5
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xf
call fcn.1002aec0
mov edi, 8
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x1c], edi
jb 0x1002008a
mov edx, dword [ebp - 0x30]
push edx
call fcn.10046e92
add esp, 4
push str.var:
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.10009480
add esp, 0xc
push eax
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 0x10
call fcn.10008160
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x18], edi
jb 0x100200be
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10046e92
add esp, 4
push str.out:
lea edx, [ebp - 0x2c]
push esi
push edx
call fcn.10009480
add esp, 0xc
push eax
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 0x11
call fcn.10008160
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x18], edi
jb 0x100200f2
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10046e92
add esp, 4
push str.var_out:
lea ecx, [ebp - 0x2c]
push esi
push ecx
call fcn.10009480
add esp, 0xc
push eax
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 0x12
call fcn.10008160
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x18], edi
jb 0x10020126
mov edx, dword [ebp - 0x2c]
push edx
call fcn.10046e92
add esp, 4
push 1
push 0x1006f1b4
lea ecx, [esi + 0x8c]
call fcn.10008dc0
push 1
push 0x1006f1b8
lea ecx, [esi + 0xa8]
call fcn.10008dc0
lea eax, [ebp - 0x58]
push eax
call fcn.10049ed0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add edi, dword [ebp - 0x58]
mov ecx, 1
add eax, edi
mov dword [esi + 0xe8], eax
lea edx, [esi + 0xec]
lea ebx, [ebx]
mov edi, eax
shr edi, 0x1e
xor eax, edi
imul eax, eax, 0x6c078965
add eax, ecx
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, 0x270
jl 0x10020180
mov dword [esi + 0xe4], 0x270
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004677e
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], ebx
call fcn.10046815
push 0x10073888
lea edx, [ebp - 0x44]
push edx
mov dword [ebp - 0x44], vtable.std::bad_alloc.0
call fcn.1004a731
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x38], ebx
call fcn.10046815
push 0x10073888
lea ecx, [ebp - 0x50]
push ecx
mov dword [ebp - 0x50], vtable.std::bad_alloc.0
call fcn.1004a731
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], ebx
call fcn.10046815
push 0x10073888
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], vtable.std::bad_alloc.0
call fcn.1004a731
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x38], ebx
call fcn.10046815
push 0x10073888
lea edx, [ebp - 0x50]
push edx
mov dword [ebp - 0x50], vtable.std::bad_alloc.0
call fcn.1004a731
int3