Function at 0x40b8e0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x449416
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x460590]
xor eax, esp
mov dword [esp + 0x424], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x460590]
xor eax, esp
push eax
lea eax, [esp + 0x43c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44c]
call fcn.00413d88
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40b93e
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
push 0x206
lea edx, [esp + 0x236]
xor ecx, ecx
push edi
mov dword [esp + 0x44c], edi
push edx
mov word [esp + 0x23c], cx
call fcn.00434530
push 0x206
lea ecx, [esp + 0x3a]
xor eax, eax
push edi
push ecx
mov word [esp + 0x40], ax
call fcn.00434530
add esp, 0x18
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea ecx, [esp + 0x20]
call fcn.00402520
lea edx, [esp + 0x18]
mov byte [esp + 0x444], 1
mov eax, dword [esp + 0x1c]
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40ba7c
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x20]
push 0
mov eax, 0x104
push 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x244]
push ecx
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
test esi, esi
jne 0x40ba3e
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push 0x452e74
push ecx
call fcn.004022d0
mov eax, dword [ebp + 0x174]
mov ebx, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x40ba3e
cmp dword [ebx - 0xc], esi
jl 0x40ba3e
push eax
push ebx
call fcn.00432892
add esp, 8
test eax, eax
je 0x40ba3e
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
jne 0x40bb05
inc edi
test esi, esi
je 0x40b9bf
mov eax, dword [ebp + 0x190]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x40ba6a
push eax
push 0x452de8
push str.auto
push str.cqss
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 2
lea ecx, [ebp + 0x16c]
push 0x452de8
call fcn.00402090
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x444], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40baaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x444], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bad6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x43c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.004323db
add esp, 0x434
ret 4
lea edx, [esp + 0x230]
push edx
lea esi, [ebp + 0x134]
push 0x452e74
push esi
call fcn.004022d0
add esp, 0xc
push 1
lea edi, [ebp + 0x190]
push str.auto
mov ecx, edi
call fcn.00407420
push 1
lea ecx, [ebp + 0x16c]
push 0x451f34
call fcn.00402090
mov edi, dword [edi]
cmp dword [edi - 0xc], 0
mov esi, dword [esi]
je 0x40ba7c
push edi
push esi
push 0x451f64
push str.cqss
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x40ba7c