Function at 0x401b30
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Delete registry key
Get common file path
Get installed programs
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0xc6c]
push ebx
sub esp, 0xc90
mov dword [esp + 4], eax
mov dword [esp], 0xffffffff
call dword [sym.imp.kernel32.dll_IsWow64Process]
sub esp, 8
test eax, eax
je 0x401b68
mov eax, dword [ebp - 0xc6c]
test eax, eax
jne 0x401bf0
call dword [0x4071a0]
cmp dword [ebp + 8], 1
jle 0x401cd0
mov edi, dword [sym.imp.kernel32.dll_lstrcmpW]
mov ebx, 1
jmp 0x401bb3
mov dword [esp + 4], str.__silent
mov dword [esp], esi
call edi
sub esp, 8
test eax, eax
jne 0x401d08
mov dword [section..bss], 1
cmp dword [ebp + 8], ebx
je 0x401cd0
mov eax, dword [ebp + 0xc]
add ebx, 1
mov esi, dword [eax + ebx*4 - 4]
mov dword [esp + 4], str.__help
mov dword [esp], esi
call edi
sub esp, 8
test eax, eax
jne 0x401b88
mov dword [esp + 4], 0x7d3
mov dword [esp], 1
call fcn.00401390
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [ebp - 0xa08]
xor eax, eax
mov ecx, 0x10
lea ebx, [ebp - 0x80c]
mov edi, edx
rep stosd dword es:[edi], eax
lea esi, [ebp - 0xa0c]
mov dword [ebp - 0xa0c], 0x44
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
sub esp, 8
mov dword [esp + 4], str.uninstaller.exe
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcscat]
lea eax, [ebp - 0xc60]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
sub esp, 4
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea edx, [ebp - 0xc0c]
mov dword [esp], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x4021f0
test byte [section..data], 2
jne 0x401d53
mov eax, dword [ebp - 0xc60]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
sub esp, 4
jmp 0x401b68
call dword [0x407290]
mov dword [esp + 0xc], 5
mov dword [esp + 8], str.appwiz.cpl
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00402270
sub esp, 0x10
mov eax, 1
jmp 0x401be7
mov dword [esp + 4], 0x404196
mov dword [esp], esi
call edi
sub esp, 8
test eax, eax
je 0x401d98
mov dword [esp + 4], 0x4041b6
mov dword [esp], esi
call edi
sub esp, 8
test eax, eax
jne 0x40207f
cmp dword [ebp + 8], ebx
jg 0x401dff
mov dword [esp + 4], 0x7d1
mov dword [esp], 0
call fcn.00401390
jmp 0x401cf9
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
mov eax, ebx
call fcn.00401090
mov dword [esp + 0xc], str.failed_to_restart_64_bit__s__err__ld_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x404254
mov dword [esp + 0x14], esi
mov dword [esp + 4], 0x403000
mov dword [esp], 1
call fcn.00401340
jmp 0x401cb7
call fcn.00401a20
mov dword [esp + 4], str.en_US
xor ebx, ebx
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll_setlocale]
mov edi, dword [0x406004]
test edi, edi
je 0x401be5
lea esi, [esi]
mov eax, dword [0x406008]
lea edx, [ebx + ebx*4]
add ebx, 1
lea eax, [eax + edx*4]
mov edx, dword [eax + 8]
mov dword [esp + 8], edx
mov eax, dword [eax + 4]
mov dword [esp], str._ls_ls_n
mov dword [esp + 4], eax
call fcn.00401320
cmp ebx, dword [0x406004]
jb 0x401dc8
xor eax, eax
jmp 0x401be7
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0xc70], eax
call fcn.00401a20
mov esi, dword [0x406004]
test esi, esi
je 0x4020dd
xor ebx, ebx
jmp 0x401e37
add ebx, 1
cmp ebx, dword [0x406004]
jae 0x4020dd
mov eax, dword [0x406008]
lea edi, [ebx + ebx*4]
shl edi, 2
mov esi, dword [eax + edi + 4]
call dword [sym.imp.kernel32.dll_GetThreadLocale]
mov dword [esp + 0x14], 0xffffffff
mov ecx, dword [ebp - 0xc70]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 1
mov dword [esp + 8], esi
mov dword [esp + 0x10], ecx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
cmp eax, 2
jne 0x401e28
mov edx, dword [0x406008]
add dword [edx + edi + 0x10], 1
cmp ebx, dword [0x406004]
jae 0x4020dd
movzx eax, byte [section..data]
xor esi, esi
jmp 0x401f07
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0xc60]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp - 0xc68]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc60]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov edx, eax
movzx eax, byte [section..data]
sub esp, 8
mov ecx, eax
and ecx, 8
jne 0x402135
add esi, 1
cmp esi, dword [0x406004]
jae 0x402102
mov edx, dword [0x406008]
lea ecx, [esi + esi*4]
mov dword [ebp - 0xc74], ecx
shl ecx, 2
add edx, ecx
mov dword [ebp - 0xc70], ecx
mov ecx, eax
mov ebx, dword [edx + 0x10]
and ecx, 8
test ebx, ebx
je 0x401ef2
test cl, cl
jne 0x40209c
lea edi, [ebp - 0xc4c]
xor eax, eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
lea ebx, [ebp - 0xc50]
mov eax, 1
mov dword [ebp - 0xc50], 0x44
mov word [ebp - 0xc20], ax
lea eax, [ebp - 0xc60]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [edx + 0xc]
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x401ea8
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
lea edx, [ebp - 0xc0c]
mov edi, dword [0x407294]
sub esp, 4
mov ebx, eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0xff
mov dword [esp + 4], 0x3e8
mov dword [esp], eax
call edi
lea ecx, [ebp - 0xa0c]
sub esp, 0x10
mov dword [esp + 8], ecx
mov dword [esp], ebx
lea ebx, [ebp - 0x80c]
mov dword [esp + 0xc], 0xff
mov dword [esp + 4], 0x3e9
call edi
mov edx, dword [ebp - 0xc70]
lea ecx, [ebp - 0xa0c]
mov eax, dword [0x406008]
sub esp, 0x10
mov eax, dword [eax + edx + 0xc]
mov dword [esp + 4], ecx
mov dword [esp], ebx
mov dword [esp + 8], eax
call dword [0x40729c]
lea edx, [ebp - 0xc0c]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0x24
mov dword [esp + 8], edx
mov dword [esp], 0
call dword [0x407298]
sub esp, 0x10
cmp eax, 6
je 0x402178
movzx eax, byte [section..data]
mov ecx, eax
and ecx, 8
jmp 0x401ef2
mov dword [esp + 8], esi
mov dword [esp + 4], 0x7d2
mov dword [esp], 0
call fcn.00401390
jmp 0x401cf9
mov eax, dword [edx + 8]
call fcn.00401090
mov dword [esp + 0xc], str.uninstalling__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.UninstallProgram
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call fcn.00401340
mov edx, dword [ebp - 0xc70]
add edx, dword [0x406008]
jmp 0x401f2f
mov eax, dword [ebp - 0xc70]
mov dword [esp + 4], 0x7d0
mov dword [esp], 0
mov dword [esp + 8], eax
call fcn.00401390
xor eax, eax
jmp 0x401be7
test cl, cl
je 0x401be5
mov dword [esp + 0xc], str.finished_uninstall_phase._n
mov dword [esp + 8], str.UninstallProgram
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call fcn.00401340
xor eax, eax
jmp 0x401be7
mov eax, dword [ebp - 0xc68]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str._d:__08lx_n
mov dword [esp + 8], str.UninstallProgram
mov dword [esp + 4], 0x403000
mov dword [esp + 0x14], eax
mov dword [esp], 3
call fcn.00401340
movzx eax, byte [section..data]
mov ecx, eax
and ecx, 8
jmp 0x401ef2
lea eax, [ebp - 0xc64]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionUninstall
mov edx, dword [ebp - 0xc74]
mov eax, dword [0x406008]
mov eax, dword [eax + edx*4]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0xc70]
mov eax, dword [0x406008]
sub esp, 0x14
mov eax, dword [eax + edx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc64]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteKeyW]
mov eax, dword [ebp - 0xc64]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x40206e
test byte [section..data], 8
jne 0x40223c
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0xc0c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push eax
push eax
lea eax, [ebp - 0xc50]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc0c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
push eax
push eax
mov eax, dword [ebp - 0xc50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
mov eax, ebx
call fcn.00401090
mov dword [esp + 0xc], str.restarting__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x404254
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call fcn.00401340
jmp 0x4021f9