Function at 0x401220
Capabilities:
Create process on windows
Create process suspended
Impersonate user
Read .ini file

Disassembly:
mov eax, 0x1208
call fcn.00402340
push ebx
push ebp
mov ebp, dword [esp + 0x1214]
push esi
push edi
push ebp
lea eax, [esp + 0x5c]
xor esi, esi
push str.Process_d
push eax
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0x40e588
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], 1
mov word [esp + 0x50], si
mov word [esp + 0x52], si
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
call fcn.004022e1
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x250]
lea edx, [esp + 0x58]
push 0x40d39c
push 0x1f4
push ecx
push 0x40e588
push str.CommandLine
push edx
call ebx
lea edi, [esp + 0x250]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
jbe 0x401644
push 0x40d39c
lea eax, [esp + 0x644]
push 0x1f4
push eax
push 0x40e588
lea ecx, [esp + 0x68]
push str.WorkingDir
push ecx
call ebx
push 0x40d39c
lea edx, [esp + 0x44c]
push 0x1f4
push edx
push 0x40e588
lea eax, [esp + 0x68]
push str.UserName
push eax
call ebx
push 0x40d39c
lea ecx, [esp + 0xa34]
push 0x1f4
push ecx
push 0x40e588
lea edx, [esp + 0x68]
push str.Password
push edx
call ebx
push 0x40d39c
lea eax, [esp + 0xc2c]
push 0x1f4
push eax
push 0x40e588
lea ecx, [esp + 0x68]
push str.Domain
push ecx
call ebx
lea edi, [esp + 0x448]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40139a
lea edi, [esp + 0xa30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40139a
mov edi, 1
jmp 0x40139c
xor edi, edi
push 0x40d39c
lea edx, [esp + 0xe24]
push 0x1f4
push edx
push 0x40a198
lea eax, [esp + 0x68]
push str.UserInterface
push eax
call ebx
cmp edi, esi
jne 0x401497
mov al, byte [esp + 0xe20]
cmp al, 0x79
je 0x4013de
cmp al, 0x59
je 0x4013de
cmp al, 0x31
jne 0x401497
mov word [esp + 0x44], 5
mov dword [esp + 0x1c], esi
mov ecx, ebp
lea edi, [esp + 0x640]
shl ecx, 4
add ecx, 0x40dd98
xor eax, eax
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x644]
neg ecx
sbb ecx, ecx
lea edx, [esp + 0x18]
and ecx, eax
push edx
push ecx
push esi
push 0x20
push 1
push esi
lea ecx, [esp + 0x26c]
push esi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4015e1
lea edx, [esp + 0x250]
push edx
push ebp
push str.Started_Process__d____s
call section..text
add esp, 0xc
lea eax, [esp + 0x838]
lea ecx, [esp + 0x58]
push 0x40d39c
push 0x1f4
push eax
push 0x40a16c
push str.PauseStart
push ecx
call ebx
lea edx, [esp + 0x838]
push edx
call fcn.004023fa
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1208
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1018]
push ecx
push 0x104
push edx
push 2
push eax
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
cmp edi, esi
mov word [esp + 0x44], si
jne 0x4014d8
lea eax, [esp + 0x1018]
mov dword [esp + 0x1c], eax
jmp 0x4013e9
lea edi, [esp + 0xc28]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x1c], 0x40e588
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], esi
mov eax, 0x40a15c
je 0x401503
lea eax, [esp + 0xc28]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xa30]
push ecx
push esi
push 5
push edx
push eax
lea eax, [esp + 0x45c]
push eax
call dword [sym.imp.ADVAPI32.dll_LogonUserA]
test eax, eax
je 0x401628
mov ecx, ebp
lea edi, [esp + 0x640]
shl ecx, 4
add ecx, 0x40dd98
xor eax, eax
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x644]
neg ecx
sbb ecx, ecx
lea edx, [esp + 0x18]
and ecx, eax
push edx
mov edx, dword [esp + 0x18]
push ecx
push esi
push 0x20
push 1
push esi
lea ecx, [esp + 0x26c]
push esi
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x4015f7
lea eax, [esp + 0x250]
lea ecx, [esp + 0x448]
push eax
push ebp
push ecx
push str.Started_Process___s___d____s
call section..text
add esp, 0x10
lea edx, [esp + 0x838]
lea eax, [esp + 0x58]
push 0x40d39c
push 0x1f4
push edx
push 0x40a16c
push str.PauseStart
push eax
call ebx
lea ecx, [esp + 0x838]
push ecx
call fcn.004023fa
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1208
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x254]
push eax
push str.Failed_to_start_program__s__error_code___d
jmp 0x40163c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x44c]
lea eax, [esp + 0x254]
push edx
push eax
push str.Failed_to_start_program__s_as_user__s__error_code___d
call section..text
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1208
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x448]
push eax
push ecx
push str.Failed_to_logon_as_user__s__error_code___d
call section..text
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1208
ret