Function at 0x403f4c
Capabilities:
Get common file path
Get installed programs
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x412058]
cmp eax, 0xffffffff
je 0x403f66
push eax
call fcn.00401229
pop ecx
push ebx
xor ebx, ebx
cmp dword [0x414b98], ebx
push esi
push edi
jne 0x404447
mov eax, dword [0x414b04]
cmp byte [eax], bl
je 0x404212
push 2
push eax
call section..text
mov esi, eax
push ebx
push esi
call fcn.0040113a
push esi
call fcn.00401103
push dword [0x414b14]
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], 0x1235
mov word [ebp - 0x12], bx
mov dword [ebp - 0x10], ebx
call fcn.004084fd
lea eax, [ebp - 8]
push 4
push eax
push esi
mov dword [ebp - 8], ebx
call fcn.004010cd
mov edi, dword [0x414b88]
add esp, 0x24
cmp dword [0x414b8c], ebx
mov dword [ebp - 0xc], ebx
jbe 0x4040c1
push edi
call fcn.00404465
pop ecx
mov cl, byte [edi + 0x1a]
cmp cl, 3
jne 0x403fef
push ebx
jmp 0x404031
mov ax, word [edi + 2]
cmp ax, 0x17
je 0x404005
cmp ax, 0x19
je 0x404005
cmp ax, 0x1f4
jne 0x40403c
cmp cl, 1
jne 0x40403c
mov al, byte [edi + 0x17]
mov byte [ebp - 4], bl
cmp al, bl
je 0x40401c
cmp byte [edi + 0x19], cl
jne 0x40401c
mov byte [ebp - 4], cl
cmp al, 3
jne 0x404024
or byte [ebp - 4], 2
cmp byte [edi + 0x1b], 2
jne 0x40402e
or byte [ebp - 4], 4
push dword [ebp - 4]
push esi
call fcn.00403330
inc dword [ebp - 8]
pop ecx
pop ecx
push 4
push edi
call fcn.0040376c
cmp byte [eax], bl
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
je 0x4040a6
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4040a6
push dword [0x414b10]
push dword [ebp - 0x20]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4040a6
push dword [0x414b10]
call fcn.004084fd
push dword [ebp - 0x1c]
push dword [0x414b10]
call fcn.0040a320
push str..lnk
push dword [0x414b10]
call fcn.0040a320
push ebx
push esi
call fcn.00403330
add esp, 0x1c
inc dword [ebp - 8]
inc dword [ebp - 0xc]
push edi
call fcn.004027a9
mov edi, eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x414b8c]
pop ecx
jb 0x403fdd
push esi
call fcn.00401103
mov ecx, eax
mov eax, dword [ebp - 0x18]
sub ecx, eax
add eax, 0xfffffff8
push eax
push esi
mov dword [ebp - 0x10], ecx
call fcn.00401114
lea eax, [ebp - 0x14]
push 8
push eax
push esi
call fcn.004010cd
lea eax, [ebp - 8]
push 4
push eax
push esi
call fcn.004010cd
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffc
push eax
push esi
call fcn.00401127
push esi
call fcn.004035ed
mov eax, dword [0x414c3c]
add esp, 0x30
mov edi, dword [eax + 4]
cmp edi, ebx
je 0x4041e8
cmp byte [edi], bl
je 0x4041e8
lea eax, [ebp - 0x1bc]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push eax
call fcn.0040a310
lea eax, [ebp - 0x1bc]
push edi
push eax
call fcn.0040a320
add esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1bc]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push edi
call fcn.0040a290
pop ecx
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push ebx
push str.DisplayName
push dword [ebp - 4]
call edi
push dword [0x414b04]
call fcn.0040a290
pop ecx
push eax
push dword [0x414b04]
push 1
push ebx
push str.UninstallString
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x1bc]
mov word [ebp - 0x14], 0x1238
push eax
mov word [ebp - 0x12], bx
call fcn.0040a290
add eax, 6
push 8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.004010cd
lea eax, [ebp - 0x18]
push 4
push eax
push esi
mov dword [ebp - 0x18], 0x80000002
call fcn.004010cd
lea eax, [ebp - 0x1bc]
push eax
push esi
call fcn.00403417
add esp, 0x24
push esi
call fcn.00401103
lea eax, [ebp - 0x14]
push 8
push eax
push esi
mov word [ebp - 0x14], 0x7f7f
mov word [ebp - 0x12], bx
mov dword [ebp - 0x10], ebx
call fcn.004010cd
push esi
call fcn.00401229
add esp, 0x14
jmp 0x40421a
push 0xffffffffffffffff
call fcn.004035ed
pop ecx
push dword [0x414b14]
call fcn.00408524
mov eax, dword [0x414c3c]
pop ecx
test byte [eax], 4
je 0x40429b
cmp dword [eax + 0x14], ebx
je 0x40429b
push dword [0x414b14]
call fcn.0040a290
mov esi, eax
mov eax, dword [0x414c3c]
pop ecx
inc esi
mov ecx, dword [eax + 0x10]
cmp ecx, 0x10
jb 0x404259
mov ecx, dword [0x412060]
jmp 0x404260
mov ecx, dword [ecx*4 + 0x41205c]
lea edx, [ebp - 4]
push edx
push dword [eax + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x404296
mov eax, dword [0x414c3c]
push esi
push dword [0x414b14]
push 1
push ebx
push dword [eax + 0x18]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x414c3c]
test byte [eax], 8
je 0x4042d3
mov edx, dword [eax + 0x1c]
cmp edx, ebx
je 0x4042d3
mov ecx, dword [eax + 0x20]
cmp ecx, ebx
je 0x4042d3
mov eax, dword [eax + 0x24]
cmp eax, ebx
je 0x4042d3
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push edx
push dword [0x414b14]
push eax
push ecx
call esi
mov eax, dword [0x414c3c]
push dword [eax + 0x1c]
push ebx
push ebx
push ebx
call esi
call fcn.00403aeb
call fcn.00403bee
call fcn.00403d5c
push dword [0x414b14]
call fcn.004084fd
mov eax, dword [0x414b88]
cmp dword [0x414b8c], ebx
pop ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], eax
jbe 0x404447
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [ebp - 8]
cmp byte [edi + 0x1b], 2
jne 0x404429
push edi
call fcn.00404465
cmp word [edi + 2], 0x1f4
pop ecx
jne 0x4043fd
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x404429
cmp dword [0x414b00], 0x64
jge 0x4043f2
push dword [0x414b00]
lea eax, [ebp - 0x54]
push str.RegCtrl
push str._s_3.3d
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x18]
inc dword [0x414b00]
mov dword [ebp - 0x1c], ebx
push eax
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x54]
push ebx
push eax
push dword [ebp - 4]
mov dword [ebp - 0x18], 0x168
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x404347
lea eax, [ebp - 0x158]
push 0x104
push eax
push dword [0x414b10]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x324]
push str.regsvr32__s__s
push eax
call esi
lea eax, [ebp - 0x324]
push eax
call fcn.0040a290
add esp, 0x10
push eax
lea eax, [ebp - 0x324]
push eax
push 1
lea eax, [ebp - 0x54]
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404429
push dword [0x414b10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, 0x20
jb 0x404429
push str.DllRegisterServer
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x404422
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 8]
inc dword [ebp - 0xc]
call fcn.004027a9
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x414b8c]
pop ecx
jb 0x40430b
cmp word [0x412042], 0xffff
jne 0x40445a
push 7
call fcn.00401cdd
pop ecx
pop edi
mov dword [0x414b28], ebx
pop esi
pop ebx
leave
ret