Function at 0x40db60
Capabilities:
Create process on windows
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x413008]
xor eax, ebp
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x160], 0
push 0
lea eax, [ebp - 0x15c]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 0x15c], 0
je 0x40dbe1
mov ecx, dword [ebp - 0x15c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0040c480
push 0x114
push 0
lea edx, [ebp - 0x158]
push edx
call fcn.00401700
add esp, 0xc
mov dword [ebp - 0x158], 0x114
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [ebp - 0x150]
and ecx, 0xff
movzx edx, cl
mov eax, dword [ebp - 0x154]
and eax, 0xff
movzx ecx, al
shl ecx, 8
or edx, ecx
mov word [ebp - 0x164], dx
push 0x24
push 0
lea edx, [ebp - 0x194]
push edx
call fcn.00401700
add esp, 0xc
push 0x4150b4
push 0x4150c8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
je 0x40dc98
lea eax, [ebp - 0x194]
push eax
call dword [ebp - 0x16c]
movzx ecx, word [ebp - 0x194]
cmp ecx, 9
jne 0x40dc98
mov dword [ebp - 0x170], 1
push 0x3c
push 0
lea edx, [ebp - 0x3c]
push edx
call fcn.00401700
add esp, 0xc
movzx eax, word [ebp - 0x164]
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0x501
jg 0x40dcdb
cmp dword [ebp - 0x198], 0x501
je 0x40dd20
cmp dword [ebp - 0x198], 0x500
je 0x40dcf5
jmp 0x40dd40
cmp dword [ebp - 0x198], 0x600
jl 0x40dd40
cmp dword [ebp - 0x198], 0x601
jle 0x40dd30
jmp 0x40dd40
push 0
call fcn.0040c560
push 2
call fcn.0040c560
push 0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov dword [ebp - 0x2c], 0x4150e4
mov dword [ebp - 0x28], str.install_w2kxpIPvE.inf_ipvedevice
jmp 0x40dd4e
mov dword [ebp - 0x2c], 0x41513c
mov dword [ebp - 0x28], str.install_w2kxpIPvEx86.inf_ipvedevice
jmp 0x40dd4e
mov dword [ebp - 0x2c], 0x41519c
mov dword [ebp - 0x28], 0x4151b0
jmp 0x40dd4e
mov dword [ebp - 0x2c], str.DCx86.exe
mov dword [ebp - 0x28], str.install_win7IPvEx86.inf_ipvedevice
cmp dword [ebp - 0x170], 0
je 0x40dd65
mov dword [ebp - 0x2c], str.DCx64.exe
mov dword [ebp - 0x28], str.install__win7IPvEx64.inf_ipvedevice
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x30], 0x4152b4
mov dword [ebp - 0x24], 0x418ae0
mov dword [ebp - 0x20], 0
movzx ecx, word [ebp - 0x164]
cmp ecx, 0x600
jge 0x40ddb8
movzx edx, word [ebp - 0x164]
cmp edx, 0x500
jle 0x40ddb8
call fcn.0040c6e0
push 0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_SleepEx]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40ddca
xor eax, eax
jmp 0x40de0f
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 0x160]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
movzx ecx, word [ebp - 0x164]
cmp ecx, 0x500
jne 0x40ddfd
push 1
call fcn.0040c560
cmp dword [ebp - 0x160], 0
je 0x40de0a
xor eax, eax
jmp 0x40de0f
mov eax, 1
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.00401006
mov esp, ebp
pop ebp
ret