Function at 0x401130
Capabilities:
Copy file
Create process on windows
Delete directory
Delete file
Delete registry key
Extract resource via kernel32 functions
Get common file path
Persist via lnk shortcut
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xef8
mov eax, dword [0x418004]
xor eax, esp
mov dword [esp + 0xef4], eax
push esi
push edi
push 0
mov dword [esp + 0x70], 0x104
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov esi, eax
push 0x65
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4011d8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4011d8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0xc], eax
test eax, eax
je 0x4011d8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor ecx, ecx
mov dword [esp + 8], eax
xor edi, edi
mov dword [esp + 0x44], ecx
xor esi, esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x48], ecx
test eax, eax
je 0x4011e0
nop dword [eax]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x40]
mov edi, dword [esi + eax]
lea edx, [eax + 4]
push edi
add edx, esi
call fcn.00401000
add esp, 4
test eax, eax
jne 0x4011d8
add esi, 4
add esi, edi
cmp esi, dword [esp + 8]
jb 0x4011b0
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov esi, dword [ecx]
cmp esi, 0x206
jbe 0x401206
push 0x10
push str.Error
push str.InitRsrcData:_nInvalid_path.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
shr esi, 1
push esi
push dword [edi]
push 0x4192c0
call fcn.0040463b
add esi, esi
add esp, 0xc
cmp esi, 0x208
jae 0x40154f
xor eax, eax
mov word [esi + 0x4192c0], ax
xor esi, esi
cmp dword [esp + 0x48], eax
jbe 0x401264
push dword [edi + esi*4]
call fcn.004030cb
mov eax, dword [esp + 0x4c]
inc esi
add esp, 4
cmp esi, eax
jb 0x401237
test eax, eax
je 0x401264
push edi
call fcn.004030cb
add esp, 4
push dword [esp + 0x44]
call fcn.004030cb
add esp, 4
push 0x4192c0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push str._ls_ls
lea eax, [esp + 0x4d4]
push 0x104
push eax
call fcn.004010f0
mov esi, dword [sym.imp.USER32.dll_MessageBoxW]
add esp, 0x14
test eax, eax
js 0x401541
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x2c4]
push eax
push 0
push 2
push str.InstallLocation
lea eax, [esp + 0x4dc]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x4012eb
push 0x10
push str.Error
push str.Couldnt_retrieve_software_information.
push 0
call esi
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xef4]
xor ecx, esp
call fcn.00401555
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0xb8]
push 0x104
push eax
push 0
call edi
push 0x104
lea eax, [esp + 0xbc]
push eax
call dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchRemoveFileSpec]
lea eax, [esp + 0x2c0]
push eax
lea eax, [esp + 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4013f0
push 0x104
lea eax, [esp + 0x8dc]
push eax
push 0
call edi
lea eax, [esp + 0x6d0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0xb8]
push eax
push 0
push 0x416cf4
lea eax, [esp + 0x6dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0x8e0]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x44
lea eax, [esp + 0x74]
push 0
push eax
call fcn.00402490
add esp, 0xc
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x74]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push 0
lea eax, [esp + 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [esp + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x30]
call esi
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xef4]
xor ecx, esp
call fcn.00401555
mov esp, ebp
pop ebp
ret 0x10
push 0x24
push str.Confirmation
push str.Are_you_sure_you_want_to_uninstall_
push 0
call esi
cmp eax, 7
je 0x401529
push 0
push 0
lea eax, [esp + 0x2c8]
push eax
push str._ls_c_c
lea eax, [esp + 0xcf8]
push 0x105
push eax
call fcn.004010f0
add esp, 0x18
test eax, eax
js 0x401541
movups xmm0, xmmword [0x4111b0]
lea eax, [esp + 0xce8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
mov eax, 0x614
mov word [esp + 0x20], ax
lea eax, [esp + 0xc]
push eax
push 0
push 0
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], 3
push eax
mov dword [esp + 0x2c], 0
movups xmmword [esp + 0x50], xmm0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x4014a6
push dword [esp + 0xc]
lea eax, [esp + 0xbc]
push 0x416cec
push 0x104
push eax
call fcn.004010f0
add esp, 0x10
push dword [esp + 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0x4192c0
lea eax, [esp + 0xbc]
push eax
push str._ls_ls.lnk
lea eax, [esp + 0xaec]
push 0x104
push eax
call fcn.004010f0
add esp, 0x14
test eax, eax
js 0x401541
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
lea eax, [esp + 0x2c0]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
lea eax, [esp + 0x4d0]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
lea eax, [esp + 0xae0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push str.Success
push str.Uninstall_complete.
push 0
call esi
mov ecx, dword [esp + 0xefc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00401555
mov esp, ebp
pop ebp
ret 0x10
push 0x10
push str.Error
push str.swprintf:_nInvalid_path.
jmp 0x401525
call fcn.00401688
int3