Function at 0x418990
Capabilities:
Create process on windows
Enumerate processes
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f204d
mov eax, dword fs:[0]
push eax
sub esp, 0xa90
mov eax, dword [0x5341c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xa80], 0
push 0x208
mov dword [0x53a04c], eax
lea eax, [ebp - 0x830]
push 0
push eax
mov dword [ebp - 0xa88], esi
mov dword [ebp - 0xa98], ecx
call fcn.00470cd0
add esp, 0xc
lea eax, [ebp - 0x830]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call fcn.0041db40
lea eax, [ebp - 0x830]
push eax
push str.WorkPath__s
call fcn.00422f00
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00470cd0
add esp, 0x14
lea eax, [ebp - 0x628]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.00499b3c
add esp, 8
test eax, eax
je 0x418a83
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x628]
push eax
push str.set_WorkPath__s
call fcn.00422f00
add esp, 8
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [ebp - 0xa84]
mov dword [ebp - 0xa84], 8
push eax
mov dword [ebp - 0xa80], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x50124c
push 0
call fcn.0049c39e
add esp, 8
mov ecx, 0x53a104
push 0
push dword [0x53a04c]
push 0
call fcn.0040ec30
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00470cd0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x501250
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.004073a0
mov ecx, eax
test ecx, ecx
je 0x4193aa
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xa78], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xa78]
call fcn.00406e30
test al, al
jne 0x418b82
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418b60
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa78]
call fcn.004089d0
lea eax, [ebp - 0xa78]
mov dword [ebp - 4], 1
push eax
mov ecx, 0x53a5c8
call fcn.00422ac0
mov edx, dword [ebp - 0xa78]
or ebx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418bc1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call fcn.00410800
mov ecx, eax
call fcn.0040d3e0
lea ecx, [ebp - 0xa9c]
call fcn.00405080
mov dword [ebp - 4], 2
call fcn.004172a0
mov ecx, eax
call fcn.00445010
mov eax, dword [0x53a16c]
test al, 1
jne 0x418c1c
or eax, 1
mov dword [0x53a16c], eax
mov ecx, 0x53a168
mov byte [ebp - 4], 3
call fcn.00417250
push 0x4fb7d0
call fcn.00446655
add esp, 4
mov byte [ebp - 4], 2
mov ecx, 0x53a168
call fcn.00417330
push str.uninstall
call fcn.00410890
mov ecx, eax
call fcn.00408b00
lea eax, [ebp - 0xa80]
push eax
call fcn.00425710
add esp, 4
push eax
mov byte [ebp - 4], 4
call fcn.00410890
mov ecx, eax
call fcn.004089c0
mov edx, dword [ebp - 0xa80]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418c78
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00410800
mov ecx, eax
call fcn.0040d4d0
test al, al
je 0x418d07
call fcn.004073a0
mov ecx, eax
test ecx, ecx
je 0x4193b4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xa78], eax
push str.unstlds
lea ecx, [ebp - 0xa78]
mov byte [ebp - 4], 5
call fcn.00406e30
test al, al
jne 0x418ccf
push 7
push str.unstlds
lea ecx, [ebp - 0xa78]
call fcn.004089d0
lea eax, [ebp - 0xa78]
mov byte [ebp - 4], 6
push eax
call fcn.00410890
mov ecx, eax
call fcn.00408920
mov edx, dword [ebp - 0xa78]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418d07
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x228
mov edi, eax
lea eax, [ebp - 0xa70]
push 0
push eax
call fcn.00470cd0
add esp, 0xc
mov dword [ebp - 0xa7c], 0
mov dword [ebp - 0xa74], 0x22c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0xa74]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x418d7c
cmp dword [ebp - 0xa6c], edi
je 0x418d70
lea eax, [ebp - 0xa74]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x418d55
jmp 0x418d7c
mov eax, dword [ebp - 0xa5c]
mov dword [ebp - 0xa7c], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0xa7c]
lea eax, [ebp - 0x848]
push esi
push eax
call fcn.0041fe50
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
mov byte [ebp - 4], 7
cmovae eax, dword [ebp - 0x848]
push eax
push esi
push edi
push str.cur_pid:_u__ppid:_u__file:_s
call fcn.00422f00
add esp, 0x18
lea eax, [ebp - 0x848]
cmp dword [ebp - 0x834], 8
lea ecx, [ebp - 0xa94]
cmovae eax, dword [ebp - 0x848]
push eax
call fcn.00406a20
mov edx, dword [ebp - 0x834]
mov dword [ebp - 0xa80], 1
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x418e2c
mov ecx, dword [ebp - 0x848]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418e22
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4193be
push edx
push ecx
call fcn.0044625a
add esp, 8
xor eax, eax
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 7
mov word [ebp - 0x848], ax
push dword [ebp - 0xa94]
mov byte [ebp - 4], 8
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0xa90]
call fcn.00406a20
mov byte [ebp - 4], 9
call fcn.004073a0
mov ecx, eax
test ecx, ecx
je 0x4193c3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xa8c], eax
push dword [ebp - 0xa90]
lea eax, [ebp - 0xa8c]
mov byte [ebp - 4], 0xa
push str.ex1_father_:__s_
push eax
call fcn.004072e0
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0xa7c], esp
mov dword [eax + 0x24], 0
mov edi, dword [ebp - 0xa8c]
push 0
push edi
push 0x5012a0
mov byte [ebp - 4], 0xb
call fcn.00410890
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.00408610
call fcn.00410800
mov ecx, eax
call fcn.0040d840
push eax
call fcn.00414280
mov ecx, 0x53a140
call fcn.004057b0
test eax, eax
jne 0x418f1f
push str.CheckSingleInstance_failed__exit
call fcn.00422f00
add esp, 4
push 0
push 0x5012ec
push 0
call fcn.00414290
mov dword [ebp - 0xa78], 8
jmp 0x419199
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00470cd0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push dword [0x53a04c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
call fcn.0041db40
lea edx, [ebp - 0x420]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
push str.UltraUninstaller.exe
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
push eax
call fcn.00410890
mov ecx, eax
call fcn.00408930
call fcn.0041db40
mov esi, eax
push esi
mov ecx, dword [esi]
call dword [ecx]
mov dword [ebp - 0xa78], eax
test eax, eax
je 0x4190af
push eax
push str.pre_init_check_failed__ret___d
call fcn.00422f00
add esp, 8
mov byte [ebp - 4], 0xc
call fcn.004073a0
mov ecx, eax
test ecx, ecx
je 0x4193cd
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0xa80], 3
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0xa78]
mov dword [ebp - 0xa7c], esi
sub eax, 0xa
je 0x418ffd
sub eax, 1
jne 0x419015
push 0x2a
push str.7z.dll
jmp 0x419004
push 0x16
push 0x5010b0
lea ecx, [ebp - 0xa7c]
call fcn.004089d0
mov esi, dword [ebp - 0xa7c]
push 0
push esi
push 0
call fcn.00414290
mov byte [ebp - 4], 0xa
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41903a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004073a0
mov ecx, eax
test ecx, ecx
je 0x4193d7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xa80], eax
push dword [ebp - 0xa78]
lea eax, [ebp - 0xa80]
mov byte [ebp - 4], 0xd
push str.720260B5_154E_483f_A485_0B46C3D6C50D
push str._sPreInitCheck:_d
push eax
call fcn.004072e0
add esp, 0x10
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0xa80]
mov eax, ebx
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419199
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x419199
mov eax, dword [esi]
push str.Ultra.ldsprj
push str.SETUPCONFIG
push 0xd1
push dword [0x53a04c]
push esi
call dword [eax + 4]
test eax, eax
jne 0x41917c
push str.init_config_failed__exit
call fcn.00422f00
add esp, 4
push 4
push 0x501138
push 0
call fcn.00414290
cmp eax, 6
jne 0x41910a
push 1
push 0
push 0
push str.http:__ultrauninst.luxiaoche.com_
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.004073a0
mov ecx, eax
test ecx, ecx
je 0x4193e1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xa80], eax
push str.720260B5_154E_483f_A485_0B46C3D6C50D
lea eax, [ebp - 0xa80]
mov byte [ebp - 4], 0xe
push str._sInitConfigFaile
push eax
call fcn.004072e0
add esp, 0xc
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0xa80]
mov eax, ebx
mov dword [ebp - 0xa78], 9
add edx, 0xfffffff0
mov byte [ebp - 4], 0xa
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419199
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x419199
push dword [ebp + 0x14]
push dword [ebp - 0xa98]
push dword [ebp - 0xa88]
call fcn.0041a9c0
add esp, 0xc
mov dword [ebp - 0xa78], eax
mov ecx, 0x53a140
call fcn.00405dd0
mov ecx, dword [0x53a16c]
test cl, 1
jne 0x4191d6
or ecx, 1
mov dword [0x53a16c], ecx
mov ecx, 0x53a168
mov byte [ebp - 4], 0xf
call fcn.00417250
push 0x4fb7d0
call fcn.00446655
add esp, 4
mov byte [ebp - 4], 0xa
mov ecx, 0x53a168
call fcn.004176c0
call fcn.004172a0
mov ecx, eax
call fcn.00445180
call fcn.0041ddf0
mov eax, dword [0x53a048]
add eax, 0x10
push eax
mov dword [ebp - 0xa88], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x53a13c]
test esi, esi
je 0x419258
cmp dword [esi + 4], 0
jle 0x419226
mov eax, dword [esi]
push dword [eax]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [0x53a13c]
test esi, esi
je 0x419258
mov eax, dword [esi]
test eax, eax
je 0x41923f
push eax
call fcn.0049a99f
add esp, 4
mov dword [esi], 0
push 0xc
push esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.0044625a
add esp, 8
push dword [ebp - 0xa88]
mov dword [0x53a13c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x53a138]
test esi, esi
je 0x4192b6
mov eax, dword [esi]
test eax, eax
je 0x41928d
push eax
call fcn.0049a99f
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4192a4
push eax
call fcn.0049a99f
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
mov dword [esi + 8], 0
call fcn.0044625a
add esp, 8
mov esi, dword [0x53a130]
test esi, esi
je 0x4192e8
cmp dword [esi], 0
je 0x4192e8
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4192d2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi + 0x20]
push 0
mov dword [esi + 0x10], 0
call eax
add esi, 0x24
cmp dword [esi], 0
jne 0x4192c5
mov esi, dword [0x533d70]
mov ecx, dword [0x533d74]
cmp esi, ecx
jae 0x419312
mov eax, dword [esi]
test eax, eax
je 0x41930b
mov eax, dword [eax + 0x1c]
push 0
call eax
mov ecx, dword [0x533d74]
add esi, 4
cmp esi, ecx
jb 0x4192f8
mov ecx, 0x53a104
call fcn.0041adb0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], 9
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41933d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xa90]
mov eax, ebx
mov byte [ebp - 4], 8
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41935e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xa94]
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41937d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xa9c]
call fcn.004050c0
mov eax, dword [ebp - 0xa78]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044666a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403b30
push 0x80004005
call fcn.00403b30
call fcn.0047a466
push 0x80004005
call fcn.00403b30
push 0x80004005
call fcn.00403b30
push 0x80004005
call fcn.00403b30
push 0x80004005
call fcn.00403b30
int3