Function at 0x40c9e0
Capabilities:
Create process on windows
Get installed programs
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword [0x422040]
sub esp, 0x2b8
cmp eax, 0xffffffff
je 0x40c9f9
push eax
call fcn.004012c0
add esp, 4
push edi
call fcn.0040e320
mov eax, dword [0x42765c]
xor edi, edi
cmp eax, edi
jne 0x40d0d1
mov eax, dword [0x4271b4]
push ebx
push ebp
push esi
cmp byte [eax], 0
je 0x40cd3d
push 2
push eax
call fcn.00401040
mov ebp, eax
push edi
push ebp
call fcn.004011a0
push ebp
call fcn.00401140
mov esi, eax
mov eax, dword [0x427648]
push eax
mov dword [esp + 0x3c], esi
mov word [esp + 0x34], 0x1235
mov word [esp + 0x36], di
mov dword [esp + 0x38], edi
call fcn.00402040
lea ecx, [esp + 0x28]
push 4
push ecx
push ebp
mov dword [esp + 0x34], edi
call fcn.00401100
mov eax, dword [0x427248]
mov ebx, dword [0x427244]
add esp, 0x24
cmp eax, edi
mov dword [esp + 0x14], edi
jbe 0x40cbc6
jmp 0x40ca86
xor edi, edi
push ebx
call fcn.0040d100
mov edx, dword [0x4271bc]
add esp, 4
cmp byte [edx], 0
je 0x40cb9f
mov ecx, dword [ebx + 0x16]
test ch, 2
je 0x40caa9
push edi
jmp 0x40cb03
mov ax, word [ebx + 2]
cmp ax, 0x17
je 0x40cac5
cmp ax, 0x19
je 0x40cac5
cmp ax, 0x1f5
je 0x40cac5
cmp ax, 0x1f4
jne 0x40cb15
test cl, 0x80
jne 0x40cb15
mov eax, dword [ebx + 0x1a]
mov byte [esp + 0x18], 0
cmp eax, edi
je 0x40cae0
test ch, 4
je 0x40cae0
mov byte [esp + 0x18], 1
test cl, 1
je 0x40caea
or byte [esp + 0x18], 8
cmp eax, 3
jne 0x40caf4
or byte [esp + 0x18], 2
test ch, 0x10
je 0x40cafe
or byte [esp + 0x18], 4
mov eax, dword [esp + 0x18]
push eax
push ebp
call fcn.0040b670
mov eax, dword [esp + 0x18]
add esp, 8
inc eax
mov dword [esp + 0x10], eax
push 5
push ebx
call fcn.00403a20
mov edi, eax
add esp, 8
cmp byte [edi], 0
je 0x40cb9f
mov eax, dword [0x4275f4]
test eax, eax
je 0x40cb3e
test dword [ebx + 0x16], 0x800000
mov eax, 0x19
jne 0x40cb43
mov eax, 0x10
mov ecx, dword [0x4271bc]
push eax
push ecx
call fcn.0040b7f0
add esp, 8
test eax, eax
je 0x40cb9f
mov edx, dword [0x4271bc]
push edx
call fcn.00402040
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, dword [0x4271bc]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040b670
mov eax, dword [esp + 0x1c]
add esp, 0xc
inc eax
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x14]
push ebx
inc esi
mov dword [esp + 0x18], esi
call fcn.00403690
mov ebx, eax
mov eax, dword [0x427248]
add esp, 4
cmp esi, eax
jb 0x40ca84
mov esi, dword [esp + 0x24]
xor edi, edi
push ebp
call fcn.00401140
sub eax, esi
add esi, 0xfffffff8
push esi
push ebp
mov dword [esp + 0x2c], eax
call fcn.00401160
lea eax, [esp + 0x28]
push 8
push eax
push ebp
call fcn.00401100
lea ecx, [esp + 0x28]
push 4
push ecx
push ebp
call fcn.00401100
mov edx, dword [esp + 0x44]
add edx, 0xfffffffc
push edx
push ebp
call fcn.00401180
push ebp
call fcn.0040bb30
mov eax, dword [0x427550]
add esp, 0x30
mov ebx, dword [eax + 0xc]
cmp ebx, edi
je 0x40cce8
cmp byte [ebx], 0
je 0x40cce8
test byte [eax], 0x20
je 0x40cce8
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x5c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x5c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x60]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40cce8
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
not ecx
dec ecx
push ecx
push ebx
push 1
push eax
push str.DisplayName
push edx
call esi
mov edx, dword [0x4271b4]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x24]
push str.UninstallString
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x427644]
xor edi, edi
mov eax, dword [ecx*4 + 0x427290]
cmp eax, edi
je 0x40cd0d
mov edx, dword [ecx*4 + 0x427250]
push edx
push eax
push ebp
call fcn.00401100
add esp, 0xc
push ebp
call fcn.00401140
lea eax, [esp + 0x20]
push 8
push eax
push ebp
mov word [esp + 0x2c], 0x7f7f
mov word [esp + 0x2e], 2
mov dword [esp + 0x30], edi
call fcn.00401100
push ebp
call fcn.004012c0
add esp, 0x14
jmp 0x40cd47
push 0xffffffffffffffff
call fcn.0040bb30
add esp, 4
cmp dword [0x427650], edi
jne 0x40d0bc
mov ecx, dword [0x427648]
push ecx
call fcn.00402090
mov edx, dword [0x427550]
add esp, 4
test byte [edx], 4
je 0x40cde0
cmp dword [edx + 0x2c], edi
je 0x40cde0
mov edi, dword [0x427648]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [edx + 0x28]
not ecx
dec ecx
mov edi, ecx
inc edi
cmp eax, 0x10
jb 0x40cd94
mov eax, dword [0x422048]
jmp 0x40cd9b
mov eax, dword [eax*4 + 0x422044]
mov edx, dword [edx + 0x2c]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40cdda
mov eax, dword [0x427648]
mov ecx, dword [0x427550]
push edi
push eax
mov edx, dword [ecx + 0x30]
mov eax, dword [esp + 0x1c]
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x427550]
test byte [edx], 8
je 0x40ce1e
mov ecx, dword [edx + 0x38]
test ecx, ecx
je 0x40ce1e
mov eax, dword [edx + 0x3c]
test eax, eax
je 0x40ce1e
mov edx, dword [edx + 0x40]
test edx, edx
je 0x40ce1e
mov edi, dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
push ecx
mov ecx, dword [0x427648]
push ecx
push edx
push eax
call edi
mov edx, dword [0x427550]
mov eax, dword [edx + 0x38]
push eax
push 0
push 0
push 0
call edi
call fcn.0040c380
call fcn.0040c4e0
call fcn.0040c6f0
mov ecx, dword [0x427648]
push ecx
call fcn.00402040
mov eax, dword [0x427248]
mov esi, dword [0x427244]
add esp, 4
mov dword [esp + 0x14], 0
test eax, eax
mov dword [esp + 0x10], esi
jbe 0x40d0bc
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x40ce6d
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x16]
test ah, 0x10
je 0x40d099
push esi
call fcn.0040d100
mov edx, dword [0x4271bc]
add esp, 4
cmp byte [edx], 0
je 0x40d099
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
cmp edi, 4
jle 0x40cf7d
lea edx, [edx + edi - 4]
push str..reg
push edx
call fcn.004192a0
add esp, 8
test eax, eax
jne 0x40cec5
mov edi, str.regedit__s__
jmp 0x40ceea
mov ecx, dword [0x4271bc]
push str..tlb
lea edx, [ecx + edi - 4]
push edx
call fcn.004192a0
add esp, 8
test eax, eax
jne 0x40cf7d
mov edi, str.regtlib__q__
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, dword [0x4271b8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x4271bc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [0x4271b8]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x422550
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [0x4271b8]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x4271b8]
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
mov esi, dword [esp + 0x10]
jmp 0x40d099
mov ax, word [esi + 2]
cmp ax, 0x1f4
jne 0x40d083
lea ecx, [esp + 0x18]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40d099
mov eax, dword [0x4271a8]
cmp eax, 0x64
jge 0x40d076
push eax
push str.ICLaunch
lea edx, [esp + 0x30]
push str._s_3.3d
push edx
call ebp
mov eax, dword [0x4271a8]
add esp, 0x10
inc eax
lea ecx, [esp + 0x5c]
mov dword [0x4271a8], eax
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push 0
push eax
push ecx
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], 0x168
call ebx
test eax, eax
jne 0x40d01e
mov eax, dword [0x4271a8]
cmp eax, 0x64
jl 0x40cfb6
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d099
mov eax, dword [0x4271bc]
lea edx, [esp + 0x1c4]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
lea ecx, [esp + 0x1c4]
lea edx, [esp + 0x5c]
push ecx
push str.regsvr32__s__s
push edx
call ebp
lea edi, [esp + 0x68]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x5c]
not ecx
dec ecx
push ecx
push eax
push 1
lea ecx, [esp + 0x34]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d099
cmp ax, 0x17
je 0x40d08f
cmp ax, 0x19
jne 0x40d099
push 1
call fcn.0040c970
add esp, 4
mov edi, dword [esp + 0x14]
push esi
inc edi
mov dword [esp + 0x18], edi
call fcn.00403690
mov dword [esp + 0x14], eax
mov eax, dword [0x427248]
add esp, 4
cmp edi, eax
jb 0x40ce69
xor edi, edi
push 1
push edi
push 0x1000000
call fcn.004036a0
add esp, 0xc
pop esi
pop ebp
pop ebx
cmp word [0x422030], 0xffff
jne 0x40d0e6
push 6
call fcn.00409c50
add esp, 4
mov dword [0x4271d4], edi
pop edi
add esp, 0x2b8
ret