Function at 0x4076af
Capabilities:
Copy file
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
push ebx
push esi
lea eax, [ebp - 0x210]
push edi
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x407c11
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x210]
push eax
call edi
xor ebx, ebx
cmp byte [ebp + eax - 0x211], 0x5c
jne 0x407701
lea eax, [ebp - 0x210]
push eax
call edi
mov byte [ebp + eax - 0x211], bl
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push str._s_isdelet.ini
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x314]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 1
lea ecx, [ebp - 0x20]
call fcn.00401a66
lea eax, [ebp - 0x314]
mov edi, 0x412314
push ebx
push eax
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x7c], 0x41231c
call fcn.00403a2f
push dword [ebp + 0x18]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x90]
mov esi, 0x412310
push dword [ebp + 0x14]
mov dword [ebp - 0x90], esi
sub esp, 0x1c
mov ecx, esp
push 1
push eax
call fcn.00403fc0
call fcn.0040743a
add esp, 0x24
test al, al
je 0x4079cb
cmp dword [ebp + 0x14], ebx
jne 0x4077a8
mov dword [ebp + 0x10], ebx
lea eax, [ebp - 0xc8]
lea ecx, [ebp - 0x90]
push eax
call fcn.0040c6d9
push ebx
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x60], 0x41231c
call fcn.00403a9e
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x74], esi
call fcn.00401b39
push ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], 0x41231c
call fcn.00401a66
lea eax, [ebp - 0x74]
mov dword [ebp - 0x3c], esi
push eax
lea eax, [ebp - 0xbc]
push ebx
push eax
call fcn.00403ff1
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00404ce8
add esp, 0xc
lea ecx, [ebp - 0x3c]
push eax
call fcn.004045e8
lea ecx, [ebp - 0x58]
call fcn.00401b39
lea ecx, [ebp - 0xbc]
call fcn.00401b39
lea ecx, [ebp - 0x3c]
call fcn.00402077
mov esi, dword [ebp - 0x38]
lea ecx, [ebp - 0x90]
call fcn.00402077
push ebx
push esi
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
lea ecx, [ebp - 0x3c]
jne 0x407873
call fcn.00401b39
lea ecx, [ebp - 0x74]
call fcn.00401b39
lea ecx, [ebp - 4]
call fcn.0040ba4a
jmp 0x407bfe
call fcn.00402077
push ebx
push 0x4000000
push 3
push ebx
push 1
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp dword [ebp - 4], esi
je 0x40789f
lea ecx, [ebp - 4]
call fcn.0040ba4a
mov dword [ebp - 4], esi
lea eax, [ebp + 0x14]
lea ecx, [ebp - 0x3c]
push eax
call fcn.0040b5c4
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edi, dword [eax]
call esi
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
call esi
mov edi, dword [ebp - 0x2c]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push edi
call esi
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.004014e5
push 1
push 0x414604
lea ecx, [ebp - 0x58]
call fcn.004039c3
mov edi, dword [ebp - 0x48]
push edi
call esi
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.004014e5
lea ecx, [ebp - 0x58]
call fcn.00401b39
push 0x414600
lea ecx, [ebp - 0x20]
call fcn.0040b709
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.0040b709
push 1
push str.__your_launcher
lea ecx, [ebp - 0x58]
call fcn.004039c3
mov edi, dword [ebp - 0x48]
push edi
call esi
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.004014e5
lea ecx, [ebp - 0x58]
call fcn.00401b39
mov edi, dword [ebp - 0x64]
push edi
call esi
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.004014e5
push 1
push 0x4145bc
lea ecx, [ebp - 0x58]
call fcn.004039c3
mov edi, dword [ebp - 0x48]
push edi
call esi
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.004014e5
lea ecx, [ebp - 0x58]
call fcn.00401b39
lea eax, [ebp - 0xc8]
lea ecx, [ebp - 0x90]
push eax
call fcn.004042cb
mov edi, dword [eax + 0x10]
push edi
call esi
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.004014e5
lea ecx, [ebp - 0xc8]
call fcn.00401b39
push 0x4145b8
lea ecx, [ebp - 0x20]
call fcn.0040b709
lea ecx, [ebp - 0x3c]
call fcn.00401b39
lea ecx, [ebp - 0x74]
call fcn.00401b39
mov esi, 0x412310
jmp 0x407a2a
mov eax, dword [ebp - 0x80]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
mov dword [ebp + 0x14], eax
call edi
push eax
lea ecx, [ebp - 0x10]
push dword [ebp + 0x14]
call fcn.004014e5
push 1
push 0x414604
lea ecx, [ebp - 0x58]
call fcn.004039c3
mov eax, dword [ebp - 0x48]
push eax
mov dword [ebp + 0x14], eax
call edi
push eax
lea ecx, [ebp - 0x10]
push dword [ebp + 0x14]
call fcn.004014e5
lea ecx, [ebp - 0x58]
call fcn.00401b39
push 0x414600
lea ecx, [ebp - 0x20]
call fcn.0040b709
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.0040b709
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x108]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10c], 0x44
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
call fcn.00402077
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x407be0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0xa0]
cmp dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], eax
je 0x407bc4
push 0x40
push 0xffffffffffffffff
lea eax, [ebp + 0x14]
push ebx
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, ebx
je 0x407acd
cmp eax, 1
je 0x407acd
push 1
push ebx
push ebx
lea eax, [ebp - 0xbc]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
cmp dword [ebp - 0xb8], 0x16
jne 0x407a98
cmp dword [ebp + 0xc], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x407b85
lea eax, [ebp - 0x620]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x620]
push ebx
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x68], 0x412314
mov dword [ebp - 0x60], 0x41231c
call fcn.00403a2f
lea eax, [ebp - 0xc8]
lea ecx, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], esi
call fcn.0040c6d9
mov esi, eax
mov ecx, esi
call fcn.00402077
push dword [esi + 4]
lea eax, [ebp - 0x51c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0xc8]
call fcn.00401b39
lea ecx, [ebp - 0x74]
call fcn.00401b39
lea eax, [ebp - 0x51c]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea eax, [ebp - 0x51c]
push eax
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, ebx
je 0x407b85
push esi
call edi
lea eax, [ebp - 0x418]
push eax
call fcn.00406c0e
pop ecx
lea ecx, [ebp - 0xa0]
call fcn.00407c18
cmp dword [ebp - 4], 0xffffffff
je 0x407bac
push dword [ebp - 4]
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.00401b39
lea ecx, [ebp - 0x20]
call fcn.00401b39
push 1
pop eax
jmp 0x407c13
lea ecx, [ebp - 0xa0]
call fcn.00407c18
cmp dword [ebp - 4], 0xffffffff
je 0x407bac
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407ba8
lea ecx, [ebp - 0xa0]
call fcn.00407c18
cmp dword [ebp - 4], 0xffffffff
je 0x407bfe
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.00401b39
lea ecx, [ebp - 0x20]
call fcn.00401b39
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret