Function at 0x402f80
Capabilities:
Accept command line arguments
Check for software breakpoints
Create thread
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40cad4], eax
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x220]
mov edx, dword [0x40cad4]
lea eax, [edx + ecx + 2]
mov dword [0x40cad4], eax
mov edi, dword [0x40cad4]
mov edx, 0x40c9d8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x348], ecx
mov esi, dword [ebp - 0x348]
mov al, byte [esi]
cmp al, 0xcc
je 0x4030f1
mov edx, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x350], edx
mov esi, dword [ebp - 0x350]
mov al, byte [esi]
cmp al, 0xcc
je 0x4030f1
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x34c], eax
mov esi, dword [ebp - 0x34c]
mov al, byte [esi]
cmp al, 0xcc
je 0x4030f1
lea eax, section..yt
mov dword [ebp - 0x328], eax
call dword [sym.imp.USER32.dll_GetInputState]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0
push 0
push 0
lea ecx, [ebp - 0x344]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
mov edx, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x354], edx
mov esi, dword [ebp - 0x354]
mov al, byte [esi]
cmp al, 0xcc
je 0x40304d
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x35c], eax
mov esi, dword [ebp - 0x35c]
mov al, byte [esi]
cmp al, 0xcc
je 0x40304d
mov ecx, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x358], ecx
mov esi, dword [ebp - 0x358]
mov al, byte [esi]
cmp al, 0xcc
je 0x40304d
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 0x328]
push eax
push 0x402f70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x21c], eax
push 2
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0x40b904
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x218], eax
push 0x104
lea edx, [ebp - 0x324]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea eax, [ebp - 0x324]
push eax
call fcn.00403300
add esp, 8
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x40319e
mov ecx, dword [ebp - 0x214]
mov byte [ecx], 0
lea edi, [ebp - 0x324]
lea edx, [ebp - 0x10c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.App.exe
lea edx, [ebp - 0x10c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
call fcn.00402570
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4031d1
push 4
push 0
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 0xffffffffffffffff
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret