Function at 0x1001f537
Capabilities:
Encode data using xor

Disassembly:
push 0x60
mov eax, 0x100478e9
call fcn.10044ac9
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov dword [0x1005b444], eax
call edi
sub eax, dword [esi + 0x30]
mov ecx, eax
sbb edx, dword [esi + 0x34]
call fcn.10044ee0
cvtsd2ss xmm0, xmm0
divss xmm0, dword [0x1004a524]
comiss xmm0, dword [0x1004a520]
jb 0x1001f8ea
call edi
mov dword [esi + 0x30], eax
xor ebx, ebx
mov al, byte [esi + 0x20]
mov dword [esi + 0x34], edx
mov dword [ebp - 0x54], 0xe10
push 0x3c
pop ecx
test al, al
je 0x1001f726
mov eax, dword [esi + 0x24]
test eax, eax
jle 0x1001f5a4
dec eax
mov dword [esi + 0x24], eax
mov edi, dword [esi + 0x24]
test edi, edi
js 0x1001f71a
mov eax, edi
mov dword [ebp - 0x14], 0xf
cdq
idiv dword [ebp - 0x54]
push 0x3c
mov eax, edx
mov dword [ebp - 0x18], ebx
cdq
idiv ecx
mov byte [ebp - 0x28], bl
mov ecx, eax
mov eax, edi
cdq
pop edi
idiv edi
push 0xa
pop edi
mov dword [ebp - 4], ebx
mov eax, ebx
push edx
push ecx
cmp ecx, edi
jae 0x1001f62e
cmp edx, edi
jae 0x1001f60a
mov cl, 0x40
mov dword [ebp - 0x34], 0x24657040
mov dword [ebp - 0x30], 0x2465707a
mov byte [ebp - 0x2c], bl
xor byte [ebp + eax - 0x33], cl
inc eax
cmp eax, 7
jae 0x1001f605
mov cl, byte [ebp - 0x34]
jmp 0x1001f5f6
mov byte [ebp - 0x2c], bl
jmp 0x1001f675
mov cl, 0x71
mov dword [ebp - 0x34], 0x15544171
mov dword [ebp - 0x30], 0x15544b
xor byte [ebp + eax - 0x33], cl
inc eax
cmp eax, 6
jae 0x1001f629
mov cl, byte [ebp - 0x34]
jmp 0x1001f61a
mov byte [ebp - 0x2d], bl
jmp 0x1001f675
cmp edx, edi
jae 0x1001f651
mov cl, 0x7e
mov dword [ebp - 0x34], 0x441a5b7e
mov dword [ebp - 0x30], 0x1a5b4e
xor byte [ebp + eax - 0x33], cl
inc eax
cmp eax, 6
jae 0x1001f629
mov cl, byte [ebp - 0x34]
jmp 0x1001f642
mov cl, 0x70
mov dword [ebp - 0x34], 0x4a145570
mov word [ebp - 0x30], 0x1455
mov byte [ebp - 0x2e], bl
xor byte [ebp + eax - 0x33], cl
inc eax
cmp eax, 5
jae 0x1001f672
mov cl, byte [ebp - 0x34]
jmp 0x1001f663
mov byte [ebp - 0x2e], bl
sub esp, 0x18
lea eax, [ebp - 0x33]
mov ecx, esp
push eax
call fcn.100012e0
lea eax, [ebp - 0x50]
push eax
call fcn.1001b71b
add esp, 0x24
lea ecx, [ebp - 0x28]
push eax
call fcn.10006163
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.10001cd4
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
movaps xmm0, xmmword [0x1004dad0]
mov ecx, ebx
cmovae eax, dword [ebp - 0x28]
push eax
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0x715f0977
mov byte [ebp - 0x3c], bl
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x13
jb 0x1001f6c6
sub esp, 0x18
mov byte [ebp - 0x3c], bl
lea eax, [ebp - 0x4f]
mov ecx, esp
push eax
call fcn.100012e0
lea eax, [ebp - 0x6c]
push eax
call fcn.1001b71b
push eax
push dword [esi + 8]
mov byte [ebp - 4], 1
call fcn.1000f1a6
add esp, 0x28
lea ecx, [ebp - 0x6c]
push ebx
push 1
call fcn.10001cd4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.10001cd4
push 0x3c
pop ecx
cmp dword [esi + 0x24], 0
jg 0x1001f726
mov byte [esi + 0x20], bl
mov dword [esi + 0x24], ebx
mov al, byte [esi + 0x21]
test al, al
je 0x1001f8ea
movzx eax, word [esi + 0x28]
test ax, ax
jle 0x1001f73f
dec eax
mov word [esi + 0x28], ax
movzx edi, word [esi + 0x28]
mov eax, edi
test ax, ax
js 0x1001f8db
cwde
cdq
idiv dword [ebp - 0x54]
push 0x3c
mov eax, edx
mov dword [ebp - 0x14], 0xf
cdq
idiv ecx
mov dword [ebp - 0x18], ebx
movzx ecx, ax
mov eax, edi
cwde
cdq
pop edi
idiv edi
mov byte [ebp - 0x28], bl
movzx eax, dx
push 0xa
pop edx
mov dword [ebp - 4], 2
push eax
push ecx
cmp cx, dx
jae 0x1001f7d7
cmp ax, dx
mov eax, ebx
jae 0x1001f7b3
mov cl, 0x3d
mov dword [ebp - 0x34], 0x59180d3d
mov dword [ebp - 0x30], 0x59180d07
mov byte [ebp - 0x2c], bl
xor byte [ebp + eax - 0x33], cl
inc eax
cmp eax, 7
jae 0x1001f7ae
mov cl, byte [ebp - 0x34]
jmp 0x1001f79f
mov byte [ebp - 0x2c], bl
jmp 0x1001f831
mov cl, 0x1b
mov dword [ebp - 0x34], 0x7f3e2b1b
mov dword [ebp - 0x30], 0x7f3e21
xor byte [ebp + eax - 0x33], cl
inc eax
cmp eax, 6
jae 0x1001f7d2
mov cl, byte [ebp - 0x34]
jmp 0x1001f7c3
mov byte [ebp - 0x2d], bl
jmp 0x1001f831
cmp ax, dx
jae 0x1001f80b
push 0x3c
pop eax
mov byte [ebp - 0x32], al
mov cl, 0x58
mov byte [ebp - 0x2e], al
mov eax, ebx
mov word [ebp - 0x34], 0x7d58
mov word [ebp - 0x31], 0x6862
mov byte [ebp - 0x2f], 0x7d
mov byte [ebp - 0x2d], bl
xor byte [ebp + eax - 0x33], cl
inc eax
cmp eax, 6
jae 0x1001f7d2
mov cl, byte [ebp - 0x34]
jmp 0x1001f7fc
mov cl, 0x6c
mov dword [ebp - 0x34], 0x5608496c
mov word [ebp - 0x30], 0x849
mov eax, ebx
mov byte [ebp - 0x2e], bl
xor byte [ebp + eax - 0x33], cl
inc eax
cmp eax, 5
jae 0x1001f82e
mov cl, byte [ebp - 0x34]
jmp 0x1001f81f
mov byte [ebp - 0x2e], bl
sub esp, 0x18
lea eax, [ebp - 0x33]
mov ecx, esp
push eax
call fcn.100012e0
lea eax, [ebp - 0x6c]
push eax
call fcn.1001b71b
add esp, 0x24
lea ecx, [ebp - 0x28]
push eax
call fcn.10006163
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.10001cd4
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
movaps xmm0, xmmword [0x1004db30]
mov ecx, ebx
cmovae eax, dword [ebp - 0x28]
push eax
push 0x3c
pop eax
movups xmmword [ebp - 0x50], xmm0
mov word [ebp - 0x40], 0x146f
mov byte [ebp - 0x3e], 0x6a
mov byte [ebp - 0x3d], al
mov word [ebp - 0x3c], 0x12
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x14
jb 0x1001f88e
sub esp, 0x18
mov byte [ebp - 0x3b], bl
lea eax, [ebp - 0x4f]
mov ecx, esp
push eax
call fcn.100012e0
lea eax, [ebp - 0x6c]
push eax
call fcn.1001b71b
push eax
push dword [esi + 0xc]
mov byte [ebp - 4], 3
call fcn.1000f1a6
add esp, 0x28
lea ecx, [ebp - 0x6c]
push ebx
push 1
call fcn.10001cd4
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.10001cd4
cmp word [esi + 0x28], bx
jg 0x1001f8ea
xor eax, eax
mov byte [esi + 0x21], bl
mov word [esi + 0x28], ax
call fcn.10044a84
ret