Function at 0x403030
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], 0x40f00c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x40f004]
mov dword [ebp - 0x2c], eax
test ecx, ecx
je 0x403342
cmp ecx, 0x8911191
jne 0x403352
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x46080c
push 0x460800
mov dword [0x40f01c], 1
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push 0x460824
push 0x460800
mov dword [0x4081e0], eax
call edi
push eax
call esi
cmp byte [ebp + 0xc], 0
mov dword [0x4081e4], eax
mov dword [ebp - 0x24], 0
je 0x4030d7
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.00403360
mov eax, dword [0x40f024]
xor esi, esi
test eax, eax
je 0x403120
mov ebx, dword [ebp + 8]
mov edi, 0x40f028
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 0x40334b
mov eax, dword [ebp - 0x38]
add edi, 0x28
mov dword [ebp + esi*4 - 0x594], eax
inc esi
mov eax, dword [0x40f024]
cmp esi, eax
jb 0x4030f0
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x10], 0
test eax, eax
je 0x403243
mov ebx, 0x40f028
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 [0x4081e0]
cmp eax, 0xc0000045
jne 0x403199
call edi
cmp esi, eax
jne 0x403199
push dword [ebp - 8]
push dword [ebp - 4]
call dword [0x4081e4]
test eax, eax
je 0x403199
lea eax, [ebp - 0x28]
push eax
push 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call dword [0x4081e0]
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 0x4031cf
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.00403d10
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.00403c90
add esp, 0x30
test eax, eax
jne 0x40334b
mov esi, dword [ebp - 0x10]
add ebx, 0x28
mov eax, dword [0x40f024]
inc esi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
cmp esi, eax
jb 0x403140
mov edx, dword [ebp + 8]
lea ebx, [eax + eax*4]
xor edi, edi
cmp dword [ebx*8 + 0x40f030], edi
jle 0x403280
lea esi, [ebx*8 + 0x40f034]
jmp 0x403260
mov ecx, dword [esi]
lea esi, [esi + 4]
mov eax, edx
inc edi
sub eax, dword [ebx*8 + 0x40f028]
add dword [ecx + edx], eax
cmp edi, dword [ebx*8 + 0x40f030]
jl 0x403260
mov eax, dword [0x40f024]
xor edi, edi
test eax, eax
je 0x40330c
mov ebx, 0x40f028
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 [0x4081e0]
cmp eax, 0xc0000045
jne 0x4032fa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp dword [ebp - 0x10], eax
jne 0x4032fa
push dword [ebp - 4]
push dword [ebp - 8]
call dword [0x4081e4]
test eax, eax
je 0x4032fa
push esi
push dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
call dword [0x4081e0]
mov edx, dword [ebp + 8]
inc edi
add esi, 4
add ebx, 0x28
cmp edi, dword [0x40f024]
jb 0x403295
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 [0x40f020], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [0x46080a], 1
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret