Function at 0x1001bd40
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 0x1001bd70
mov cl, byte [eax + 0x10059d68]
mov byte [ebp + eax - 0x228], cl
inc eax
test cl, cl
jne 0x1001bd70
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 0x1001bd94
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 0x1001bda7
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 0x1001bdc6
mov ecx, dword [str.keys]
mov dl, byte [0x10049fac]
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 0x1001be18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001be11
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 0x1001be40
lea eax, [ebp - 0x124]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001be51
mov ecx, dword [str..key]
mov dx, word [0x10049fe8]
mov edi, dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov dword [eax], ecx
mov cl, byte [0x10049fea]
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 0x1001c1db
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 0x1001bee0
lea eax, [ebp - 0x124]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001bef1
mov ecx, dword [str._self.cer]
mov edx, dword [0x10049ff0]
mov dword [eax], ecx
mov cx, word [0x10049ff4]
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 0x1001c1db
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 0x1001bf74
lea eax, [ebp - 0x124]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001bf85
mov ecx, dword [str._rand]
mov dx, word [0x10049ffc]
mov dword [eax], ecx
mov cl, byte [0x10049ffe]
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 0x1001c1db
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 0x1001c008
lea eax, [ebp - 0x124]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001c020
mov ecx, dword [str.CRL]
mov dx, word [0x1004a004]
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 0x1001c1db
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 0x1001c0a0
lea eax, [ebp - 0x124]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001c0b1
mov edx, dword [str.CA]
mov cl, byte [0x1004a00c]
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 0x1001c1db
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 0x1001c130
lea eax, [ebp - 0x124]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001c141
mov ecx, dword [str.ABONENTS]
mov edx, dword [0x1004a014]
mov dword [eax], ecx
mov cx, word [0x1004a018]
mov dword [eax + 4], edx
mov dl, byte [0x1004a01a]
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 0x1001c1db
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x228]
push ecx
push edx
call fcn.10029680
test eax, eax
je 0x1001c1db
lea eax, [ebp - 0x228]
push eax
call fcn.10007400
mov dword [0x1005a060], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8