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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x594
push ebx
push esi
push edi
mov dword [ebp - 0x30], 0x42d00c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x42d004]
mov dword [ebp - 0x2c], eax
test ecx, ecx
je 0x417342
cmp ecx, 0x8911191
jne 0x417352
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x47e80c
push 0x47e800
mov dword [0x42d01c], 1
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push 0x47e824
push 0x47e800
mov dword [0x424e50], eax
call edi
push eax
call esi
cmp byte [ebp + 0xc], 0
mov dword [0x424e54], eax
mov dword [ebp - 0x24], 0
je 0x4170d7
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 - 0x24], eax
call fcn.00417360
mov eax, dword [0x42d024]
xor esi, esi
test eax, eax
je 0x417120
mov ebx, dword [ebp + 8]
mov edi, 0x42d028
nop
push 0x1c
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [edi]
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41734b
mov eax, dword [ebp - 0x38]
add edi, 0x28
mov dword [ebp + esi*4 - 0x594], eax
inc esi
mov eax, dword [0x42d024]
cmp esi, eax
jb 0x4170f0
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x10], 0
test eax, eax
je 0x417243
mov ebx, 0x42d028
mov dword [ebp - 0xc], ebx
lea ecx, [ecx]
mov eax, dword [ebx + 4]
mov dword [ebp - 8], eax
mov eax, dword [ebx]
add eax, dword [ebp + 8]
mov dword [ebp - 4], eax
call edi
mov esi, eax
lea eax, [ebp - 0x28]
push eax
push 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call dword [0x424e50]
cmp eax, 0xc0000045
jne 0x417199
call edi
cmp esi, eax
jne 0x417199
push dword [ebp - 8]
push dword [ebp - 4]
call dword [0x424e54]
test eax, eax
je 0x417199
lea eax, [ebp - 0x28]
push eax
push 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call dword [0x424e50]
mov dword [ebp - 0x20], 0x23101726
mov dword [ebp - 0x1c], 0x14251017
mov dword [ebp - 0x18], 0x13241e28
mov dword [ebp - 0x14], 0xe141d1e
push edx
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp - 0x24]
mov edx, 0x21524110
xor ebx, edx
mov esi, dword [ebp - 0x30]
lea edi, [ebp - 0x40]
mov ecx, 4
lodsd eax, dword [esi]
xor eax, ebx
stosd dword es:[edi], eax
loop 0x4171cf
pop edi
pop esi
pop ebx
pop ecx
pop edx
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x40]
push 0x10
push eax
call fcn.00417d10
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 0x194]
push eax
push 0x10
lea eax, [ebx + 8]
push eax
mov eax, dword [ebx + 4]
and eax, 0xfffffff0
push eax
mov eax, dword [ebx]
add eax, dword [ebp + 8]
push eax
push 0
push 0
lea eax, [ebp - 0x20]
push 7
push eax
call fcn.00417c90
add esp, 0x30
test eax, eax
jne 0x41734b
mov esi, dword [ebp - 0x10]
add ebx, 0x28
mov eax, dword [0x42d024]
inc esi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
cmp esi, eax
jb 0x417140
mov edx, dword [ebp + 8]
lea ebx, [eax + eax*4]
xor edi, edi
cmp dword [ebx*8 + 0x42d030], edi
jle 0x417280
lea esi, [ebx*8 + 0x42d034]
jmp 0x417260
mov ecx, dword [esi]
lea esi, [esi + 4]
mov eax, edx
inc edi
sub eax, dword [ebx*8 + 0x42d028]
add dword [ecx + edx], eax
cmp edi, dword [ebx*8 + 0x42d030]
jl 0x417260
mov eax, dword [0x42d024]
xor edi, edi
test eax, eax
je 0x41730c
mov ebx, 0x42d028
lea esi, [ebp - 0x594]
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 4], eax
mov eax, dword [ebx]
add eax, edx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push dword [ebp - 0xc]
lea ecx, [ebp - 4]
mov dword [ebp - 0x10], eax
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [0x424e50]
cmp eax, 0xc0000045
jne 0x4172fa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp dword [ebp - 0x10], eax
jne 0x4172fa
push dword [ebp - 4]
push dword [ebp - 8]
call dword [0x424e54]
test eax, eax
je 0x4172fa
push esi
push dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
call dword [0x424e50]
mov edx, dword [ebp + 8]
inc edi
add esi, 4
add ebx, 0x28
cmp edi, dword [0x42d024]
jb 0x417295
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 [0x42d020], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [0x47e80a], 1
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret