Function at 0x436160
Capabilities:
Create process on windows
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x15b8
call fcn.004ab360
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x30]
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
push ebx
cmovne eax, ecx
mov dword [ebp - 8], eax
push esi
push edi
mov dword [eax], 0
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x43619d
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, eax
call fcn.0047b2f0
mov esi, dword [ebp + 8]
test esi, esi
je 0x4367a4
cmp word [esi], 0
je 0x4367a4
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4361c4
xor ecx, ecx
cmp word [eax], cx
cmove eax, ecx
mov dword [ebp + 0x10], eax
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp + 8], esi
mov dword [ebp - 0xc], edi
test ebx, ebx
je 0x43625b
push str.find
push esi
call fcn.0049466a
add esp, 8
test eax, eax
je 0x43624e
push str.explore
push esi
call fcn.0049466a
add esp, 8
test eax, eax
je 0x43624e
push str.open
push esi
call fcn.0049466a
add esp, 8
test eax, eax
je 0x43624e
push str.edit
push esi
call fcn.0049466a
add esp, 8
test eax, eax
je 0x43624e
push str.print
push esi
call fcn.0049466a
add esp, 8
test eax, eax
je 0x43624e
push str.properties
push esi
call fcn.0049466a
add esp, 8
test eax, eax
je 0x43624e
mov dword [ebp - 0xc], ebx
jmp 0x436320
mov edi, esi
mov dword [ebp + 8], ebx
mov dword [ebp - 0x10], edi
jmp 0x436320
mov edx, 0x4c89b4
mov ecx, esi
call fcn.004053e1
test eax, eax
je 0x436320
sub eax, esi
sar eax, 1
lea ebx, [eax + eax]
lea eax, [ebx + 2]
call fcn.004ab330
mov eax, esp
push ebx
push esi
push eax
call fcn.004ab450
mov edi, eax
add esp, 0xc
xor eax, eax
mov word [ebx + edi], ax
cmp word [edi], 0x2a
jne 0x43629e
add edi, 2
jmp 0x43630a
push str.find
push edi
call fcn.0049466a
add esp, 8
test eax, eax
je 0x43630a
push str.explore
push edi
call fcn.0049466a
add esp, 8
test eax, eax
je 0x43630a
push str.open
push edi
call fcn.0049466a
add esp, 8
test eax, eax
je 0x43630a
push str.edit
push edi
call fcn.0049466a
add esp, 8
test eax, eax
je 0x43630a
push str.print
push edi
call fcn.0049466a
add esp, 8
test eax, eax
je 0x43630a
push str.properties
push edi
call fcn.0049466a
add esp, 8
test eax, eax
jne 0x43631b
mov dword [ebp - 0x10], edi
test edi, edi
je 0x43631d
lea eax, [esi + 2]
add eax, ebx
mov dword [ebp + 8], eax
jmp 0x43631d
xor edi, edi
mov ebx, dword [ebp + 0xc]
xor edx, edx
mov byte [ebp + 0xf], 0
mov dword [ebp - 0x18], edx
cmp byte [ebp + 0x24], dl
je 0x43638e
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0xb04]
test eax, eax
je 0x436340
cmp dword [eax + 8], edx
jne 0x436361
mov eax, dword [ecx + 0xb10]
test eax, eax
je 0x43634f
cmp dword [eax + 8], edx
jne 0x436361
add ecx, 0xb18
call fcn.004369e0
test al, al
jne 0x43638e
mov ecx, dword [ebp - 0x14]
mov byte [ebp + 0x27], 1
test edi, edi
je 0x436391
cmp byte [ebp + 0x14], dl
je 0x43637d
push 0x4c602c
push str.System_verbs_unsupported_with_RunAs.
call fcn.004354a0
xor eax, eax
lea esp, [ebp - 0x15c4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov byte [ebp + 0x27], dl
mov edi, dword [ebp + 8]
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x436397
sub edi, ecx
sar edi, 1
cmp edi, 0x4001
jb 0x4363d6
cmp byte [ebp + 0x14], dl
je 0x43637d
mov ecx, dword [ebp - 0x14]
push 0x4c602c
push str.String_too_long.
call fcn.004354a0
xor eax, eax
lea esp, [ebp - 0x15c4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
cmp dword [ebp - 0x10], edx
jne 0x436545
push 0x40
lea eax, [ebp - 0xb0]
push 0
push eax
call fcn.00493930
mov ecx, dword [ebp + 0x18]
add esp, 0xc
mov dword [ebp - 0xb4], 0x44
mov dword [ebp - 0x88], 1
test ecx, ecx
je 0x43641a
cmp word [ecx], 0
je 0x43641a
call fcn.0041adb0
jmp 0x43641f
mov eax, 1
mov word [ebp - 0x84], ax
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
test ebx, ebx
je 0x436478
cmp word [ebx], 0
je 0x436478
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x436440
sub ecx, edx
sar ecx, 1
lea eax, [ecx + edi]
lea eax, [eax*2 + 0x14]
call fcn.004ab330
mov eax, esp
push ebx
push esi
push str._s__s
push eax
mov dword [ebp - 0x1c], eax
call fcn.00404b00
mov edx, dword [ebp - 0x1c]
add esp, 0x10
jmp 0x4364a0
lea eax, [edi*2 + 2]
call fcn.004ab330
mov edx, esp
mov ecx, edx
sub ecx, esi
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x436490
cmp byte [ebp + 0x27], 0
mov ebx, dword [ebp + 0x10]
je 0x4364e5
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
lea eax, [ebp + 0xf]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x28]
push dword [ebp - 0x84]
push dword [ebp + 0x14]
push ebx
push edx
call fcn.00455420
test eax, eax
je 0x43637d
cmp byte [ebp + 0xf], 0
jne 0x43677a
mov edx, dword [ebp - 0x18]
jmp 0x436548
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xb4]
push eax
push ebx
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x43653d
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x436518
push eax
call esi
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x2c]
mov dword [ecx], eax
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x436783
push dword [ebp - 0x24]
mov ecx, eax
call fcn.00401470
mov ecx, dword [ebp - 8]
jmp 0x436783
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x436552
mov ebx, dword [ebp + 0x10]
cmp byte [ebp + 0x27], 0
jne 0x4367c2
push 0x38
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00493930
mov eax, dword [ebp + 0x18]
add esp, 0xc
mov dword [ebp - 0x6c], 0x3c
mov dword [ebp - 0x68], 0x440
mov dword [ebp - 0x54], ebx
test eax, eax
je 0x43658c
cmp word [eax], 0
je 0x43658c
mov ecx, eax
call fcn.0041adb0
mov dword [ebp - 0x50], eax
jmp 0x436593
mov dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4365b3
push str.properties
push eax
mov dword [ebp - 0x60], eax
call fcn.0049466a
add esp, 8
test eax, eax
jne 0x4365b3
or dword [ebp - 0x68], 0xc
cmp dword [ebp - 0xc], 0
jne 0x4366e0
lea eax, [edi*2 + 2]
call fcn.004ab330
mov ecx, dword [ebp + 8]
mov edi, esp
mov edx, edi
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4365d2
cmp word [edi], 0x22
jne 0x436622
lea esi, [edi + 2]
push 0x22
push esi
call fcn.00492ca4
add esp, 8
test eax, eax
je 0x436622
xor ecx, ecx
mov dword [ebp + 8], esi
mov word [eax], cx
cmp word [eax + 2], cx
je 0x4366e0
cmp word [eax + 2], 0x20
lea ebx, [eax + 2]
jne 0x4366e3
add ebx, 2
jmp 0x4366e3
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test ebx, ebx
je 0x43662f
push ebx
call esi
lea eax, [edi + 2]
push 0x20
push eax
call fcn.00492ca4
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4366c0
lea esi, [ebx - 2]
cmp esi, edi
jbe 0x43666c
nop
movzx eax, word [esi]
push eax
push 0x4cf154
call fcn.00492ca4
add esp, 8
test eax, eax
jne 0x43666c
sub esi, 2
cmp esi, edi
ja 0x436650
cmp word [esi], 0x2e
jne 0x4366a6
xor eax, eax
mov word [ebx], ax
mov eax, ebx
sub eax, esi
and eax, 0xfffffffe
cmp eax, 8
jne 0x436693
mov edx, esi
mov ecx, str..exe.bat.com.cmd.hta
call fcn.004786c0
test eax, eax
jne 0x4366d2
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x4366d2
mov eax, 0x20
mov word [ebx], ax
lea eax, [ebx + 2]
push 0x20
push eax
call fcn.00492ca4
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x436647
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebx, dword [ebp - 0xc]
cmp dword [ebp + 0x10], 0
je 0x4366e3
push 0x4db558
call esi
jmp 0x4366e3
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
add ebx, 2
mov dword [ebp + 8], edi
jmp 0x4366c3
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x58], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4367b8
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4e02cc]
cmp eax, dword [ecx + 4]
jle 0x436752
push 0x4e02cc
call fcn.00490bb6
add esp, 4
cmp dword [0x4e02cc], 0xffffffff
jne 0x436752
push str.GetProcessId
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4e02cc
mov dword [0x4e02d0], eax
call fcn.00490b77
add esp, 4
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x34]
mov dword [ecx], eax
test eax, eax
je 0x43677d
mov ebx, dword [ebp + 0x28]
test ebx, ebx
je 0x43677d
mov ecx, dword [0x4e02d0]
test ecx, ecx
je 0x43677a
push eax
call ecx
push eax
mov ecx, ebx
call fcn.00401470
mov ecx, dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0x20], 0
je 0x436795
mov eax, dword [0x4d89c0]
mov dword [eax + 0x30], 0
cmp dword [ebp + 0x1c], 0
jne 0x4367a4
mov ecx, dword [ecx]
test ecx, ecx
je 0x4367a4
push ecx
call esi
mov eax, 1
lea esp, [ebp - 0x15c4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x4367c5
mov ebx, dword [ebp - 0xc]
cmp byte [ebp + 0x20], 0
je 0x4367d4
mov ecx, dword [0x4d89c0]
mov dword [ecx + 0x30], edx
cmp byte [ebp + 0x14], 0
je 0x43637d
push 0
push 0x1ff
lea eax, [ebp - 0x5b4]
push eax
push 0
push edx
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x43681f
push eax
push str._nVerb:___s_
lea eax, [ebp - 0x1b4]
push 0x80
push eax
call fcn.004782d0
add esp, 0x10
jmp 0x436828
xor eax, eax
mov word [ebp - 0x1b4], ax
test ebx, ebx
mov edi, 0x4c602c
cmovne edi, ebx
mov edx, edi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x436837
mov ebx, dword [ebp + 8]
sub edx, ecx
mov esi, ebx
sar edx, 1
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x436850
sub esi, ecx
mov ecx, 0x4c90ac
sar esi, 1
mov eax, ecx
cmp edx, 0x190
mov edx, 0x4c602c
cmovbe eax, edx
cmp esi, 0x190
push eax
push edi
lea eax, [ebp - 0x1b4]
cmovbe ecx, edx
cmp byte [ebp + 0x27], 0
push eax
push ecx
push ebx
mov ecx, str.Failed_attempt_to_launch_program_or_document:
mov eax, str.Launch_Error__possibly_related_to_RunAs_:
cmove eax, ecx
push eax
push str._s_nAction:____0.400s_s__s_nParams:____0.400s_s_
lea eax, [ebp - 0x15b4]
push 0x800
push eax
call fcn.004782d0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x5b4]
add esp, 0x24
push eax
lea eax, [ebp - 0x15b4]
push eax
call fcn.004354a0
xor eax, eax
lea esp, [ebp - 0x15c4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24