Function at 0x40a4f0
Capabilities:
Check for time delay via gettickcount
Encode data using xor
Query or enumerate registry value

Disassembly:
sub esp, 0x39c
mov ecx, dword [esp + 0x3a0]
push esi
xor esi, esi
mov eax, dword [ecx*4 + 0x42acd0]
mov dword [esp + 8], esi
cmp eax, esi
jne 0x40a519
xor eax, eax
pop esi
add esp, 0x39c
ret
cmp dword [eax], esi
jne 0x40a527
xor eax, eax
pop esi
add esp, 0x39c
ret
test byte [eax + 8], 2
jne 0x40a537
xor eax, eax
pop esi
add esp, 0x39c
ret
mov eax, dword [ecx*4 + 0x42ac90]
push ebx
push ebp
push edi
mov ebx, dword [eax + 0x10]
cmp ebx, esi
je 0x40a866
cmp byte [ebx], 0
je 0x40a866
mov edi, 0x425314
or ecx, 0xffffffff
xor eax, eax
mov dl, 0xbf
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
lea ebp, [esp + 0x140]
test ecx, ecx
jle 0x40a58d
mov al, dl
shl al, 7
shr dl, 1
add dl, al
mov al, byte [esi + 0x425314]
xor al, dl
mov byte [ebp], al
inc ebp
inc esi
cmp esi, ecx
jl 0x40a573
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x140]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp + 0x144]
push ecx
push 0x80000002
call esi
test eax, eax
je 0x40a5f9
lea edx, [esp + 0x10]
lea eax, [esp + 0x140]
push edx
push eax
push 0x80000001
call esi
test eax, eax
jne 0x40a866
mov ecx, 0x5a
xor eax, eax
lea edi, [esp + 0x140]
lea edx, [esp + 0x140]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push 0
push str.UninstallString
push ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0x168
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40a65b
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x39c
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x140]
mov bl, 1
cmp al, 0x22
lea ebp, [esp + 0x140]
mov byte [esp + 0x3c], 0
jne 0x40a6d0
lea ecx, [esp + 0x141]
push 0x22
push ecx
lea ebp, [esp + 0x149]
call fcn.0041a360
add esp, 8
test eax, eax
je 0x40a6c8
mov byte [eax], 0
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x20
jne 0x40a6b1
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x20
je 0x40a6a8
cmp byte [eax], 0
je 0x40a6c8
lea edx, [esp + 0x3c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40a6bc
xor bl, bl
mov al, byte [esp + 0x3c]
test al, al
jne 0x40a738
push ebp
call fcn.00401100
add esp, 4
test eax, eax
jne 0x40a738
push str..exe
push ebp
call fcn.0041a820
add esp, 8
test eax, eax
jne 0x40a701
push str..EXE
push ebp
call fcn.0041a820
add esp, 8
test eax, eax
je 0x40a738
mov cl, byte [eax + 4]
add eax, 4
cmp cl, 0x20
jne 0x40a738
mov byte [eax], 0
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x20
jne 0x40a721
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x20
je 0x40a718
cmp byte [eax], 0
je 0x40a738
lea edx, [esp + 0x3c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40a72c
xor bl, bl
push ebp
call fcn.00401100
add esp, 4
test eax, eax
je 0x40a866
test bl, bl
je 0x40a77a
push 2
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
test esi, esi
je 0x40a776
push 5
push 0x6d
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x40a76f
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test bl, bl
jne 0x40a781
mov eax, 0x425944
jmp 0x40a796
mov eax, dword [esp + 0x3b4]
test eax, eax
mov eax, 0x425940
jne 0x40a796
mov eax, str._X__S
mov cl, byte [esp + 0x3c]
test cl, cl
jne 0x40a7b0
lea edx, [esp + 0x3c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40a7a4
jmp 0x40a808
lea edx, [esp + 0x2a8]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40a7b9
lea edi, [esp + 0x2a8]
or ecx, 0xffffffff
xor eax, eax
mov dx, word [0x425678]
repne scasb al, byte es:[edi]
lea eax, [esp + 0x3c]
push 0xfc
lea ecx, [esp + 0x2ac]
push eax
push ecx
mov word [edi - 1], dx
call fcn.0041a6f0
add esp, 0xc
xor eax, eax
mov cl, byte [esp + eax + 0x2a8]
mov byte [esp + eax + 0x3c], cl
inc eax
test cl, cl
jne 0x40a7f8
lea edx, [esp + 0x3c]
push 1
push edx
push ebp
call fcn.00402c40
add esp, 0xc
test eax, eax
je 0x40a866
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x40a85e
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push 0
push eax
call ebx
push ebp
call fcn.0041a8a0
add esp, 4
test eax, eax
je 0x40a85e
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x40a837
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x39c
ret