Function at 0x1013508a
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10178ee0
call fcn.101590a4
sub esp, 0x248
mov eax, dword [0x101b6f10]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
mov esi, ecx
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edi, eax
mov eax, dword [esi + 0x64]
add eax, 0x1d4c0
cmp edi, eax
mov dword [ebp - 0x254], edi
jbe 0x101350ff
mov ecx, dword [0x10a0b230]
call fcn.10142c3b
mov dword [esi + 0x64], edi
mov eax, dword [0x10a0b31c]
shl eax, 8
add eax, 0x10a0b5f0
inc dword [0x10a0b31c]
push 0x1018df74
push eax
call fcn.10151120
cmp dword [0x10a0b31c], 0xa
pop ecx
pop ecx
jne 0x101350ff
and dword [0x10a0b31c], 0
mov eax, dword [esi + 0x68]
add eax, 0x2710
cmp edi, eax
jbe 0x1013526e
mov ecx, 0x10a0c0c0
mov dword [esi + 0x68], edi
call fcn.1013dfc9
test eax, eax
je 0x1013526e
push 7
xor eax, eax
pop ecx
mov byte [ebp - 0x30], 0
lea edi, [ebp - 0x2f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 7
mov byte [ebp - 0x50], 0
xor eax, eax
pop ecx
lea edi, [ebp - 0x4f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x250]
stosb byte es:[edi], al
call fcn.101512c0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x250]
call fcn.10151110
mov ecx, dword [0x10a0b378]
test ecx, ecx
je 0x10135217
lea eax, [ebp - 0x150]
push eax
call fcn.1013a44b
push eax
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 1
call fcn.101511b0
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 0
call fcn.101512b0
push 0x20
lea ecx, [ebp - 0x250]
call fcn.101510f0
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10159390
mov ecx, dword [0x10a0b378]
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
call fcn.1013666a
push eax
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 2
call fcn.101511b0
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 0
call fcn.101512b0
push 0x20
lea ecx, [ebp - 0x250]
call fcn.101510f0
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.10159390
add esp, 0xc
cmp dword [0x10a059f4], 0
je 0x10135217
xor eax, eax
mov cl, byte [ebp + eax - 0x50]
xor byte [ebp + eax - 0x30], cl
inc eax
cmp eax, 0x20
jl 0x10135209
mov edi, 0xac
push edi
call fcn.10157b9f
push edi
mov ebx, eax
push 0
push ebx
call fcn.10158270
push 0x20
lea eax, [ebp - 0x30]
push eax
lea eax, [ebx + 0x8c]
push eax
call fcn.101594c0
mov ecx, dword [0x10a0b230]
add esp, 0x1c
push ebx
call fcn.10143c9a
test ebx, ebx
je 0x10135259
push ebx
call fcn.101594b4
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.101512b0
mov edi, dword [ebp - 0x254]
cmp dword [0x10a059f4], 0
jne 0x101353b1
mov eax, dword [esi + 0x84]
add eax, dword [esi + 0x88]
cmp edi, eax
jbe 0x101352e1
mov ecx, dword [0x10a0b444]
mov ebx, 0x138
push ebx
call fcn.10094cbf
test al, al
jne 0x101352ba
mov ecx, dword [0x10a0b444]
push 9
push ebx
call fcn.10094e78
mov ecx, dword [0x10a0b444]
push ebx
call fcn.1009be72
mov eax, dword [esi + 0x84]
mov ecx, dword [esi + 0x88]
lea eax, [eax + ecx + 0xbb8]
cmp edi, eax
jbe 0x101352e1
mov byte [esi + 0x58], 1
mov ecx, dword [0x10a0b444]
push ebx
call fcn.1009be95
mov eax, dword [esi + 0x84]
add eax, dword [esi + 0x88]
cmp edi, eax
jbe 0x101353b1
cmp byte [esi + 0x58], 1
jne 0x101353b1
lea ecx, [ebp - 0x150]
call fcn.101512c0
mov eax, dword [esi + 0x80]
push 3
pop ecx
push eax
cmp eax, ecx
mov dword [ebp - 4], ecx
lea eax, [ebp - 0x150]
jge 0x10135328
push 0x1018df5c
jmp 0x1013532d
push 0x1018df28
push eax
call fcn.10151120
add esp, 0xc
sub esp, 0x100
lea eax, [ebp - 0x150]
mov ecx, esp
mov dword [ebp - 0x254], esp
push eax
call fcn.101512e0
mov ecx, dword [0x10a0b308]
push 0x64
call fcn.1013b1a1
sub esp, 0x100
mov ecx, esp
mov dword [ebp - 0x254], esp
push 0x1018def8
call fcn.101512e0
mov ecx, dword [0x10a0b308]
push 0x64
call fcn.1013b1a1
inc dword [esi + 0x80]
call dword [sym.imp.WINMM.dll_timeGetTime]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], 0x36ee80
mov byte [esi + 0x58], 0
call fcn.101512b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.101581be
pop edi
pop esi
pop ebx
leave
ret