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

Disassembly:
mov eax, 0x10062204
call fcn.10061438
sub esp, 0x94
cmp byte [ebp + 0x30], 0
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
je 0x10014745
cmp byte [ebp + 0x18], 0
je 0x1001472c
mov ebx, dword [ebp + 0x14]
xor esi, esi
cmp dword [ebx], esi
jbe 0x10014ae2
push 0x1a
pop edi
call fcn.1001261d
push 0x34
xor edx, edx
pop ecx
div ecx
mov eax, edx
cmp eax, edi
jge 0x1001470e
mov ecx, dword [ebp + 0x20]
movsx edx, byte [ecx]
jmp 0x10014717
cdq
idiv edi
mov eax, dword [ebp + 0x24]
movsx eax, byte [eax]
mov ecx, dword [ebp - 0x18]
add edx, eax
push edx
call fcn.1000e855
inc esi
cmp esi, dword [ebx]
jb 0x100146f4
jmp 0x10014ae2
cmp byte [ecx], 0
je 0x10014ae2
push 0x1b4
call dword [sym.imp.USER32.dll_ShowCaret]
jmp 0x10014ae2
cmp byte [ebp + 8], 0
je 0x1001477c
mov eax, dword [ebp + 0x28]
push 0x1a
pop edi
mov ecx, dword [eax]
cmp ecx, edi
jge 0x10014761
mov eax, dword [ebp + 0x10]
movzx edx, word [eax]
add edx, ecx
jmp 0x1001476e
mov eax, ecx
cdq
idiv edi
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
add edx, eax
mov ecx, dword [ebp + 0x2c]
push edx
call fcn.1000e77b
jmp 0x10014ae2
xor ebx, ebx
mov dword [ebp - 0x1c], 9
inc ebx
lea ecx, [ebp - 0x40]
push ebx
call fcn.1000e8c0
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp + 0x30], 0x971db956
mov dword [ebp - 0x14], esi
jmp 0x100147ae
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x30], 0x1147
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], ebx
jl 0x100147a0
push ecx
push esi
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x14]
call fcn.100129e8
pop ecx
pop ecx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x350d8af8
push eax
push ecx
push ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x40]
call fcn.10012d93
add esp, 0x10
lea ecx, [ebp - 0x1c]
xor dl, dl
call fcn.10012b84
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x40]
or dword [ebp - 4], 0xffffffff
mov dword [eax], ecx
lea ecx, [ebp - 0x40]
call fcn.1000e943
mov eax, dword [0x101458e0]
mov edi, 0x270
test al, 1
jne 0x10014846
or eax, ebx
mov ecx, 0x1571
or dword [0x101458c4], 0xffffffff
mov edx, ebx
mov dword [0x101458e0], eax
mov dword [0x10144544], ecx
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [edx*4 + 0x10144544], ecx
inc edx
cmp edx, edi
jl 0x10014825
mov dword [0x10144540], edi
push 2
lea ecx, [ebp - 0x58]
call fcn.1000e8c0
push ebx
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], ebx
call fcn.1000e8c0
mov byte [ebp - 4], 2
mov dword [ebp - 0x68], 0x96121589
mov dword [ebp + 0x30], 0x90031234
mov dword [ebp - 0x20], 0xdb6
cmp dword [ebp - 0x20], 0xfde
jle 0x100148f4
push 0x2590
call dword [sym.imp.GDI32.dll_GetBkColor]
mov edi, esi
mov dword [ebp - 0x24], esi
mov ebx, esi
mov dword [ebp + 0x30], esi
lea eax, [ebx + edi]
mov ebx, 0xd83
mov dword [ebp - 0x2c], eax
mov edi, eax
mov eax, edi
lea ecx, [ebp - 0xa0]
cdq
push edx
push eax
call fcn.10001a7f
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x100148ba
mov eax, dword [eax]
push eax
call fcn.10048643
pop ecx
push esi
push 1
lea ecx, [ebp - 0xa0]
call fcn.1000f099
dec edi
dec ebx
jne 0x100148a0
mov ebx, dword [ebp + 0x30]
mov edi, dword [ebp - 0x24]
inc ebx
mov dword [ebp + 0x30], ebx
cmp ebx, 0x3aef
jl 0x10014893
inc edi
mov dword [ebp - 0x24], edi
cmp edi, 0x7c9e
jl 0x1001488e
xor ebx, ebx
inc ebx
push 0x6cb9
push esi
push 0x2147
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
call fcn.10014196
add esp, 0xc
cmp dword [ebp - 0x20], 0xd7f
jge 0x10014921
push str.qigj_jcuwgsmlo_xkfy_mfebqdtig
call fcn.10048643
pop ecx
lea eax, [ebp - 0x64]
mov dword [ebp - 4], 2
push esi
push eax
mov edx, 0x7870
lea ecx, [ebp - 0x28]
call fcn.1001282e
mov eax, dword [ebp - 0x58]
pop ecx
pop ecx
lea ecx, [ebp - 0x64]
mov dword [eax], 0x1a
call fcn.1000e943
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.1000e943
cmp byte [0x10080f08], 0
push 3
pop edi
jne 0x100149e3
call fcn.10012dc6
push 0x3410
push esi
mov edx, 0x10144540
mov ecx, 0x2ebc
call fcn.10012fdf
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x4c]
call fcn.1000e8c0
mov dword [ebp - 4], 6
mov dword [ebp - 0x10], esi
jmp 0x100149a4
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x74], 0xffff
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jl 0x10014996
push ecx
push 0x688e
push ecx
push 0x2ee2
push esi
push ecx
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x10]
call fcn.10014512
mov ecx, dword [ebp - 0x6c]
add esp, 0x18
mov eax, dword [ebp - 0x4c]
mov dword [eax], ecx
call fcn.100129ca
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.1000e943
call fcn.1001279d
mov dword [ebp + 0x30], 0xb90d
mov dword [ebp + 0x30], 0xb13638ec
mov dword [ebp + 0x30], 0x2906c902
mov dword [ebp + 0x30], esi
jmp 0x10014a0e
mov eax, dword [ebp + 0x30]
mov dword [ebp + eax*4 - 0x88], 0xed23b618
inc dword [ebp + 0x30]
cmp dword [ebp + 0x30], edi
jl 0x100149fd
mov dword [ebp + 0x30], esi
jmp 0x10014a26
mov eax, dword [ebp + 0x30]
mov dword [ebp + eax*4 - 0x7c], 0xfffffffa
inc dword [ebp + 0x30]
cmp dword [ebp + 0x30], 2
jl 0x10014a18
mov dword [ebp + 0x30], esi
jmp 0x10014a3f
mov eax, dword [ebp + 0x30]
mov dword [ebp + eax*4 - 0x18], 0x722ba7b7
inc dword [ebp + 0x30]
cmp dword [ebp + 0x30], ebx
jl 0x10014a31
inc dword [ebp - 0x18]
mov eax, dword [0x10144540]
cmp eax, 0x270
jne 0x10014a93
mov edx, 0x10144548
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, 0x10144f08
jl 0x10014a58
jmp 0x10014a9f
cmp eax, 0x4e0
jb 0x10014aa4
call fcn.10014e3e
mov eax, dword [0x10144540]
mov edx, dword [eax*4 + 0x10144544]
inc eax
mov dword [0x10144540], eax
mov eax, edx
shr eax, 0xb
and eax, dword [0x101458c4]
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 + 0x1c]
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret