Function at 0x404310
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x308]
sub esp, 0x308
push 0xffffffffffffffff
push 0x42c260
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x437a60]
xor eax, ebp
mov dword [ebp + 0x304], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
push 0
push str.Entering_ExecuteIt
mov dword [ebp - 0x14], ebx
call fcn.0040ae10
mov esi, dword [ebx + 0xc]
add esp, 8
test esi, esi
je 0x40437d
cmp dword [esi + 4], 0
jne 0x404378
mov eax, dword [esi]
push eax
call fcn.00417b60
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x40437f
xor esi, esi
push 0
push esi
call fcn.0040ae10
mov esi, dword [ebx + 0x10]
lea edi, [ebx + 0x10]
add esp, 8
test esi, esi
je 0x4043aa
cmp dword [esi + 4], 0
jne 0x4043a5
mov ecx, dword [esi]
push ecx
call fcn.00417b60
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x4043ac
xor esi, esi
push 0
push esi
call fcn.0040ae10
mov eax, dword [ebx + 0xc]
add esp, 8
test eax, eax
je 0x404445
mov eax, dword [eax]
test eax, eax
je 0x404445
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
test eax, eax
je 0x40444b
push 0x3c
mov dword [ebp - 4], 0
call fcn.00417e4b
add esp, 4
push 0x3c
mov ebx, eax
push 0
push ebx
call fcn.00418dd0
xor ecx, ecx
mov dword [ebx], 0x3c
mov dword [ebx + 4], 0x40
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
mov eax, dword [edi]
add esp, 0xc
cmp eax, ecx
je 0x404551
mov eax, dword [eax]
cmp eax, ecx
je 0x404551
push eax
call esi
test eax, eax
jbe 0x404551
mov esi, dword [edi]
test esi, esi
je 0x404498
cmp dword [esi + 4], 0
jne 0x404440
mov edx, dword [esi]
push edx
call fcn.00417b60
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x40449a
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
mov eax, dword [edi]
test eax, eax
je 0x404462
mov eax, dword [eax]
test eax, eax
je 0x404462
push eax
call esi
test eax, eax
jne 0x4043d5
push 0
push str.Source_and_Destination_files_empty
call fcn.0040ae10
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x304]
xor ecx, ebp
call fcn.00418a11
add ebp, 0x308
mov esp, ebp
pop ebp
ret
xor esi, esi
push 0x20
push esi
call fcn.00418c50
add esp, 8
test eax, eax
je 0x404521
mov esi, dword [edi]
mov eax, 0x22
mov word [ebp], ax
test esi, esi
je 0x4044ce
cmp dword [esi + 4], 0
jne 0x4044c9
mov ecx, dword [esi]
push ecx
call fcn.00417b60
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
jmp 0x4044d0
xor eax, eax
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4044d2
lea edi, [ebp]
sub eax, edx
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4044e0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404500
mov dx, word [0x42e728]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp]
push eax
add ecx, 0x10
mov word [edi], dx
call fcn.004037d0
mov eax, dword [ebp - 0x14]
mov esi, dword [eax + 0x10]
add eax, 0x10
test esi, esi
je 0x404667
cmp dword [esi + 4], 0
jne 0x40465f
mov ecx, dword [esi]
push ecx
call fcn.00417b60
mov dword [esi + 4], eax
mov esi, eax
mov dword [ebx + 0x10], esi
jmp 0x404623
push 0x200
lea edx, [ebp + 0x104]
push edx
push 0
mov byte [ebp + 0x104], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x104]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404575
sub eax, edx
je 0x404644
lea eax, [ebp + 0x104]
push 0x5c
push eax
call fcn.00418d10
add esp, 8
test eax, eax
je 0x404644
mov edx, dword [ebp - 0x14]
mov esi, dword [edx + 0xc]
lea ecx, [ebp + 0x104]
sub eax, ecx
inc eax
mov byte [ebp + eax + 0x104], 0
test esi, esi
je 0x4045ce
cmp dword [esi + 4], 0
jne 0x4045c9
mov eax, dword [esi]
push eax
call fcn.00417b60
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
jmp 0x4045d0
xor eax, eax
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4045d2
lea edi, [ebp + 0x104]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4045e2
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0
push str.Executing_App_from
rep movsb byte es:[edi], byte [esi]
call fcn.0040ae10
add esp, 8
lea ecx, [ebp + 0x104]
push 0
push ecx
call fcn.0040ae10
lea ecx, [ebp + 0x104]
add esp, 8
mov dword [ebx + 0x10], ecx
mov edx, dword [ebp - 0x14]
mov esi, dword [edx + 0x14]
xor edi, edi
cmp esi, edi
je 0x40466e
cmp dword [esi + 4], edi
jne 0x40463f
mov eax, dword [esi]
push eax
call fcn.00417b60
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x404670
mov edx, dword [ebp - 0x14]
mov esi, dword [edx + 0xc]
test esi, esi
je 0x404667
cmp dword [esi + 4], 0
jne 0x40465f
mov eax, dword [esi]
push eax
call fcn.00417b60
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
mov dword [ebx + 0x10], esi
jmp 0x404623
xor esi, esi
mov dword [ebx + 0x10], esi
jmp 0x404623
xor esi, esi
push ebx
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], 1
mov dword [ebx + 0x20], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push edi
cmp eax, edi
jne 0x404696
push str.Shell_Execute_of_ExecuteIt_failed
jmp 0x404469
push str.Executing_Re_Branding.exe___...
call fcn.0040ae10
mov eax, dword [ebx + 0x38]
add esp, 8
cmp eax, edi
je 0x4046c1
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push str.Re_Branding.exe_execution_completed__...
call fcn.0040ae10
add esp, 8
mov eax, dword [ebx + 0x38]
cmp eax, edi
je 0x4046cf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00417eb0
add esp, 4
push edi
push str.Leaving_Execute_It_successfully
call fcn.0040ae10
add esp, 8
mov al, 1
jmp 0x404473