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

Disassembly:
sub esp, 0x3b4
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3c4]
push edi
mov dword [esp + 0x14], 1
mov eax, dword [esi + 0x1e]
mov ebp, str.regsvr32__s
test ah, 0x20
je 0x40e04e
cmp word [esi + 2], 0x1f4
jne 0x40e014
mov eax, dword [esi + 0xe]
test eax, eax
je 0x40e00a
cmp byte [eax], 0
jne 0x40e019
mov eax, dword [0x42b630]
cmp byte [eax], 0
jne 0x40e019
mov eax, dword [0x42b634]
push eax
lea eax, [esp + 0x58]
push str._s___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x60]
push 1
push ecx
push str.regedit
call fcn.00402be0
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3b4
ret
test ah, 0x40
je 0x40e14d
push str.oleaut32.dll
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40e106
push str.LoadTypeLibEx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40e0e4
mov eax, dword [esp + 0x3c8]
cmp word [eax + 2], 0x1f4
jne 0x40e0a5
mov eax, dword [eax + 0xe]
test eax, eax
je 0x40e09b
cmp byte [eax], 0
jne 0x40e0aa
mov eax, dword [0x42b630]
cmp byte [eax], 0
jne 0x40e0aa
mov eax, dword [0x42b634]
push 0x104
lea edx, [esp + 0x1c0]
push eax
push edx
call fcn.0041b45a
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1bc]
push eax
push 1
push ecx
call esi
test eax, eax
jl 0x40e0e4
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x40e0ff
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3b4
ret
mov esi, dword [esp + 0x3c8]
cmp word [esi + 2], 0x1f4
je 0x40e148
mov eax, dword [0x42b634]
lea ecx, [esp + 0x54]
push eax
push str._q___s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x60]
push 1
push edx
push str.regtlib
call fcn.00402be0
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3b4
ret
mov ebp, str.regtlib__q
mov ax, word [esi + 2]
cmp ax, 0x1f4
jne 0x40e2dc
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40e1b3
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40e1b3
pop edi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
add esp, 0x3b4
ret
mov eax, dword [0x42b61c]
cmp eax, 0x64
jge 0x40e2c2
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, 0x168
push eax
push str.ICLaunch
lea edx, [esp + 0x28]
push str._s_3.3d
push edx
call esi
mov edx, dword [0x42b61c]
add esp, 0x10
inc edx
lea eax, [esp + 0x1c]
mov dword [0x42b61c], edx
lea ecx, [esp + 0x54]
push eax
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push 0
push eax
push ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], ebx
call edi
test eax, eax
jne 0x40e245
mov eax, dword [0x42b61c]
cmp eax, 0x64
jl 0x40e1d2
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3b4
ret
mov edx, dword [0x42b634]
lea eax, [esp + 0x54]
push edx
push ebp
push 0x4269d0
push eax
call esi
lea edi, [esp + 0x64]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x58]
push ecx
push 1
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40e2ba
mov ecx, dword [esp + 0x3c8]
mov eax, dword [ecx + 0x1e]
test ah, 0x60
jne 0x40e2c2
push 0
call fcn.0040dd80
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3b4
ret
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3b4
ret
cmp ax, 0x17
je 0x40e2e8
cmp ax, 0x19
jne 0x40e2f2
push 1
call fcn.0040dd80
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3b4
ret