Function at 0x4034e0
Capabilities:
Create process on windows
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x408089
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
mov edx, ecx
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x2c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], eax
mov cl, byte [edx + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x24], eax
mov byte [esp + 0xc], cl
mov dword [esp + 0x28], eax
lea eax, [edx + 0x14]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov ecx, dword [edx]
push ecx
push ebx
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov edi, str.Sobar.exe
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
repne scasb al, byte es:[edi]
mov eax, dword [edx]
mov edx, dword [esp + 0x14]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
mov dword [esp + 0x78], ebx
cmp eax, esi
ja 0x40357c
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
cmp esi, ebx
push ebp
jbe 0x4035c3
mov ecx, dword [esp + 0x18]
push ebx
lea ebp, [ecx + esi]
lea ecx, [esp + 0x14]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4035c3
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov esi, str.Sobar.exe
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov byte [eax + ebp], bl
mov eax, dword [esp + 0x14]
pop ebp
cmp eax, ebx
jne 0x4035d1
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x2c]
push ecx
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40361a
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
push ebx
push ebx
push 0xa
call fcn.00407470
add esp, 0xc
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x403627
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x403664
mov al, byte [ecx - 1]
cmp al, bl
je 0x40365a
cmp al, 0xff
je 0x40365a
dec al
pop edi
mov byte [ecx - 1], al
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x70]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret