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

Disassembly:
mov eax, 0x1005ae30
call fcn.10059bf8
sub esp, 0x9c
mov byte [ebp - 0x38], dl
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
test cl, cl
je 0x1002f493
cmp byte [ebp + 8], 0
je 0x1002f45b
push 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
jmp 0x1002fb3d
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esi], ebx
jmp 0x1002f48a
mov dword [ebp - 0x18], 0x87c2657a
inc dword [ebp - 0x18]
mov byte [ebp - 0x2e], bl
cmp byte [ebp - 0x2e], bl
je 0x1002f488
push ecx
push ecx
push 0x50ae
push ebx
push ecx
push ecx
call fcn.1002fd08
add esp, 0x18
inc dword [esi]
cmp dword [esi], ebx
jle 0x1002f464
jmp 0x1002fb3d
xor ebx, ebx
test dl, dl
je 0x1002f4a6
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetCommState]
jmp 0x1002fb3d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x14], ebx
jmp 0x1002f4c2
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x98], 0xfffffffd
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jl 0x1002f4b1
mov dword [ebp - 0x14], ebx
jmp 0x1002f4db
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x74], 0x34504cd4
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jl 0x1002f4cd
mov dword [ebp - 0x6c], ebx
jmp 0x1002f4f7
mov eax, dword [ebp - 0x6c]
mov dword [ebp + eax*4 - 0x98], 0xffffffff
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 3
jl 0x1002f4e6
mov eax, dword [0x1007558c]
xor ecx, ecx
inc ecx
test cl, al
jne 0x1002f54d
or eax, ecx
mov edx, 0x1571
or dword [0x10076914], 0xffffffff
mov esi, ecx
mov dword [0x1007558c], eax
mov dword [0x10075594], edx
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
mov dword [esi*4 + 0x10075594], edx
inc esi
cmp esi, 0x270
jl 0x1002f524
mov dword [0x10075590], 0x270
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], 0x11738ab6
mov dword [ebp - 0x14], ebx
jmp 0x1002f56a
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x7c], 0xae355683
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jl 0x1002f55c
mov dword [ebp - 0x14], ebx
jmp 0x1002f5a0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x2d]
push 0x67dc
push ebx
push ebx
mov eax, dword [ebp + eax*4 - 0x7c]
push ecx
mov dword [ebp - 0x24], eax
mov ecx, 0x2299
mov byte [ebp - 0x2d], bl
call fcn.10030d33
add esp, 0x10
xor ecx, ecx
inc dword [ebp - 0x14]
inc ecx
cmp dword [ebp - 0x14], ecx
jle 0x1002f575
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], 0x8cccddd
mov dword [ebp - 0x3c], 0x5b2906c9
mov dword [ebp - 0x4c], 0xffffffff
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x1c], 0x17b722ba
mov dword [ebp - 0x24], 0x7569
cmp dword [ebp - 0x24], 0x786a
jle 0x1002f639
mov esi, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], 0x41dc
mov edi, ebx
mov dword [ebp - 0x1c], ebx
mov ebx, esi
mov esi, dword [ebp - 0x1c]
xor ebx, edi
mov eax, ebx
mov ecx, 0x10073e38
or eax, esi
cdq
push edx
push eax
call fcn.10001ae9
inc esi
cmp esi, 0x56fd
jl 0x1002f5f8
mov esi, dword [ebp - 0x18]
inc edi
push 0
pop ebx
cmp edi, 0x810
jl 0x1002f5ee
dec esi
dec dword [ebp - 0x20]
mov dword [ebp - 0x18], esi
jne 0x1002f5ec
mov esi, dword [ebp - 0x14]
inc esi
mov dword [ebp - 0x14], esi
cmp esi, 0x5e22
jl 0x1002f5e2
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x24], 0x7387
jge 0x1002f654
mov edx, str.gzxi_mto_scfzyix_hsl_sfjeu
mov ecx, 0x10073e38
call fcn.100034b8
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], ebx
jmp 0x1002f690
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0xa8], 1
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jl 0x1002f67f
mov dword [ebp - 0x14], ebx
jmp 0x1002f6a9
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x58], 0xfffffff6
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jl 0x1002f69b
push 1
push ebx
push ebx
lea eax, [ebp - 0x64]
mov edx, 0x2da3
push eax
push 0x504d
push 0x4b72
push 0x7ec
push 0x7f6b
push 0x23a0
push 0x4855
lea eax, [ebp - 0x60]
mov ecx, 0x5aca
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x14e7
push 0x5d6c
lea eax, [ebp - 0x4c]
push eax
push 0x6282
call fcn.10030ed0
add esp, 0x40
xor edx, edx
dec dword [ebp - 0x54]
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x4c]
cmp ecx, eax
setl dl
neg edx
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
cmp byte [0x10075403], 0
mov dword [ebp - 0x1c], eax
jne 0x1002faa2
mov dword [ebp - 0x14], 1
xor dl, dl
mov dword [ebp - 0x5c], 0xffff
mov ecx, 0x6563
push 0x3b01
call fcn.1002fe37
pop ecx
mov dword [ebp - 0x14], 9
cmp dword [ebp - 0x14], 0x15
jne 0x1002f8e6
mov dword [ebp - 0x18], 0xcbeb9691
mov dword [ebp - 0x20], ebx
jmp 0x1002f775
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x2c], 0xffff
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 1
jl 0x1002f767
push ecx
push ecx
lea eax, [ebp - 0x2f]
mov byte [ebp - 0x2f], bl
push eax
push 1
push ecx
push ecx
call fcn.1002fd08
mov eax, dword [ebp - 0x2c]
add esp, 0x18
cmp dword [ebp - 0x14], ebx
je 0x1002f7b1
mov eax, dword [ebp - 0x2c]
imul eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x18], ebx
je 0x1002f86d
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x24], 0x4c71
cmp dword [ebp - 0x24], 0x4da4
jle 0x1002f80b
mov edi, ebx
mov esi, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebx + esi]
mov ecx, 0x10073e38
add eax, edi
cdq
push edx
push eax
call fcn.10001ae9
inc ebx
cmp ebx, 0x4563
jl 0x1002f7db
inc esi
push 0
pop ebx
cmp esi, 0x4402
jl 0x1002f7d8
inc edi
cmp edi, 0x7652
jl 0x1002f7d6
mov dword [ebp - 0x1c], 0xf0f5ebe
mov dword [ebp - 4], 2
cmp dword [ebp - 0x24], 0x4a91
jge 0x1002f831
mov edx, str.uvs_enybe_ebgykyy_rkqzke_lpacknnqc_vhputpeb_haqunlilf_gax_ogaoyal_ias_aac_lelrdckf_jgkcmkrbg
mov ecx, 0x10073e38
call fcn.100034b8
or dword [ebp - 4], 0xffffffff
push ecx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x1c], 7
call fcn.10030df2
pop ecx
jmp 0x1002f8de
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x1c], 0x8a0c0902
mov dword [ebp - 0x20], ebx
jmp 0x1002f88d
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x8c], ebx
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 3
jl 0x1002f880
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
neg ecx
sbb ecx, ecx
xor edx, edx
cmp eax, ecx
setle dl
sub edx, 8
neg edx
sbb edx, edx
inc edx
cmp edx, dword [ebp - 0x2c]
jge 0x1002f8c6
mov eax, dword [ebp - 0x84]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x84]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x776e9f81
call fcn.10030db0
inc dword [ebp - 0x14]
jmp 0x1002f751
push ecx
call fcn.1002fdd4
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x1c], 0x3b1067dc
pop ecx
mov dword [ebp - 0x18], ebx
jmp 0x1002f90a
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x48], ebx
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 3
jl 0x1002f900
mov dword [ebp - 0x48], ebx
jmp 0x1002fa91
mov dword [ebp - 0x14], ebx
jmp 0x1002f92b
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x80], 0xc3099cf
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 1
jl 0x1002f91d
mov dword [ebp - 0x14], ebx
jmp 0x1002f944
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x28], 0x16580849
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 1
jl 0x1002f936
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x28], ebx
jl 0x1002fa8e
mov dword [ebp - 0x18], 0x9b69
mov dword [ebp - 0x34], 0xfffffffb
mov dword [ebp - 0x1c], 0x2188
cmp dword [ebp - 0x1c], 0xc6c
jge 0x1002fa2a
push 0x1007503c
push 0x10075038
push str._d__d
call fcn.10041c62
mov ecx, dword [0x10075038]
add esp, 0xc
mov edi, ebx
test ecx, ecx
jle 0x1002f9bb
mov esi, 0x10075040
push esi
push 0x100662a8
call fcn.10041c62
pop ecx
pop ecx
mov ecx, dword [0x10075038]
inc edi
add esi, 4
cmp edi, ecx
jl 0x1002f9a0
mov edx, dword [0x1007503c]
mov edi, ebx
test edx, edx
jle 0x1002f9ed
mov esi, 0x10075210
push esi
push 0x100662a8
call fcn.10041c62
mov edx, dword [0x1007503c]
inc edi
pop ecx
add esi, 4
pop ecx
cmp edi, edx
jl 0x1002f9cc
mov ecx, dword [0x10075038]
mov eax, ebx
mov edi, ebx
mov dword [ebp - 0x18], eax
mov esi, ebx
test ecx, ecx
jle 0x1002fa1d
mov eax, dword [esi*4 + 0x10075210]
cmp eax, dword [edi*4 + 0x10075040]
jl 0x1002fa0c
inc esi
inc ebx
cmp esi, edx
jge 0x1002fa15
inc edi
cmp edi, ecx
jl 0x1002f9fa
mov dword [ebp - 0x18], ebx
xor ebx, ebx
mov eax, dword [ebp - 0x18]
push eax
push 0x10066360
call fcn.10041a06
pop ecx
pop ecx
mov dword [ebp - 0x1c], 0x5cf4
cmp dword [ebp - 0x40], ebx
jne 0x1002fa66
mov eax, dword [ebp - 0x34]
xor edx, edx
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp ecx, eax
setge dl
cmp dword [ebp - 0x18], edx
jle 0x1002fa57
mov eax, dword [ebp - 0x34]
mov eax, dword [ebp - 0x40]
mov eax, dword [ebp - 0x48]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x40]
mov eax, dword [ebp - 0x48]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x34]
neg edx
sbb edx, edx
xor ecx, ecx
neg edx
cmp edx, eax
setge cl
mov dword [ebp - 0x1c], ecx
dec dword [ebp - 0x28]
jns 0x1002f956
dec dword [ebp - 0x48]
cmp dword [ebp - 0x48], 0xfffffff0
jge 0x1002f918
mov byte [0x10075403], 1
mov eax, dword [0x10075590]
cmp eax, 0x270
jne 0x1002faee
mov edx, 0x10075598
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, 0x10075f58
jl 0x1002fab3
jmp 0x1002fafa
cmp eax, 0x4e0
jb 0x1002faff
call fcn.100319f5
mov eax, dword [0x10075590]
mov edx, dword [eax*4 + 0x10075594]
inc eax
mov dword [0x10075590], eax
mov eax, edx
shr eax, 0xb
and eax, dword [0x10076914]
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 - 0x50]
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