Function at 0x406ab0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push 0x40
lea eax, [esp + 0x30]
push ebp
push eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x34], ebp
call fcn.0041c150
mov ebx, dword [esp + 0x84]
add esp, 0xc
cmp ebx, ebp
je 0x406b24
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406af0
sub eax, edx
lea esi, [eax + 1]
lea edi, [esi*4]
push 1
push edi
call fcn.004147a3
add esp, 8
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x406b65
push edi
push eax
push esi
push ebx
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x7c]
cmp eax, ebp
je 0x406b7f
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406b30
sub eax, edx
lea esi, [eax + 1]
lea edi, [esi*4]
push 1
push edi
call fcn.004147a3
add esp, 8
cmp eax, ebp
mov dword [esp + 0x14], eax
jne 0x406b6f
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041336e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
mov edx, dword [esp + 0x7c]
push edi
push eax
push esi
push edx
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x80]
cmp eax, ebp
je 0x406bef
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406b90
sub eax, edx
lea esi, [eax + 1]
lea edi, [esi*4]
push 1
push edi
call fcn.004147a3
add esp, 8
cmp eax, ebp
mov dword [esp + 0x18], eax
jne 0x406bdc
mov eax, dword [esp + 0x10]
push eax
call fcn.0041336e
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call fcn.0041336e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
mov edx, dword [esp + 0x80]
push edi
push eax
push esi
push edx
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, dword [esp + 0x84]
cmp ebx, ebp
je 0x406c77
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406c00
sub eax, edx
lea esi, [eax + 1]
lea edi, [esi*4]
push 1
push edi
call fcn.004147a3
add esp, 8
cmp eax, ebp
mov dword [esp + 0x1c], eax
jne 0x406c6b
mov eax, dword [esp + 0x10]
push eax
call fcn.0041336e
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call fcn.0041336e
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
call fcn.0041336e
add esp, 4
push ebp
call fcn.0041336e
add esp, 4
push ebp
call fcn.0041336e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
push edi
push eax
push esi
push ebx
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x88]
cmp eax, ebp
je 0x406d7b
mov ebx, dword [eax + 0xc]
cmp ebx, ebp
mov ecx, 0x11
mov esi, eax
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x34], ebp
je 0x406cd7
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406ca3
sub eax, edx
lea esi, [eax + 1]
lea edi, [esi*4]
push 1
push edi
call fcn.004147a3
add esp, 8
cmp eax, ebp
mov dword [esp + 0x34], eax
je 0x406cd7
push edi
push eax
push esi
push ebx
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x88]
mov ebx, dword [eax + 8]
cmp ebx, ebp
mov dword [esp + 0x30], ebp
je 0x406d24
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406cf0
sub eax, edx
lea esi, [eax + 1]
lea edi, [esi*4]
push 1
push edi
call fcn.004147a3
add esp, 8
cmp eax, ebp
mov dword [esp + 0x30], eax
je 0x406d24
push edi
push eax
push esi
push ebx
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esp + 0x88]
mov ebx, dword [ecx + 4]
cmp ebx, ebp
mov dword [esp + 0x2c], ebp
je 0x406d74
mov eax, ebx
lea edx, [eax + 1]
jmp 0x406d40
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406d40
sub eax, edx
lea esi, [eax + 1]
lea edi, [esi*4]
push 1
push edi
call fcn.004147a3
add esp, 8
cmp eax, ebp
mov dword [esp + 0x2c], eax
je 0x406d74
push edi
push eax
push esi
push ebx
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, dword [esp + 0x84]
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x1c]
push ebp
push ebp
push ebp
push ecx
mov ecx, dword [esp + 0x28]
push ebp
push 1
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
cmp ebx, ebp
mov esi, eax
mov dword [esp + 0x20], ebx
jne 0x406dba
mov dword [esp + 0x20], 0x425750
mov eax, dword [esp + 0x80]
cmp eax, ebp
mov dword [esp + 0x24], eax
jne 0x406dd1
mov dword [esp + 0x24], 0x425750
mov ebx, dword [esp + 0x7c]
cmp ebx, ebp
jne 0x406dde
mov ebx, 0x425750
mov edi, dword [esp + 0x78]
cmp edi, ebp
jne 0x406deb
mov edi, 0x425750
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push esi
push edx
push 0x425750
push eax
push ebx
push edi
push str.CreateProcessWithLogonW:_UserName__s__Domain__s__Password__s__AppName__s__CmdLine__s__Ret__d__LastError__d_
push 0x60f
push str..Cutil_Process.c
push 2
mov ecx, str.cutil_process_create_with_logon
call fcn.00405d70
mov eax, dword [esp + 0xb0]
add esp, 0x2c
test eax, eax
mov dword [esp + 0x24], eax
jne 0x406e3b
mov dword [esp + 0x24], 0x425750
mov eax, dword [esp + 0x80]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x406e52
mov dword [esp + 0x20], 0x425750
mov ebx, dword [esp + 0x7c]
test ebx, ebx
jne 0x406e5f
mov ebx, 0x425750
mov edi, dword [esp + 0x78]
test edi, edi
jne 0x406e6c
mov edi, 0x425750
call ebp
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
push esi
push ecx
push 0x425750
push edx
push ebx
push edi
push str.CreateProcessWithLogonW:_UserName__s__Domain__s__Password__s__AppName__s__CmdLine__s__Ret__d__LastError__d_
push 0x60f
push str..Cutil_Process.c
push 2
mov ecx, str.cutil_process_create_with_logon
call fcn.00405a90
mov eax, dword [esp + 0x3c]
add esp, 0x2c
push eax
call fcn.0041336e
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call fcn.0041336e
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
call fcn.0041336e
add esp, 4
push 0
call fcn.0041336e
add esp, 4
push 0
call fcn.0041336e
mov eax, dword [esp + 0x20]
add esp, 4
push eax
call fcn.0041336e
mov ecx, dword [esp + 0x38]
add esp, 4
push ecx
call fcn.0041336e
mov edx, dword [esp + 0x34]
add esp, 4
push edx
call fcn.0041336e
mov eax, dword [esp + 0x30]
add esp, 4
push eax
call fcn.0041336e
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret