Function at 0x429850
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x384
mov eax, dword [0x451178]
mov cx, word [0x45117c]
push esi
push edi
lea edx, [esp + 0x184]
xor edi, edi
push 0x104
push edx
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], cx
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0x183]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp cl, 0x5c
je 0x4298b5
lea ecx, [esp + 0x184]
push 0x446350
push ecx
call esi
lea edx, [esp + 0x184]
push 0x451168
push edx
call esi
push 8
lea eax, [esp + 0x188]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x429914
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
lea ecx, [esp + 0x40]
push 0x451148
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
call esi
lea edx, [esp + 0x3c]
push eax
push edx
call fcn.00424580
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x384
ret
push 0x451134
push eax
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
jne 0x42995f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
lea eax, [esp + 0x40]
push 0x451110
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
call esi
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.00424580
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x384
ret
mov ecx, dword [esp + 0x390]
push ebx
lea edx, [esp + 0xc]
push ebp
push edx
push ecx
call eax
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x429b5d
call esi
mov edx, dword [esp + 0x398]
mov edi, eax
push edi
push edx
lea eax, [esp + 0x4c]
push 0x4510e0
push eax
call ebx
add esp, 0x10
call esi
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.00424580
add esp, 8
cmp edi, 0x522
jne 0x429b5d
mov edx, dword [esp + 0x398]
push edi
push edx
lea eax, [esp + 0x4c]
push 0x452d28
push eax
call ebx
add esp, 0x10
call esi
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.00424580
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add esp, 8
lea edx, [esp + 0x10]
push edx
push 0x28
call ebp
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x429b31
call esi
mov edi, eax
mov eax, dword [esp + 0x398]
push edi
push eax
lea ecx, [esp + 0x4c]
push 0x452cf8
push ecx
call ebx
add esp, 0x10
call esi
lea edx, [esp + 0x44]
push eax
push edx
call fcn.00424580
add esp, 8
lea eax, [esp + 0x28]
push eax
push 0x44f90c
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x429a73
call esi
mov ecx, dword [esp + 0x398]
push eax
push ecx
lea edx, [esp + 0x4c]
push 0x452cc0
push edx
call ebx
add esp, 0x10
call esi
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00424580
add esp, 8
jmp 0x429c44
mov edx, dword [esp + 0x10]
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
push 0
push edx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x48], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x429ace
call esi
push eax
mov eax, dword [esp + 0x39c]
push eax
push 0x452c88
lea ecx, [esp + 0x50]
push ecx
call ebx
add esp, 0x10
call esi
lea edx, [esp + 0x44]
push eax
push edx
call fcn.00424580
add esp, 8
jmp 0x429c44
mov eax, dword [esp + 0x10]
test eax, eax
je 0x429add
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
push 0x1ab
call ebp
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x429b5b
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x398]
push 4
push ecx
push 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x429b21
call esi
push eax
mov eax, dword [esp + 0x39c]
push eax
push 0x452c54
jmp 0x429b41
mov eax, dword [esp + 0x398]
push edi
push eax
push 0x452c20
jmp 0x429b41
call esi
push eax
mov eax, dword [esp + 0x39c]
push eax
push 0x452bf0
lea ecx, [esp + 0x50]
push ecx
call ebx
add esp, 0x10
call esi
lea edx, [esp + 0x44]
push eax
push edx
call fcn.00424580
add esp, 8
xor edi, edi
mov eax, dword [esp + 0x10]
xor ebp, ebp
cmp eax, ebp
jne 0x429b7a
mov eax, dword [esp + 0x398]
push edi
push eax
push 0x4510b0
jmp 0x429aaf
mov ecx, dword [0x4572fc]
lea eax, [esp + 0x290]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x148]
rep stosd dword es:[edi], eax
mov eax, dword [0x45b270]
mov edi, 1
cmp eax, ebp
mov dword [esp + 0x148], 0x44
mov word [esp + 0x178], 0xa
mov dword [esp + 0x174], edi
je 0x429bdb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x45b270], ebp
lea edx, [esp + 0x34]
lea eax, [esp + 0x148]
push edx
push eax
mov eax, dword [esp + 0x18]
push ebp
push ebp
push 0x30
push ebp
push ebp
lea ecx, [esp + 0x38]
push ebp
lea edx, [esp + 0x2b0]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x429c33
call esi
push eax
lea ecx, [esp + 0x48]
push 0x451048
push ecx
call ebx
add esp, 0xc
call esi
lea edx, [esp + 0x44]
push eax
push edx
call fcn.00424580
add esp, 8
mov dword [esp + 0x14], ebp
jmp 0x429c44
mov eax, dword [esp + 0x34]
cmp eax, ebp
je 0x429c44
cmp eax, 0xffffffff
je 0x429c44
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
pop ebp
test eax, eax
pop ebx
je 0x429c60
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x384
ret