Function at 0x1001c240
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push 0x104
lea eax, [ebp - 0x228]
push 0
push eax
mov dword [0x1005a060], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x1001c270
mov cl, byte [eax + 0x10059d68]
mov byte [ebp + eax - 0x228], cl
inc eax
test cl, cl
jne 0x1001c270
push 0x1005c260
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x1005c260
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001c294
push ebx
push esi
push edi
lea edi, [ebp - 0x228]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001c2a7
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x228]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001c2c6
mov ecx, dword [str.keys]
mov dl, byte [0x10049ffc]
mov dword [eax], ecx
mov byte [eax + 4], dl
push 0
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1001c318
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001c311
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x104
lea edx, [ebp - 0x124]
push 0
push edx
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x124]
add esp, 0xc
sub esi, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x1001c340
lea eax, [ebp - 0x124]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001c351
mov ecx, dword [str..key]
mov dx, word [0x1004a038]
mov edi, dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov dword [eax], ecx
mov cl, byte [0x1004a03a]
mov word [eax + 4], dx
mov byte [eax + 6], cl
xor eax, eax
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x124]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov word [ebp - 4], ax
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x228]
mov ecx, 0x414
mov ebx, 2
push edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x10], cx
call edi
test eax, eax
jne 0x1001c6db
push 0x104
push eax
lea eax, [ebp - 0x124]
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
nop
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x1001c3e0
lea eax, [ebp - 0x124]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001c3f1
mov ecx, dword [str._self.cer]
mov edx, dword [0x1004a040]
mov dword [eax], ecx
mov cx, word [0x1004a044]
mov dword [eax + 4], edx
mov word [eax + 8], cx
xor eax, eax
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x124]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov word [ebp - 4], ax
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x228]
mov ecx, 0x414
push edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x10], cx
call edi
test eax, eax
jne 0x1001c6db
push 0x104
push eax
lea eax, [ebp - 0x124]
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x1001c474
lea eax, [ebp - 0x124]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001c485
mov ecx, dword [str._rand]
mov dx, word [0x1004a04c]
mov dword [eax], ecx
mov cl, byte [0x1004a04e]
mov word [eax + 4], dx
mov byte [eax + 6], cl
xor eax, eax
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x124]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov word [ebp - 4], ax
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x228]
mov ecx, 0x414
push edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x10], cx
call edi
test eax, eax
jne 0x1001c6db
push 0x104
push eax
lea eax, [ebp - 0x124]
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x1001c508
lea eax, [ebp - 0x124]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001c520
mov ecx, dword [str.CRL]
mov dx, word [0x1004a054]
mov dword [eax], ecx
mov word [eax + 4], dx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x124]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x228]
mov edx, 0x414
push eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x10], dx
call edi
test eax, eax
jne 0x1001c6db
push 0x104
push eax
lea ecx, [ebp - 0x124]
push ecx
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x1001c5a0
lea eax, [ebp - 0x124]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001c5b1
mov edx, dword [str.CA]
mov cl, byte [0x1004a05c]
mov dword [eax], edx
mov byte [eax + 4], cl
xor eax, eax
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x124]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov word [ebp - 4], ax
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x228]
mov ecx, 0x414
push edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x10], cx
call edi
test eax, eax
jne 0x1001c6db
push 0x104
push eax
lea eax, [ebp - 0x124]
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
lea esp, [esp]
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x1001c630
lea eax, [ebp - 0x124]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001c641
mov ecx, dword [str.ABONENTS]
mov edx, dword [0x1004a064]
mov dword [eax], ecx
mov cx, word [0x1004a068]
mov dword [eax + 4], edx
mov dl, byte [0x1004a06a]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x124]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x228]
mov edx, 0x414
push eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x10], dx
call edi
test eax, eax
jne 0x1001c6db
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x228]
push ecx
push edx
call fcn.10029b30
test eax, eax
je 0x1001c6db
lea eax, [ebp - 0x228]
push eax
call fcn.10007680
mov dword [0x1005a060], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8