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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x28]
sub esp, 0xaf0
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, edx
xor edx, edx
push edi
mov edi, dword [ebp + 0xc]
cmp eax, edx
jne 0x42d883
lea eax, [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov dword [eax], edx
cmp ecx, edx
je 0x42d893
call fcn.00412530
xor edx, edx
cmp ebx, edx
je 0x42dc3e
cmp byte [ebx], 0
je 0x42dc3e
cmp esi, edx
je 0x42d8b0
cmp byte [esi], 0
jne 0x42d8b0
mov dword [ebp + 0x10], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], edx
cmp edi, edx
je 0x42d93c
push str.find
push ebx
call fcn.00480f51
add esp, 8
test eax, eax
je 0x42d931
push str.explore
push ebx
call fcn.00480f51
add esp, 8
test eax, eax
je 0x42d931
push str.open
push ebx
call fcn.00480f51
add esp, 8
test eax, eax
je 0x42d931
push str.edit
push ebx
call fcn.00480f51
add esp, 8
test eax, eax
je 0x42d931
push 0x4988a8
push ebx
call fcn.00480f51
add esp, 8
test eax, eax
je 0x42d931
push str.properties
push ebx
call fcn.00480f51
add esp, 8
test eax, eax
je 0x42d931
mov dword [ebp - 0x14], edi
jmp 0x42d9f1
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edi
jmp 0x42d9f1
mov edi, 0x495fdc
mov eax, ebx
call fcn.00408f10
test eax, eax
je 0x42d9f1
sub eax, ebx
mov edi, eax
lea eax, [edi + 1]
call fcn.0048a7f0
mov eax, esp
push edi
push ebx
push eax
call fcn.004896c0
mov esi, eax
add esp, 0xc
mov byte [esi + edi], 0
cmp byte [esi], 0x2a
jne 0x42d977
inc esi
jmp 0x42d9e3
push str.find
push esi
call fcn.00480f51
add esp, 8
test eax, eax
je 0x42d9e3
push str.explore
push esi
call fcn.00480f51
add esp, 8
test eax, eax
je 0x42d9e3
push str.open
push esi
call fcn.00480f51
add esp, 8
test eax, eax
je 0x42d9e3
push str.edit
push esi
call fcn.00480f51
add esp, 8
test eax, eax
je 0x42d9e3
push 0x4988a8
push esi
call fcn.00480f51
add esp, 8
test eax, eax
je 0x42d9e3
push str.properties
push esi
call fcn.00480f51
add esp, 8
test eax, eax
jne 0x42d9f1
mov dword [ebp - 0x10], esi
test esi, esi
je 0x42d9f1
lea eax, [edi + ebx + 1]
mov dword [ebp - 0xc], eax
push 0x1ff
lea ecx, [ebp - 0x2eb]
push 0
push ecx
mov byte [ebp - 5], 0
mov byte [ebp - 0x2ec], 0
call fcn.0048a290
mov esi, dword [ebp + 8]
add esp, 0xc
cmp byte [ebp + 0x24], 0
je 0x42da7c
mov eax, dword [esi + 0x5fc]
test eax, eax
je 0x42da2b
cmp dword [eax + 8], 0
jne 0x42da4a
mov eax, dword [esi + 0x608]
test eax, eax
je 0x42da3b
cmp dword [eax + 8], 0
jne 0x42da4a
lea eax, [esi + 0x610]
call fcn.0042df70
test al, al
jne 0x42da7c
cmp dword [ebp - 0x10], 0
mov byte [ebp + 0x27], 1
je 0x42da80
cmp byte [ebp + 0x14], 0
je 0x42da6b
push 0x4947f9
push str.System_verbs_unsupported_with_RunAs.
mov ecx, esi
call fcn.0042cde0
xor eax, eax
lea esp, [ebp - 0xafc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov byte [ebp + 0x27], 0
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42da86
sub eax, edx
mov dword [ebp - 0x1c], eax
cmp eax, 0x4001
jb 0x42dac0
cmp byte [ebp + 0x14], cl
je 0x42daaf
push 0x4947f9
push str.String_too_long.
mov ecx, esi
call fcn.0042cde0
xor eax, eax
lea esp, [ebp - 0xafc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
cmp dword [ebp - 0x10], 0
jne 0x42dcb2
push 0x40
lea edx, [ebp - 0xb0]
push 0
push edx
call fcn.0048a290
mov eax, dword [ebp + 0x18]
add esp, 0xc
mov dword [ebp - 0xb4], 0x44
mov dword [ebp - 0x88], 1
test eax, eax
je 0x42db06
cmp byte [eax], 0
je 0x42db06
mov esi, eax
call fcn.00413b40
jmp 0x42db0b
mov eax, 1
mov edi, dword [ebp + 0xc]
mov word [ebp - 0x84], ax
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
cmp edi, eax
je 0x42db59
cmp byte [edi], al
je 0x42db59
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42db30
mov ecx, dword [ebp - 0x1c]
sub eax, edx
lea eax, [eax + ecx + 0xa]
call fcn.0048a7f0
mov esi, esp
push edi
push ebx
push str._s__s
push esi
call fcn.00481488
add esp, 0x10
jmp 0x42db7a
mov eax, dword [ebp - 0x1c]
inc eax
call fcn.0048a7f0
mov esi, esp
mov edx, esi
mov eax, ebx
sub edx, ebx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x42db70
cmp byte [ebp + 0x27], 0
je 0x42dbc9
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x2ec]
push edx
push eax
mov eax, dword [ebp + 0x28]
lea ecx, [ebp - 5]
push ecx
mov ecx, dword [ebp - 0x84]
lea edx, [ebp - 0x2c]
push edx
mov edx, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 8]
push ecx
mov cl, byte [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push esi
push eax
call fcn.0044d040
test eax, eax
jne 0x42dca5
lea esp, [ebp - 0xafc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0xb4]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x42dc52
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42dbfd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov dword [edx], ecx
test eax, eax
je 0x42dc15
push eax
mov eax, dword [ebp - 0x24]
call fcn.004011f0
cmp byte [ebp + 0x20], 0
je 0x42dc28
mov ecx, dword [0x4a2440]
mov dword [ecx + 0x30], 0
cmp dword [ebp + 0x1c], 0
jne 0x42dc3e
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
test eax, eax
je 0x42dc3e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
lea esp, [ebp - 0xafc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [ebp + 0x20]
push eax
mov eax, 0x200
lea esi, [ebp - 0x2ec]
call fcn.0046f4f0
add esp, 4
push 0x38
lea edx, [ebp - 0x68]
push 0
push edx
call fcn.0048a290
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x18]
add esp, 0xc
mov dword [ebp - 0x6c], 0x3c
mov dword [ebp - 0x68], 0x440
test eax, eax
je 0x42dce2
cmp byte [eax], 0
je 0x42dce2
mov esi, eax
call fcn.00413b40
mov dword [ebp - 0x50], eax
jmp 0x42dce9
cmp byte [ebp - 5], 0
jne 0x42dc15
mov esi, dword [ebp + 8]
cmp byte [ebp + 0x27], 0
je 0x42dc69
cmp byte [ebp + 0x14], 0
je 0x42dcd1
lea ecx, [ebp - 0x2ec]
push ecx
push str.Launch_Error__possibly_related_to_RunAs_.
mov ecx, esi
call fcn.0042cde0
xor eax, eax
lea esp, [ebp - 0xafc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x42dd09
push str.properties
push eax
mov dword [ebp - 0x60], eax
call fcn.00480f51
add esp, 8
test eax, eax
jne 0x42dd09
or dword [ebp - 0x68], 0xc
cmp dword [ebp - 0x14], 0
jne 0x42de0e
mov eax, dword [ebp - 0x1c]
inc eax
call fcn.0048a7f0
mov eax, dword [ebp - 0xc]
mov ebx, esp
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x42dd25
cmp byte [ebx], 0x22
jne 0x42dd6b
lea esi, [ebx + 1]
push 0x22
push esi
call fcn.00481f21
add esp, 8
test eax, eax
je 0x42dd6b
mov byte [eax], 0
inc eax
cmp byte [eax], 0
mov dword [ebp - 0xc], esi
je 0x42de0e
cmp byte [eax], 0x20
mov dword [ebp - 0x14], eax
jne 0x42de0e
inc eax
mov dword [ebp - 0x14], eax
jmp 0x42de0e
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x42dd79
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebx + 1]
push 0x20
push ecx
call fcn.00481f21
mov edi, eax
add esp, 8
test edi, edi
je 0x42ddfd
lea ecx, [ecx]
lea esi, [edi - 1]
cmp esi, ebx
jbe 0x42ddb1
movsx eax, byte [esi]
push eax
push 0x49892c
call fcn.00481f21
add esp, 8
test eax, eax
jne 0x42ddb1
dec esi
cmp esi, ebx
ja 0x42dd97
cmp byte [esi], 0x2e
jne 0x42dde2
mov edx, edi
sub edx, esi
mov byte [edi], 0
cmp edx, 4
jne 0x42ddd4
push esi
mov eax, str..exe.bat.com.cmd.hta
call fcn.0046e8b0
add esp, 4
test eax, eax
jne 0x42ddf6
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x42ddf6
mov byte [edi], 0x20
push 0x20
inc edi
push edi
call fcn.00481f21
mov edi, eax
add esp, 8
test edi, edi
jne 0x42dd90
jmp 0x42ddfd
inc edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], edi
cmp dword [ebp + 0x10], 0
je 0x42de0e
push 0x4a6478
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x6c]
push edx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x42de89
test byte [0x4a8ef8], 1
jne 0x42de56
or dword [0x4a8ef8], 1
push str.GetProcessId
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4a8ef4], eax
jmp 0x42de5b
mov eax, dword [0x4a8ef4]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x18]
mov dword [edx], ecx
test ecx, ecx
je 0x42dc15
cmp dword [ebp + 0x28], 0
je 0x42dc15
test eax, eax
je 0x42dc15
push ecx
call eax
mov ecx, dword [ebp + 0x28]
push ecx
jmp 0x42dc10
mov edx, dword [ebp + 0x20]
push edx
mov eax, 0x200
lea esi, [ebp - 0x2ec]
call fcn.0046f4f0
add esp, 4
cmp byte [ebp + 0x14], 0
je 0x42df55
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x42decc
push eax
push str._nVerb:___s_
mov esi, 0x80
lea edi, [ebp - 0xec]
call fcn.0046e530
add esp, 8
jmp 0x42ded3
mov byte [ebp - 0xec], 0
mov ebx, dword [ebp - 0x14]
test ebx, ebx
jne 0x42dedf
mov ebx, 0x4947f9
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42dee4
sub eax, edx
mov edi, 0x496264
cmp eax, 0x190
ja 0x42defe
mov edi, 0x4947f9
mov esi, dword [ebp - 0xc]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42df06
sub eax, edx
cmp eax, 0x190
mov eax, 0x496264
ja 0x42df20
mov eax, 0x4947f9
push edi
push ebx
lea ecx, [ebp - 0xec]
push ecx
push eax
push esi
push str.Failed_attempt_to_launch_program_or_document:_nAction:____0.400s_s__s_nParams:____0.400s_s_
mov esi, 0x800
lea edi, [ebp - 0xaec]
call fcn.0046e530
mov ecx, dword [ebp + 8]
add esp, 0x18
lea edx, [ebp - 0x2ec]
push edx
mov eax, edi
push eax
call fcn.0042cde0
xor eax, eax
lea esp, [ebp - 0xafc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24