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

Disassembly:
mov eax, 0x10056133
call fcn.100553f0
sub esp, 0x70
cmp byte [ebp + 0xc], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x38], edx
mov byte [ebp - 0x14], cl
je 0x100181ab
mov dword [ebp - 0x28], 0xa93
cmp dword [ebp - 0x28], 0xbe2
jle 0x10018168
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x20], ebx
inc esi
mov edi, ebx
mov dword [ebp - 0x24], ebx
mov ecx, edi
mov dword [ebp - 0x18], 0x3900
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
mov eax, edi
sar eax, cl
lea ecx, [ebp - 0x7c]
cdq
push edx
push eax
call fcn.10002769
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1001812e
mov eax, dword [eax]
push eax
call fcn.1003ed0a
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x7c]
call fcn.10001539
mov ecx, dword [ebp - 0x1c]
dec ecx
dec dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
jne 0x10018115
mov edi, dword [ebp - 0x24]
inc edi
mov dword [ebp - 0x24], edi
cmp edi, 0x1f28
jl 0x10018106
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, 0x4b7b
jl 0x10018101
cmp dword [ebp - 0x28], 0x885
jge 0x1001817c
push str.vexeerx_mzgqcajg_khg_guaiw_lqrgulb_yyom
call fcn.1003ed0a
pop ecx
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x14], 0
je 0x1001819c
mov eax, dword [ebp + 0x18]
cmp byte [eax], 0
je 0x100184ec
call fcn.100187c7
jmp 0x100184ec
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
jmp 0x100184ec
cmp byte [ebp + 8], 0
je 0x100181cf
push 0x1c7b
push 0x16c1
push 1
push 0
push 0x194b
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x100184ec
mov eax, dword [0x1047158c]
xor esi, esi
inc esi
test al, 1
jne 0x100181f4
or dword [0x10471584], 0xffffffff
or eax, esi
push ecx
push 0x1571
mov dword [0x1047158c], eax
call fcn.1001a21a
mov dword [ebp - 0x1c], 6
xor ebx, ebx
mov dword [ebp - 0x28], 0x979c
push 3
pop edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], 0x33a79cc0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
jmp 0x10018227
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x58], 0xffffffff
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], edi
jl 0x10018219
mov dword [ebp - 0x1c], 0x4ec2e0cf
cmp dword [ebp - 0x1c], ebx
jne 0x10018256
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x28]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], eax
jge 0x1001826a
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
mov ecx, esi
sub ecx, eax
mov dword [ebp - 0x50], ecx
cmp byte [0x1007017c], al
jne 0x10018437
mov dword [ebp - 0x1c], 0xfffffff7
mov dword [ebp - 0x2c], 0x3f9e923e
mov dword [ebp - 0x18], ebx
jmp 0x100182a1
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x40], 0xffffffff
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 2
jl 0x10018293
mov dword [ebp - 0x18], ebx
jmp 0x100182ba
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x4c], 0xef20fe6e
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], edi
jl 0x100182ac
mov dword [ebp - 0x44], ebx
jmp 0x1001835a
mov dword [ebp - 0x18], 0x9b79
mov dword [ebp - 0x34], 0xab1d6a56
inc dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
jmp 0x10018352
mov dword [ebp - 0x30], 0x6859
mov dword [ebp - 0x18], ebx
jmp 0x1001834a
mov eax, dword [ebp - 0x1c]
cmp dword [ebp + eax*4 - 0x40], esi
je 0x1001832a
mov dword [ebp - 0x20], ebx
jmp 0x10018305
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x64], 0xb441a62a
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], edi
jl 0x100182f7
mov eax, dword [ebp - 0x18]
cmp dword [ebp + eax*4 - 0x40], ebx
jne 0x1001834f
lea eax, [ebp - 0x2c]
mov edx, 0x5689
push 0x5f7f
push eax
call fcn.10019183
pop ecx
pop ecx
jmp 0x10018338
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + eax*4 - 0x40]
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x40], ecx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.100180a3
inc dword [ebp - 0x18]
pop ecx
pop ecx
cmp dword [ebp - 0x18], esi
jle 0x100182e9
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], esi
jle 0x100182dd
inc dword [ebp - 0x44]
cmp dword [ebp - 0x44], esi
jle 0x100182c7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ecx
push eax
call fcn.1001a21a
mov dword [ebp - 0x1c], 0x1f7e2799
mov dword [ebp - 0x1c], 0xffffffea
jmp 0x1001839a
push ecx
mov byte [ebp + 0xf], bl
lea edx, [ebp + 0xf]
mov ecx, 0x5888
call fcn.10017fac
pop ecx
cmp dword [ebp - 0x1c], ebx
jne 0x100183a0
dec dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0xffffffe5
je 0x10018380
push ebx
mov edx, 0x1007017c
mov ecx, 0x4063
call fcn.1001916e
mov dword [ebp - 0x28], 0x5f8
cmp dword [ebp - 0x28], 0x7dd
pop ecx
jle 0x10018418
push ebx
push 0x17a7
push 0x146f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetCharWidth32A]
mov edi, ebx
mov esi, ebx
mov dword [ebp + 0xc], ebx
mov eax, ebx
mov ecx, 0x1006f038
xor eax, esi
or eax, edi
cdq
push edx
push eax
call fcn.10003f1c
inc ebx
cmp ebx, 0x2c88
jl 0x100183e7
inc esi
push 0
pop ebx
cmp esi, 0x5aa0
jl 0x100183e4
inc edi
cmp edi, 0x768a
jl 0x100183e2
mov dword [ebp - 4], 2
cmp dword [ebp - 0x28], 0x5d2
jge 0x10018437
mov edx, str.ubjffjg_zofrlokq_dvixeex_kgh_bxgeqv_ccoz
mov ecx, 0x1006f038
call fcn.1000567a
mov eax, dword [0x10470200]
cmp eax, 0x270
jne 0x1001849d
mov edx, 0x10470208
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, 0x10470bc8
jl 0x10018448
jmp 0x100184a9
cmp eax, 0x4e0
jb 0x100184ae
call fcn.1001a255
mov eax, dword [0x10470200]
mov ecx, dword [eax*4 + 0x10470204]
inc eax
mov dword [0x10470200], eax
mov eax, ecx
shr eax, 0xb
and eax, dword [0x10471584]
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 [ebp - 0x38]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret