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

Disassembly:
mov eax, 0x10057e68
call fcn.10056dd0
sub esp, 0x84
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], esp
cmp byte [ebp + 0x14], bl
je 0x100288c9
lea edi, [ebp + 0x10]
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], ebx
mov byte [ebp - 0x78], bl
lea eax, [ebp - 0x78]
mov dword [ebp - 4], ebx
push eax
mov eax, edi
mov ecx, 0x51a1
push 1
push eax
call fcn.100285f0
mov eax, dword [0x100732b0]
add esp, 0xc
test al, 1
jne 0x100287a4
or eax, 1
mov dword [0x100732b0], eax
push 0x8de7
mov byte [ebp - 4], 1
call fcn.10003fed
mov byte [0x100732b4], al
mov byte [ebp - 4], bl
mov eax, dword [0x100732b0]
pop ecx
test al, 2
jne 0x100287c7
or eax, 2
mov dword [0x100732b0], eax
push 0xc17f
mov byte [ebp - 4], 2
call fcn.10003fed
pop ecx
mov byte [0x100732a8], al
mov byte [ebp - 4], bl
mov esi, ebx
mov dword [ebp - 0x14], ebx
cmp esi, dword [edi]
jae 0x100288a5
call fcn.10026c00
push 0x34
pop ecx
xor edx, edx
div ecx
push 0x100732b4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], edx
push eax
push ecx
push 1
lea eax, [ebp - 0x78]
mov edx, 0x301b
push eax
push 0x100732a8
push 0x7048
push ecx
mov ecx, 0x2bca
call fcn.100286c5
mov dword [ebp - 0x1c], 0xbd3
add esp, 0x20
cmp dword [ebp - 0x1c], 0xc7e
jle 0x10028885
mov esi, ebx
mov edi, ebx
mov ecx, ebx
mov dword [ebp - 0x20], ebx
mov eax, edi
cdq
idiv ecx
lea ecx, [ebp - 0x90]
lea eax, [esi + edx]
cdq
push edx
push eax
call fcn.10001a7f
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10028849
mov eax, dword [eax]
push eax
call fcn.10040493
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x90]
call fcn.1000c5c5
mov ecx, dword [ebp - 0x20]
inc ecx
mov dword [ebp - 0x20], ecx
cmp ecx, 0x7dca
jl 0x10028829
inc edi
cmp edi, 0x5c73
jl 0x10028824
inc esi
cmp esi, 0x4b47
jl 0x10028822
mov esi, dword [ebp - 0x14]
lea edi, [ebp + 0x10]
cmp dword [ebp - 0x1c], 0x84d
jge 0x10028899
push str.awkn_bhhyvy_apum_lmxvzati_eznwmz_osojb
call fcn.10040493
pop ecx
inc esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], esi
jmp 0x100287cc
lea eax, [ebp - 0x78]
cmp dword [ebp + 0xc], eax
je 0x100288b9
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
push eax
call fcn.1000c818
push ebx
push 1
lea ecx, [ebp - 0x78]
call fcn.1000c953
jmp 0x10028d6a
mov dword [ebp - 0x20], 0x8dcfd8f2
mov dword [ebp - 0x20], 0x8e10d32d
mov dword [ebp - 0x20], 0x5e4bc795
mov dword [ebp - 0x14], ebx
jmp 0x100288f1
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x18], 0xbacd7953
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 1
jl 0x100288e3
push 3
mov dword [ebp - 0x14], ebx
pop esi
jmp 0x1002890d
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x38], 0xfffffff6
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jl 0x100288ff
mov dword [ebp - 0x14], ebx
jmp 0x10028925
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x50], 0x3888ad88
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jl 0x10028917
mov eax, dword [ebp - 0x18]
xor edx, edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
mov ecx, dword [ebp - 0x18]
setl dl
xor eax, eax
cmp edx, 0x3623
setle al
imul ecx, dword [ebp - 0x18]
sub ecx, eax
mov eax, dword [ebp - 0x34]
neg ecx
sbb ecx, ecx
xor edx, edx
neg ecx
add ecx, eax
mov eax, dword [ebp - 0x18]
cmp ecx, eax
mov eax, dword [ebp - 0x18]
setne dl
xor ebx, ebx
cmp edx, eax
mov eax, dword [ebp - 0x30]
setge bl
xor ecx, ecx
cmp ebx, eax
setg cl
xor ebx, ebx
cmp ecx, 0x8ee3
jl 0x10028989
cmp dword [ebp - 0x18], ebx
je 0x10028993
cmp dword [ebp - 0x34], ebx
je 0x10028993
xor eax, eax
inc eax
jmp 0x10028995
mov eax, ebx
mov dword [ebp - 0x20], eax
xor ecx, ecx
mov eax, dword [ebp - 0x20]
cmp eax, 0x2b622b60
push 4
setge cl
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
neg eax
pop edi
sbb eax, eax
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x4c], eax
mov eax, dword [0x100732b0]
test al, 4
jne 0x10028a0d
or dword [0x100732a4], 0xffffffff
or eax, edi
mov ecx, 0x1571
mov dword [0x100732b0], eax
xor edx, edx
mov dword [0x10071f24], ecx
inc edx
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [edx*4 + 0x10071f24], ecx
inc edx
cmp edx, 0x270
jl 0x100289e4
mov dword [0x10071f20], 0x270
push 0x1e16
push ecx
push 0x7939
push 0x78bd
push 0x724e
push ecx
xor cl, cl
call fcn.10027503
mov dword [ebp - 0x1c], 6
add esp, 0x18
mov dword [ebp - 0x14], 0xecd
cmp dword [ebp - 0x14], 0xf60
jle 0x10028aa2
mov edi, ebx
mov dword [ebp - 0x1c], ebx
mov esi, ebx
mov eax, ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
add eax, esi
mov ecx, 0x10070c18
add eax, ebx
and eax, edi
cdq
push edx
push eax
call fcn.1000bb2c
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, 0x5788
jl 0x10028a53
inc esi
push 0
pop ebx
cmp esi, 0x5594
jl 0x10028a4b
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, 0x6349
jl 0x10028a49
inc edi
cmp edi, 0x69f5
jl 0x10028a46
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 4
pop edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 5
cmp dword [ebp - 0x14], 0xbd5
jge 0x10028ac4
mov edx, str.fzvhuq_nqg_siaovtw_hafyrvcze_ogonmcsv_vvhcnhf_ztosgt_hcpdfodrg_voqw_qhhwvu_kttuvl
mov ecx, 0x10070c18
call fcn.1000e878
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x1c], ebx
jmp 0x10028b07
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x2c], 0x110c93b4
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 2
jl 0x10028af9
mov dword [ebp - 0x2c], 0x1c
jmp 0x10028bbb
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x14], ebx
je 0x10028b99
cmp dword [ebp - 0x2c], ebx
je 0x10028b29
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
sub edx, 0xf59e
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, eax
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x20]
setl cl
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp - 0x14]
setge dl
add esi, edx
neg esi
sbb esi, esi
xor ecx, ecx
neg esi
cmp eax, esi
setge cl
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
imul ecx, eax
mov eax, dword [ebp - 0x14]
add eax, ecx
xor ecx, ecx
cmp eax, 0xbc40
setl cl
cmp ecx, 6
jae 0x10028b8f
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x14], ebx
je 0x10028b99
xor ecx, ecx
inc ecx
jmp 0x10028b9b
mov ecx, ebx
mov eax, dword [ebp - 0x2c]
xor edx, edx
sub ecx, eax
mov eax, dword [ebp - 0x14]
cmp ecx, 0x656540f2
setle dl
xor ecx, ecx
cmp edx, eax
setge cl
mov dword [ebp - 0x1c], ecx
dec dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0xffffffe9
je 0x10028b19
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], ebx
jl 0x10028c0f
push 1
push 0x5f6f
push ebx
mov dword [ebp - 0x14], ebx
mov edx, 0x1695
mov dword [ebp - 0x20], edi
mov ecx, 0x5140
push 0x3e39
call fcn.10026fc5
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov eax, dword [ebp - 0x14]
add esp, 0x10
cmp eax, ecx
mov eax, dword [ebp - 0x1c]
setl dl
mov dword [ebp + eax*4 - 0x2c], edx
dec dword [ebp - 0x1c]
jns 0x10028bd1
cmp byte [0x10071d71], 0
jne 0x10028c6b
push 0x10071f20
push 0x6217
push 1
push 0x43cd
push 0x2d40
push 1
push 0x38be
mov edx, 0x1002
xor cl, cl
call fcn.1002700a
push 0x2bfb
push 0x6124
push ebx
push 0x373f
push 0x10071d71
push ebx
push 0x1e0b
mov edx, 0x21ba
mov cl, 1
call fcn.1002700a
add esp, 0x38
push edi
lea ecx, [ebp - 0x44]
call fcn.1000be0e
mov dword [ebp - 0x14], ebx
jmp 0x10028c89
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x44]
mov dword [eax + ecx*4], 3
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x10028c79
mov dword [ebp - 0x14], ebx
jmp 0x10028ca1
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x60], 0x32fe2236
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x10028c93
mov dword [ebp - 0x58], 3
cmp dword [ebp - 0x58], ebx
jl 0x10028cc8
mov dword [ebp - 0x20], 0x3d2d
mov dword [ebp - 0x20], 0xffffffff
mov eax, dword [ebp - 0x58]
dec dword [ebp - 0x58]
jns 0x10028cb2
lea ecx, [ebp - 0x44]
call fcn.1000be91
mov eax, dword [0x10071f20]
cmp eax, 0x270
jne 0x10028d1b
mov edx, 0x10071f28
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, edi
cmp edx, 0x100728e8
jl 0x10028ce1
jmp 0x10028d27
cmp eax, 0x4e0
jb 0x10028d2c
call fcn.10028db4
mov eax, dword [0x10071f20]
mov edx, dword [eax*4 + 0x10071f24]
inc eax
mov dword [0x10071f20], eax
mov eax, edx
shr eax, 0xb
and eax, dword [0x100732a4]
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 + 0x18]
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