Function at 0x1001f120
Capabilities:
Check for time delay via gettickcount
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x584
push ebx
push esi
push edi
mov dword [ebp - 0x14], 0x1002d00c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x1002d004]
xor edi, edi
cmp eax, edi
je 0x1001f3f6
cmp eax, 0x8911191
jne 0x1001f330
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x1003500c
push section..tsodata
mov dword [0x1002d01c], 1
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10035024
push section..tsodata
mov dword [0x1002b0e0], eax
call esi
push eax
call ebx
cmp byte [ebp + 0xc], 0
mov dword [0x1002b0dc], eax
mov dword [ebp - 0x10], edi
je 0x1001f1c3
push ebx
push ecx
xor eax, eax
mov eax, esp
mov ebx, 4
push eax
push ebx
mov eax, dword [eax - 8]
pop ecx
shl eax, 4
pop ebx
sub eax, 0x10
mov eax, dword fs:[eax]
movzx eax, byte [eax + 2]
neg eax
pop ecx
pop ebx
mov dword [ebp - 0x10], eax
call fcn.10020040
mov eax, dword [0x1002d024]
mov dword [ebp - 0xc], edi
cmp eax, edi
mov edi, dword [ebp + 8]
jbe 0x1001f2da
lea eax, [ebp - 0x584]
mov esi, 0x1002d02c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
lea esp, [esp]
mov ecx, dword [ebp - 4]
mov eax, dword [esi]
mov esi, dword [esi - 4]
push ecx
push 8
push eax
add esi, edi
push esi
mov bl, 0x1e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call main
add esp, 0x14
mov byte [ebp - 0x24], 0x26
mov byte [ebp - 0x23], 0x17
mov byte [ebp - 0x22], 0x10
mov byte [ebp - 0x21], 0x23
mov byte [ebp - 0x20], 0x17
mov byte [ebp - 0x1f], 0x10
mov byte [ebp - 0x1e], 0x25
mov byte [ebp - 0x1d], 0x14
mov byte [ebp - 0x1c], 0x28
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], 0x24
mov byte [ebp - 0x19], 0x13
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 0x1d
mov byte [ebp - 0x16], 0x14
mov byte [ebp - 0x15], 0xe
push edx
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp - 0x10]
mov edx, 0x21524110
xor ebx, edx
mov esi, dword [ebp - 0x14]
lea edi, [ebp - 0x3c]
mov ecx, 4
lodsd eax, dword [esi]
xor eax, ebx
stosd dword es:[edi], eax
loop 0x1001f268
pop edi
pop esi
pop ebx
pop ecx
pop edx
lea edx, [ebp - 0x184]
push edx
lea eax, [ebp - 0x3c]
push 0x10
push eax
call fcn.1001f5b0
mov esi, dword [ebp - 8]
mov eax, dword [esi]
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x184]
push ecx
mov ecx, dword [esi - 4]
push 0x10
lea edx, [esi + 4]
push edx
and eax, 0xfffffff0
push eax
add ecx, edi
push ecx
push 0
push 0
lea edx, [ebp - 0x24]
push 7
push edx
call fcn.1001ffb0
add esp, 0x30
test eax, eax
jne 0x1001f329
mov ecx, dword [ebp - 0xc]
mov eax, dword [0x1002d024]
add dword [ebp - 4], 4
add ecx, 1
add esi, 0x28
cmp ecx, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], esi
jb 0x1001f1f0
lea ecx, [eax + eax*4]
lea ecx, [ecx*8 + 0x1002d028]
xor edx, edx
cmp dword [ecx + 8], edx
jle 0x1001f30a
lea esi, [ecx + 0xc]
mov edi, edi
mov eax, dword [esi]
mov ebx, edi
sub ebx, dword [ecx]
add eax, edi
add dword [eax], ebx
add edx, 1
add esi, 4
cmp edx, dword [ecx + 8]
jl 0x1001f2f0
mov eax, dword [0x1002d024]
test eax, eax
mov dword [ebp - 0x14], 0
jbe 0x1001f3c0
mov eax, 0x1002d028
lea esi, [ebp - 0x584]
mov dword [ebp - 0xc], eax
jmp 0x1001f343
mov byte [0x1003500a], 1
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov ecx, dword [esi]
add eax, edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [ebp - 0x28]
push esi
push ecx
mov ebx, eax
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
push ebx
call dword [0x1002b0e0]
cmp eax, 0xc0000045
jne 0x1001f3a8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp ebx, eax
jne 0x1001f3a8
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
push ecx
push edx
call dword [0x1002b0dc]
test eax, eax
je 0x1001f3a8
mov eax, dword [ebp - 0x28]
push esi
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
push ebx
call dword [0x1002b0e0]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x28
add eax, 1
add esi, 4
cmp eax, dword [0x1002d024]
mov dword [ebp - 0x14], eax
jb 0x1001f340
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
mov dword [0x1002d020], eax
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret