Function at 0x447810
Capabilities:
Create process on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x46d394]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x84], ecx
mov byte [ebp - 9], 0
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, 0x105
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042e2d1
add esp, 4
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x447a54
mov eax, dword [ebp - 8]
add eax, 0x105
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042e2d1
add esp, 4
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x447a42
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str..exe
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
lea ecx, [ebp - 0x11]
call fcn.00409fd0
movzx eax, al
test eax, eax
je 0x447a30
push str.runas
lea ecx, [ebp - 0x34]
call fcn.004070c0
mov dword [ebp - 0x70], 0
push 0x38
push 0
lea ecx, [ebp - 0x6c]
push ecx
call fcn.004336c0
add esp, 0xc
mov dword [ebp - 0x70], 0x3c
mov dword [ebp - 0x6c], 0x40
mov dword [ebp - 0x68], 0
mov edx, dword [ebp - 0x84]
movzx eax, byte [edx + 0x10]
test eax, eax
je 0x44796d
mov dword [ebp - 0x88], 0
jmp 0x44797b
lea ecx, [ebp - 0x34]
call fcn.00407120
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x84]
movzx eax, byte [edx + 8]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x70]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x447a17
cmp dword [ebp - 0x38], 0
je 0x447a17
mov byte [ebp - 9], 1
mov edx, dword [ebp - 0x84]
movzx eax, byte [edx + 9]
test eax, eax
je 0x4479ef
mov ecx, dword [ebp - 0x84]
movzx edx, byte [ecx + 8]
test edx, edx
jne 0x4479ef
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, eax
call fcn.004477f0
mov ecx, dword [ebp - 0x84]
cmp dword [ecx + 0xc], 0
je 0x447a0b
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
jmp 0x447a15
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x447a28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x14]
mov dword [edx], eax
lea ecx, [ebp - 0x34]
call fcn.00407100
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.0042eb09
add esp, 4
mov edx, dword [ebp - 4]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x80]
push eax
call fcn.0042eb09
add esp, 4
mov al, byte [ebp - 9]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0042e367
mov esp, ebp
pop ebp
ret 4