Function at 0x40b3a0
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 + 0x42bac0]
mov dword [esp + 8], esi
cmp eax, esi
jne 0x40b3c9
xor eax, eax
pop esi
add esp, 0x39c
ret
cmp dword [eax], esi
jne 0x40b3d7
xor eax, eax
pop esi
add esp, 0x39c
ret
test byte [eax + 6], 2
jne 0x40b3e7
xor eax, eax
pop esi
add esp, 0x39c
ret
mov eax, dword [ecx*4 + 0x42ba80]
push ebx
push ebp
push edi
mov ebx, dword [eax + 0xc]
cmp ebx, esi
je 0x40b716
cmp byte [ebx], 0
je 0x40b716
mov edi, 0x4260dc
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 0x40b43d
mov al, dl
shl al, 7
shr dl, 1
add dl, al
mov al, byte [esi + 0x4260dc]
xor al, dl
mov byte [ebp], al
inc ebp
inc esi
cmp esi, ecx
jl 0x40b423
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 0x40b4a9
lea edx, [esp + 0x10]
lea eax, [esp + 0x140]
push edx
push eax
push 0x80000001
call esi
test eax, eax
jne 0x40b716
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 0x40b50b
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 0x40b580
lea ecx, [esp + 0x141]
push 0x22
push ecx
lea ebp, [esp + 0x149]
call fcn.0041ae40
add esp, 8
test eax, eax
je 0x40b578
mov byte [eax], 0
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x20
jne 0x40b561
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x20
je 0x40b558
cmp byte [eax], 0
je 0x40b578
lea edx, [esp + 0x3c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40b56c
xor bl, bl
mov al, byte [esp + 0x3c]
test al, al
jne 0x40b5e8
push ebp
call fcn.004010a0
add esp, 4
test eax, eax
jne 0x40b5e8
push 0x426718
push ebp
call fcn.0041b300
add esp, 8
test eax, eax
jne 0x40b5b1
push 0x426710
push ebp
call fcn.0041b300
add esp, 8
test eax, eax
je 0x40b5e8
mov cl, byte [eax + 4]
add eax, 4
cmp cl, 0x20
jne 0x40b5e8
mov byte [eax], 0
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x20
jne 0x40b5d1
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x20
je 0x40b5c8
cmp byte [eax], 0
je 0x40b5e8
lea edx, [esp + 0x3c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40b5dc
xor bl, bl
push ebp
call fcn.004010a0
add esp, 4
test eax, eax
je 0x40b716
test bl, bl
je 0x40b62a
push 2
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
test esi, esi
je 0x40b626
push 5
push 0x6d
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x40b61f
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test bl, bl
jne 0x40b631
mov eax, 0x42670c
jmp 0x40b646
mov eax, dword [esp + 0x3b4]
test eax, eax
mov eax, 0x426708
jne 0x40b646
mov eax, 0x426700
mov cl, byte [esp + 0x3c]
test cl, cl
jne 0x40b660
lea edx, [esp + 0x3c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40b654
jmp 0x40b6b8
lea edx, [esp + 0x2a8]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40b669
lea edi, [esp + 0x2a8]
or ecx, 0xffffffff
xor eax, eax
mov dx, word [0x426440]
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.0041b1d0
add esp, 0xc
xor eax, eax
mov cl, byte [esp + eax + 0x2a8]
mov byte [esp + eax + 0x3c], cl
inc eax
test cl, cl
jne 0x40b6a8
lea edx, [esp + 0x3c]
push 1
push edx
push ebp
call fcn.00402be0
add esp, 0xc
test eax, eax
je 0x40b716
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x40b70e
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.0041b380
add esp, 4
test eax, eax
je 0x40b70e
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x40b6e7
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x39c
ret