Function at 0x4012e0
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e85d
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x41600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
xor edi, edi
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x44], edx
cmp ecx, 2
jne 0x4013cf
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push edi
push eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
push dword [eax + 4]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x58], eax
test eax, eax
jg 0x40134d
or eax, 0xffffffff
jmp 0x401796
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push dword [ebp - 0x58]
mov esi, eax
mov eax, dword [ebp - 0x44]
push esi
push dword [ebp - 0x48]
push dword [eax + 4]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
movaps xmm0, xmmword [0x413de0]
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x3c
mov dword [ebp - 0x90], 0x400
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x88], str.open
mov dword [ebp - 0x84], esi
movups xmmword [ebp - 0x80], xmm0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
push esi
cmove edi, dword [ebp - 0x74]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
jmp 0x401796
xor eax, eax
xor esi, esi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], eax
lea edi, [eax + 1]
mov dword [ebp - 4], esi
cmp ecx, edi
jle 0x4014bf
nop word [eax + eax]
mov edx, dword [edx + edi*4]
mov ecx, edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
lea eax, [ecx + 1]
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x48], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401414
sub ecx, dword [ebp - 0x48]
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00401a50
mov byte [ebp - 4], 1
cmp esi, dword [ebp - 0x4c]
je 0x401467
movups xmm0, xmmword [ebp - 0x28]
mov dword [esi], 0
mov ecx, 0xf
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
mov byte [ebp - 0x28], 0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
add esi, 0x18
mov dword [ebp - 0x50], esi
jmp 0x40147a
lea eax, [ebp - 0x28]
push eax
push esi
lea ecx, [ebp - 0x54]
call fcn.00401c90
mov esi, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp ecx, 0x10
jb 0x4014af
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4014a5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4017b1
push ecx
push edx
call fcn.0040246e
add esp, 8
mov edx, dword [ebp - 0x44]
inc edi
cmp edi, dword [ebp + 8]
jl 0x4013f0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 4], 2
lea edx, [ebp - 0x40]
push esi
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x40], 0x646d632d
mov byte [ebp - 0x3c], 0
call fcn.00401b80
add esp, 8
cmp dword [eax], esi
je 0x40178c
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x40], 0x646d632d
mov byte [ebp - 0x3c], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x54]
call fcn.00401160
mov byte [ebp - 4], 2
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x40152e
mov ecx, dword [eax]
mov edx, dword [eax + 0x10]
cmp edx, 6
jne 0x40177b
mov esi, str.saveAs
sub edx, 4
jb 0x401555
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x40155a
add ecx, 4
add esi, 4
sub edx, 4
jae 0x401544
cmp edx, 0xfffffffc
je 0x40158e
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x401587
cmp edx, 0xfffffffd
je 0x40158e
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x401587
cmp edx, 0xfffffffe
je 0x40158e
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x401587
cmp edx, 0xffffffff
je 0x40158e
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x40158e
sbb eax, eax
or eax, 1
jmp 0x401590
xor eax, eax
test eax, eax
jne 0x40177b
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x40], 0x6372732d
mov byte [ebp - 0x3c], al
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x54]
call fcn.00401160
mov edi, eax
mov byte [ebp - 4], 2
cmp dword [edi + 0x10], 0
je 0x4016e8
mov al, byte [0x413dc8]
mov esi, dword [str._dest]
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 5
mov dword [ebp - 0x28], esi
mov byte [ebp - 0x24], al
mov byte [ebp - 0x23], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x54]
call fcn.00401160
mov byte [ebp - 4], 2
mov dword [ebp - 0x44], eax
cmp dword [eax + 0x10], 0
je 0x4016e8
mov edx, edi
lea ecx, [ebp - 0x40]
call fcn.00401220
mov edx, dword [ebp - 0x44]
lea esi, [ebp - 0x40]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
cmovae esi, dword [ebp - 0x40]
call fcn.00401220
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x14]
test eax, eax
jne 0x4016fa
cmp ecx, 8
jb 0x40169a
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401690
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4017b1
push ecx
push edx
call fcn.0040246e
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x4016e8
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4016de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4017b1
push ecx
push edx
call fcn.0040246e
add esp, 8
lea ecx, [ebp - 0x54]
or esi, 0xffffffff
call fcn.004017d0
mov eax, esi
jmp 0x401796
cmp ecx, 8
jb 0x401731
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401727
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4017b1
push ecx
push edx
call fcn.0040246e
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x40177b
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401771
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4017b1
push ecx
push edx
call fcn.0040246e
add esp, 8
lea ecx, [ebp - 0x54]
mov esi, 1
call fcn.004017d0
mov eax, esi
jmp 0x401796
lea ecx, [ebp - 0x54]
call fcn.004017d0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401fd1
mov esp, ebp
pop ebp
ret
call fcn.004051fc
int3