Function at 0x1001ac50
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 [0x10057d80], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x1001ac80
mov cl, byte [eax + 0x10057a88]
mov byte [ebp + eax - 0x228], cl
inc eax
test cl, cl
jne 0x1001ac80
push 0x10059f80
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x10059f80
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001aca4
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 0x1001acb7
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 0x1001acd6
mov ecx, dword [str.keys]
mov dl, byte [0x10047f8c]
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 0x1001ad28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001ad21
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 0x1001ad50
lea eax, [ebp - 0x124]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001ad61
mov ecx, dword [str..key]
mov dx, word [0x10047fc8]
mov edi, dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov dword [eax], ecx
mov cl, byte [0x10047fca]
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 0x1001b0eb
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 0x1001adf0
lea eax, [ebp - 0x124]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001ae01
mov ecx, dword [str._self.cer]
mov edx, dword [0x10047fd0]
mov dword [eax], ecx
mov cx, word [0x10047fd4]
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 0x1001b0eb
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 0x1001ae84
lea eax, [ebp - 0x124]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001ae95
mov ecx, dword [str._rand]
mov dx, word [0x10047fdc]
mov dword [eax], ecx
mov cl, byte [0x10047fde]
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 0x1001b0eb
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 0x1001af18
lea eax, [ebp - 0x124]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001af30
mov ecx, dword [str.CRL]
mov dx, word [0x10047fe4]
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 0x1001b0eb
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 0x1001afb0
lea eax, [ebp - 0x124]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001afc1
mov edx, dword [str.CA]
mov cl, byte [0x10047fec]
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 0x1001b0eb
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 0x1001b040
lea eax, [ebp - 0x124]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001b051
mov ecx, dword [str.ABONENTS]
mov edx, dword [0x10047ff4]
mov dword [eax], ecx
mov cx, word [0x10047ff8]
mov dword [eax + 4], edx
mov dl, byte [0x10047ffa]
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 0x1001b0eb
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x228]
push ecx
push edx
call fcn.10027f00
test eax, eax
je 0x1001b0eb
lea eax, [ebp - 0x228]
push eax
call fcn.100066d0
mov dword [0x10057d80], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8