Function at 0x10013e59
Capabilities:
Encode data using xor

Disassembly:
push 0x60
mov eax, 0x1003a6e4
call fcn.10039093
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov dword [0x10050254], eax
call edi
sub eax, dword [esi + 0x30]
mov ecx, eax
sbb edx, dword [esi + 0x34]
call fcn.100397f0
cvtsd2ss xmm0, xmm0
divss xmm0, dword [0x100472d8]
comiss xmm0, dword [0x10047280]
jb 0x10014226
call edi
push 0x3c
pop ecx
mov dword [esi + 0x30], eax
mov al, byte [esi + 0x20]
mov dword [esi + 0x34], edx
mov dword [ebp - 0x54], 0xe10
push 0x74
pop ebx
test al, al
je 0x10014069
mov eax, dword [esi + 0x24]
test eax, eax
jle 0x10013ec7
dec eax
mov dword [esi + 0x24], eax
mov edi, dword [esi + 0x24]
test edi, edi
js 0x1001405b
mov eax, edi
mov dword [ebp - 0x14], 0xf
cdq
idiv dword [ebp - 0x54]
push 0x3c
mov eax, edx
cdq
idiv ecx
mov ecx, eax
mov eax, edi
cdq
pop edi
idiv edi
xor eax, eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
push 0xa
pop edi
mov dword [ebp - 4], eax
push edx
push ecx
cmp ecx, edi
jae 0x10013f62
cmp edx, edi
mov edx, eax
jae 0x10013f34
mov cl, 0x5a
mov dword [ebp - 0x34], 0x3e7f6a5a
mov dword [ebp - 0x30], 0x3e7f6a60
mov byte [ebp - 0x2c], al
xor cl, byte [ebp + edx - 0x33]
mov byte [ebp + edx - 0x33], cl
inc edx
cmp edx, 7
jae 0x10013f2e
mov cl, byte [ebp - 0x34]
jmp 0x10013f1b
mov byte [ebp - 0x2c], 0
jmp 0x10013fac
mov cl, 0x4e
mov dword [ebp - 0x34], 0x2a6b7e4e
mov byte [ebp - 0x30], bl
mov word [ebp - 0x2f], 0x2a6b
mov byte [ebp - 0x2d], al
xor cl, byte [ebp + edx - 0x33]
mov byte [ebp + edx - 0x33], cl
inc edx
cmp edx, 6
jae 0x10013f5c
mov cl, byte [ebp - 0x34]
jmp 0x10013f49
mov byte [ebp - 0x2d], 0
jmp 0x10013fac
mov ecx, eax
cmp edx, edi
jae 0x10013f87
mov dl, 0x61
mov dword [ebp - 0x34], 0x5b054461
mov dword [ebp - 0x30], 0x54451
xor byte [ebp + ecx - 0x33], dl
inc ecx
cmp ecx, 6
jae 0x10013f5c
mov dl, byte [ebp - 0x34]
jmp 0x10013f78
mov dl, 0x42
mov dword [ebp - 0x34], 0x78266742
mov word [ebp - 0x30], 0x2667
mov byte [ebp - 0x2e], al
xor byte [ebp + ecx - 0x33], dl
inc ecx
cmp ecx, 5
jae 0x10013fa8
mov dl, byte [ebp - 0x34]
jmp 0x10013f99
mov byte [ebp - 0x2e], 0
sub esp, 0x18
lea eax, [ebp - 0x33]
mov ecx, esp
push eax
call fcn.100040a5
lea eax, [ebp - 0x50]
push eax
call fcn.10003b8a
add esp, 0x24
lea ecx, [ebp - 0x28]
push eax
call fcn.10006e48
push 0
push 1
lea ecx, [ebp - 0x50]
call fcn.10003f51
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
movaps xmm0, xmmword [0x100478a0]
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0x634d1b65
mov byte [ebp - 0x3c], 0
mov al, byte [ebp + ecx - 0x4f]
xor al, byte [ebp - 0x50]
mov byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x13
jb 0x10013fff
sub esp, 0x18
mov byte [ebp - 0x3c], 0
lea eax, [ebp - 0x4f]
mov ecx, esp
push eax
call fcn.100040a5
lea eax, [ebp - 0x6c]
push eax
call fcn.10003b8a
add esp, 0x20
mov byte [ebp - 4], 1
mov edx, eax
mov ecx, dword [esi + 8]
call fcn.1000b8e3
push 0
push 1
lea ecx, [ebp - 0x6c]
call fcn.10003f51
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.10003f51
push 0x3c
pop ecx
cmp dword [esi + 0x24], 0
jg 0x10014069
and dword [esi + 0x24], 0
mov byte [esi + 0x20], 0
mov al, byte [esi + 0x21]
test al, al
je 0x10014226
movzx eax, word [esi + 0x28]
test ax, ax
jle 0x10014082
dec eax
mov word [esi + 0x28], ax
movzx edi, word [esi + 0x28]
mov eax, edi
test ax, ax
js 0x10014215
cwde
cdq
idiv dword [ebp - 0x54]
push 0x3c
mov eax, edx
mov dword [ebp - 0x14], 0xf
cdq
idiv ecx
movzx ecx, ax
mov eax, edi
cwde
cdq
pop edi
idiv edi
movzx eax, dx
xor edx, edx
mov dword [ebp - 0x18], edx
mov byte [ebp - 0x28], dl
push 0xa
pop edi
mov dword [ebp - 4], 2
push eax
push ecx
cmp cx, di
jae 0x10014119
xor ebx, ebx
mov ecx, ebx
cmp ax, di
jae 0x100140fa
mov dl, 0x17
mov dword [ebp - 0x34], 0x73322717
mov dword [ebp - 0x30], 0x7332272d
mov byte [ebp - 0x2c], bl
xor byte [ebp + ecx - 0x33], dl
inc ecx
cmp ecx, 7
jae 0x100140f5
mov dl, byte [ebp - 0x34]
jmp 0x100140e6
mov byte [ebp - 0x2c], bl
jmp 0x10014171
mov dl, 0x43
mov dword [ebp - 0x34], 0x27667343
mov dword [ebp - 0x30], 0x276679
xor byte [ebp + ecx - 0x33], dl
inc ecx
cmp ecx, 6
jae 0x10014144
mov dl, byte [ebp - 0x34]
jmp 0x1001410a
cmp ax, di
jae 0x10014149
mov byte [ebp - 0x34], bl
mov ecx, edx
mov dword [ebp - 0x33], 0x444e1051
mov word [ebp - 0x2f], 0x1051
mov byte [ebp - 0x2d], dl
xor byte [ebp + ecx - 0x33], bl
inc ecx
cmp ecx, 6
jae 0x10014142
mov bl, byte [ebp - 0x34]
jmp 0x10014133
xor ebx, ebx
mov byte [ebp - 0x2d], bl
jmp 0x10014171
xor ebx, ebx
mov dword [ebp - 0x34], 0x79276643
mov dl, 0x43
mov word [ebp - 0x30], 0x2766
mov byte [ebp - 0x2e], bl
mov ecx, ebx
xor byte [ebp + ecx - 0x33], dl
inc ecx
cmp ecx, 5
jae 0x1001416e
mov dl, byte [ebp - 0x34]
jmp 0x1001415f
mov byte [ebp - 0x2e], bl
sub esp, 0x18
lea eax, [ebp - 0x33]
mov ecx, esp
push eax
call fcn.100040a5
lea eax, [ebp - 0x6c]
push eax
call fcn.10003b8a
add esp, 0x24
lea ecx, [ebp - 0x28]
push eax
call fcn.10006e48
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.10003f51
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
movaps xmm0, xmmword [0x10048040]
mov edx, ebx
cmovae eax, dword [ebp - 0x28]
push eax
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0x17413f44
mov word [ebp - 0x3c], 0x39
mov cl, byte [ebp - 0x50]
xor byte [ebp + edx - 0x4f], cl
inc edx
cmp edx, 0x14
jb 0x100141c5
sub esp, 0x18
mov byte [ebp - 0x3b], bl
lea eax, [ebp - 0x4f]
mov ecx, esp
push eax
call fcn.100040a5
lea eax, [ebp - 0x6c]
push eax
call fcn.10003b8a
add esp, 0x20
mov byte [ebp - 4], 3
mov edx, eax
mov ecx, dword [esi + 0xc]
call fcn.1000b8e3
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.10003f51
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.10003f51
jmp 0x10014217
xor ebx, ebx
cmp word [esi + 0x28], bx
jg 0x10014226
xor eax, eax
mov byte [esi + 0x21], bl
mov word [esi + 0x28], ax
call fcn.1003903d
ret