Function at 0x408e55
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path

Disassembly:
mov eax, 0x426a8e
call fcn.00415e78
sub esp, 0x788
push ebx
push esi
push edi
push 0x40
pop ecx
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x488], bl
lea edi, [ebp - 0x487]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x104
push esi
lea eax, [ebp - 0x488]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x190], 0x427508
mov dword [ebp - 0x18c], ebx
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x184], ebx
mov dword [ebp - 0x180], ebx
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x178], ebx
lea eax, [ebp - 0x190]
push eax
mov ecx, 0x437740
mov dword [ebp - 4], ebx
call fcn.0040228c
cmp dword [0x437d04], 3
jne 0x40900d
mov eax, dword [0x437d08]
mov ecx, dword [eax + 4]
mov edi, dword [eax + 8]
push str._writeback
push ecx
mov dword [ebp - 0x10], ecx
call fcn.00414d6c
test eax, eax
pop ecx
pop ecx
jne 0x408fd1
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x408f1a
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
lea eax, [ebp - 0x488]
push edi
push eax
call esi
test eax, eax
je 0x408f12
lea eax, [ebp - 0x488]
push eax
lea ecx, [ebp - 0x68]
call fcn.00404ee2
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00404ee2
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xbc]
push eax
mov byte [ebp - 4], 2
call fcn.004051d7
mov esi, eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xdc]
push eax
mov byte [ebp - 4], 3
call fcn.004051d7
add esp, 0x10
cmp dword [esi + 0x18], 0x10
jb 0x408f7d
mov esi, dword [esi + 4]
jmp 0x408f80
add esi, 4
cmp dword [eax + 0x18], 0x10
jb 0x408f8b
mov eax, dword [eax + 4]
jmp 0x408f8e
add eax, 4
push ebx
push esi
push str._erase
push eax
xor esi, esi
push edi
inc esi
push esi
call fcn.004167e8
add esp, 0x18
push ebx
push esi
lea ecx, [ebp - 0xdc]
call fcn.00402028
push ebx
push esi
lea ecx, [ebp - 0xbc]
call fcn.00402028
push ebx
push esi
lea ecx, [ebp - 0x30]
call fcn.00402028
push ebx
push esi
lea ecx, [ebp - 0x68]
jmp 0x409346
push str._erase
push dword [ebp - 0x10]
call fcn.00414d6c
test eax, eax
pop ecx
pop ecx
jne 0x40900d
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
jmp 0x408fff
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x409006
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call esi
test eax, eax
jne 0x408fec
xor esi, esi
jmp 0x4098ef
cmp dword [0x437d04], 1
jle 0x409350
lea eax, [ebp - 0x30]
push 0x89
push eax
call fcn.00405106
push 0x24
push eax
push ebx
mov byte [ebp - 4], 4
call fcn.00405180
add esp, 0x14
push ebx
push 1
lea ecx, [ebp - 0x30]
mov esi, eax
mov byte [ebp - 4], bl
call fcn.00402028
cmp esi, 6
jne 0x409006
push 0xf
pop edi
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], edi
call fcn.00401ba2
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 5
call fcn.00402320
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], ebx
xor eax, eax
inc eax
cmp dword [0x437d04], eax
mov byte [ebp - 4], 6
mov dword [ebp - 0x14], eax
jle 0x409335
mov eax, dword [0x437d08]
mov ecx, dword [ebp - 0x14]
push dword [eax + ecx*4]
lea ecx, [ebp - 0xa0]
call fcn.00404ee2
cmp dword [ebp - 0x88], 0x10
mov eax, dword [ebp - 0x9c]
mov byte [ebp - 4], 7
jae 0x4090bf
lea eax, [ebp - 0x9c]
push eax
call fcn.004154a0
cmp dword [ebp - 0x88], 0x10
mov esi, eax
mov eax, dword [ebp - 0x9c]
pop ecx
jae 0x4090dd
lea eax, [ebp - 0x9c]
lea eax, [eax + esi - 4]
push eax
lea ecx, [ebp - 0xbc]
call fcn.00404ee2
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 8
call fcn.00402ce4
cmp dword [ebp - 0xa4], 0x10
mov eax, dword [ebp - 0xb8]
mov byte [ebp - 4], 9
jae 0x40911c
lea eax, [ebp - 0xb8]
push eax
call fcn.004262b2
lea ecx, [ebp - 0xbc]
mov dword [esp], str..txt
call fcn.00401eef
test eax, eax
jne 0x4091da
cmp dword [ebp - 0x140], 0x10
mov eax, dword [ebp - 0x154]
jae 0x409151
lea eax, [ebp - 0x154]
lea eax, [eax + esi - 4]
push str..exe
push eax
call fcn.004166f0
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0xc4], edi
call fcn.00401ba2
push ebx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x50], edi
call fcn.00401ba2
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xa0]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040525d
add esp, 0xc
test al, al
je 0x4091c4
push ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.00408b84
add esp, 0x10
test al, al
je 0x4091c4
inc dword [ebp - 0x10]
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.00402028
lea ecx, [ebp - 0xdc]
jmp 0x409264
push ebx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], edi
call fcn.00401ba2
push ebx
push 0x8000
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xc
call fcn.00402c22
lea eax, [ebp - 0x84]
push 0x87
push eax
call fcn.00405106
mov edx, dword [ebp - 0x9c]
pop ecx
pop ecx
push 0x10
pop esi
cmp dword [ebp - 0x88], esi
jae 0x409222
lea edx, [ebp - 0x9c]
cmp dword [eax + 0x18], esi
jb 0x40922c
mov eax, dword [eax + 4]
jmp 0x40922f
add eax, 4
cmp dword [ebp - 0x34], esi
mov ecx, dword [ebp - 0x48]
jae 0x40923a
lea ecx, [ebp - 0x48]
push edx
push eax
push ecx
call fcn.00416588
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x84]
call fcn.00402028
push esi
lea eax, [ebp - 0x4c]
push eax
push ebx
call fcn.00405180
add esp, 0xc
lea ecx, [ebp - 0x4c]
push ebx
push 1
call fcn.00402028
push ebx
push 1
lea ecx, [ebp - 0x158]
call fcn.00402028
push ebx
push 1
lea ecx, [ebp - 0xbc]
call fcn.00402028
push ebx
push 1
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 6
call fcn.00402028
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x437d04]
jl 0x409090
cmp dword [ebp - 0x10], ebx
je 0x409335
push ebx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], edi
call fcn.00401ba2
push ebx
push 0x8000
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xd
call fcn.00402c22
lea eax, [ebp - 0x84]
push 0x96
push eax
call fcn.00405106
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x4092f1
mov eax, dword [eax + 4]
jmp 0x4092f4
add eax, 4
cmp dword [ebp - 0x34], 0x10
mov ecx, dword [ebp - 0x48]
jae 0x409300
lea ecx, [ebp - 0x48]
push dword [ebp - 0x10]
push eax
push ecx
call fcn.00416588
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x84]
call fcn.00402028
push 0x40
lea eax, [ebp - 0x4c]
push eax
push ebx
call fcn.00405180
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.00402028
lea ecx, [ebp - 0x120]
call fcn.00406da4
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00402028
jmp 0x409006
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x690]
push eax
call fcn.004166f0
cmp byte [ebp - 0x690], bl
pop ecx
pop ecx
lea eax, [ebp - 0x690]
je 0x409387
mov cl, byte [eax]
cmp cl, 0x5c
je 0x40937f
cmp cl, 0x3a
jne 0x409382
mov byte [eax], 0x5f
inc eax
cmp byte [eax], bl
jne 0x409373
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xb8], ebx
push 0xf001f
push 4
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x690]
push eax
push 4
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x10], ebx
call fcn.00401135
cmp dword [ebp - 0x10], ebx
je 0x4093d4
mov eax, dword [ebp - 0xc0]
push dword [eax]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor esi, esi
jmp 0x4098e4
push 0xf
pop edi
push ebx
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x124], edi
call fcn.00401ba2
push ebx
lea ecx, [ebp - 0x114]
mov dword [ebp - 0xfc], edi
call fcn.00401ba2
push ebx
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0xe0], edi
call fcn.00401ba2
push str.PAYLOAD
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x11
call fcn.00404ee2
push str.CONTENT
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x12
call fcn.00404ee2
push 0x400000
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 0x13
call fcn.00407127
add esp, 0x10
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00402028
push ebx
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x11
call fcn.00402028
cmp dword [ebp - 0xfc], 0x10
mov eax, dword [ebp - 0x110]
jae 0x40947e
lea eax, [ebp - 0x110]
push eax
call fcn.004154a0
test eax, eax
pop ecx
lea eax, [ebp - 0x84]
je 0x40953c
push ebx
push eax
call fcn.0040559d
pop ecx
pop ecx
or edi, 0xffffffff
push edi
push ebx
push eax
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0x14
call fcn.0040290c
push ebx
push 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x11
call fcn.00402028
cmp dword [ebp - 0xe0], 0x10
mov eax, dword [ebp - 0xf4]
jae 0x4094d8
lea eax, [ebp - 0xf4]
push eax
call fcn.004154a0
test eax, eax
pop ecx
jne 0x4094ea
mov esi, edi
jmp 0x4098ba
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00408a3a
add esp, 0xc
test al, al
jne 0x409570
lea eax, [ebp - 0x84]
push 0x81
push eax
call fcn.00405106
push 0x10
push eax
push ebx
mov byte [ebp - 4], 0x15
call fcn.00405180
add esp, 0x14
push ebx
push 1
lea ecx, [ebp - 0x84]
call fcn.00402028
jmp 0x4094e3
push 0x8d
push eax
call fcn.00405106
pop ecx
pop ecx
or edi, 0xffffffff
push edi
push ebx
push eax
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0x16
call fcn.0040290c
push ebx
push 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x11
call fcn.00402028
lea ecx, [ebp - 0x280]
call fcn.004073ad
push edi
push ebx
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x1d0]
mov byte [ebp - 4], 0x17
call fcn.0040290c
push edi
push ebx
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x210]
call fcn.0040290c
push ebx
push ebx
push ebx
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
push ebx
lea ecx, [ebp - 0x280]
mov dword [eax], ebx
call fcn.00402a2b
cmp eax, ebx
jne 0x4095c9
xor esi, esi
jmp 0x4098af
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0xc0]
push dword [ebp + 0xc]
mov dword [ecx], eax
push dword [ebp - 0x27c]
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x190]
call fcn.0040187b
mov ecx, 0x437740
mov dword [ebp - 0x10], eax
call fcn.00402633
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x210]
call fcn.00401adc
test eax, eax
jne 0x40962e
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x1d0]
call fcn.00401adc
test eax, eax
je 0x4098ac
cmp dword [ebp - 0x1b8], 0x10
mov eax, dword [ebp - 0x1cc]
jae 0x409643
lea eax, [ebp - 0x1cc]
push eax
call fcn.004154a0
test eax, eax
pop ecx
je 0x4098ac
push edi
push ebx
lea eax, [ebp - 0x1d0]
push eax
lea ecx, [ebp - 0xf8]
call fcn.0040290c
push 0x427a38
lea ecx, [ebp - 0x114]
call fcn.00402d0a
cmp dword [ebp - 0x1f8], 0x10
mov eax, dword [ebp - 0x20c]
jae 0x40968b
lea eax, [ebp - 0x20c]
push eax
call fcn.004154a0
test eax, eax
pop ecx
je 0x4096b5
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00408879
add esp, 0xc
jmp 0x4096e8
lea eax, [ebp - 0x84]
push 0x8b
push eax
call fcn.00405106
push 0x40
push eax
push ebx
mov byte [ebp - 4], 0x18
call fcn.00405180
add esp, 0x14
push ebx
push 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x17
call fcn.00402028
push 0x40
xor eax, eax
pop ecx
mov byte [ebp - 0x58c], bl
lea edi, [ebp - 0x58b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x794], bl
lea edi, [ebp - 0x793]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x384], bl
lea edi, [ebp - 0x383]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push esi
lea eax, [ebp - 0x58c]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x794]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x384]
push eax
push ebx
push 0x428598
lea eax, [ebp - 0x794]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push ebx
lea eax, [ebp - 0x384]
push eax
lea eax, [ebp - 0x58c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push str.PAYLOAD
lea ecx, [ebp - 0xdc]
call fcn.00404ee2
push str.CONTENT
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x19
call fcn.00404ee2
lea eax, [ebp - 0x384]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x1a
call fcn.00404ee2
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 0x1b
call fcn.00407336
add esp, 0x10
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00402028
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.00402028
mov byte [ebp - 4], 0x17
push ebx
push 1
lea ecx, [ebp - 0xdc]
call fcn.00402028
lea eax, [ebp - 0x58c]
push eax
lea ecx, [ebp - 0x68]
call fcn.00404ee2
lea eax, [ebp - 0x384]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x1c
call fcn.00404ee2
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xdc]
push eax
mov byte [ebp - 4], 0x1d
call fcn.004051d7
mov esi, eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x84]
push eax
mov byte [ebp - 4], 0x1e
call fcn.004051d7
add esp, 0x10
cmp dword [esi + 0x18], 0x10
jb 0x409852
mov esi, dword [esi + 4]
jmp 0x409855
add esi, 4
cmp dword [eax + 0x18], 0x10
jb 0x409860
mov eax, dword [eax + 4]
jmp 0x409863
add eax, 4
push ebx
push esi
push str._writeback
push eax
lea eax, [ebp - 0x384]
xor esi, esi
push eax
inc esi
push esi
call fcn.004167e8
add esp, 0x18
push ebx
push esi
lea ecx, [ebp - 0x84]
call fcn.00402028
push ebx
push esi
lea ecx, [ebp - 0xdc]
call fcn.00402028
push ebx
push esi
lea ecx, [ebp - 0x30]
call fcn.00402028
push ebx
push esi
lea ecx, [ebp - 0x68]
call fcn.00402028
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x280]
call fcn.0040755b
push ebx
push 1
lea ecx, [ebp - 0xf8]
call fcn.00402028
push ebx
push 1
lea ecx, [ebp - 0x114]
call fcn.00402028
push ebx
push 1
lea ecx, [ebp - 0x13c]
call fcn.00402028
lea ecx, [ebp - 0xc0]
call fcn.004011c0
lea ecx, [ebp - 0x180]
call fcn.00401432
lea ecx, [ebp - 0x18c]
call fcn.00401432
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret