Function at 0x1000ebb6
Capabilities:
Create directory
Get common file path
Persist via run registry key
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
and dword [ebp + 0x20], 0xfffffffb
mov eax, dword [ebp + 0x20]
and eax, 1
push ebx
push esi
push edi
test al, al
je 0x1000ec0b
mov eax, dword [ebp + 0x20]
and eax, 2
test al, al
je 0x1000ebea
call fcn.1001012d
mov ecx, eax
call fcn.100080d4
test eax, eax
jne 0x1000ec0b
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000e423
add esp, 0x1c
jmp 0x1000eebc
mov esi, 0x104
cmp dword [ebp + 0x1c], esi
jl 0x1000eea0
mov eax, dword [ebp + 0x20]
mov edi, dword [ebp + 0x18]
and al, 0xfb
xor ebx, ebx
push eax
mov byte [edi], bl
push dword [ebp + 0x1c]
mov dword [ebp - 8], eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000d9f7
add esp, 0x14
test eax, eax
je 0x1000ec8d
cmp byte [edi], bl
je 0x1000ec8d
cmp dword [ebp + 0x14], ebx
je 0x1000ec58
push edi
call fcn.1000e652
test eax, eax
pop ecx
je 0x1000ec8d
jmp 0x1000eeb9
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x1000ec8d
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, eax
lea eax, [ebp - 0x110]
neg esi
sbb esi, esi
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp esi, ebx
je 0x1000eeb9
test byte [ebp + 0x20], 2
je 0x1000ed2c
cmp dword [0x10018b84], ebx
jne 0x1000eccf
call fcn.1001012d
mov ecx, eax
call fcn.100080d4
test eax, eax
je 0x1000eccf
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x1000eccf
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10018b84], eax
mov eax, dword [0x10018b84]
mov dword [ebp + 0x20], ebx
cmp eax, ebx
je 0x1000ed2c
lea ecx, [ebp + 0x20]
push ecx
push ebx
push ebx
push 0x10014c50
call eax
test eax, eax
jl 0x1000ed2c
cmp dword [ebp + 0x20], ebx
je 0x1000ed2c
push ebx
push ebx
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push 0xffffffffffffffff
push dword [ebp + 0x20]
push ebx
push ebx
call esi
cmp eax, ebx
je 0x1000edb2
cmp eax, dword [ebp + 0x1c]
jge 0x1000edb2
push ebx
inc eax
push ebx
push eax
push edi
push 0xffffffffffffffff
push dword [ebp + 0x20]
push ebx
push ebx
call esi
push dword [ebp + 0x20]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp byte [edi], bl
jne 0x1000edc8
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x1000ed7f
cmp dword [ebp - 4], ebx
je 0x1000ed7f
lea eax, [ebp + 0x20]
mov dword [ebp + 0x20], ebx
push eax
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x1000ed7f
cmp dword [ebp + 0x20], ebx
je 0x1000ed7f
push edi
push dword [ebp + 0x20]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jge 0x1000ed73
mov byte [edi], bl
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp byte [edi], bl
jne 0x1000edc8
push dword [ebp + 0x1c]
push edi
push str.AppData
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocStringLen
call fcn.1000db49
add esp, 0x14
test eax, eax
jne 0x1000edc0
mov byte [edi], bl
jmp 0x1000eea0
push dword [ebp + 0x20]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x1000eea0
cmp byte [edi], bl
je 0x1000eea0
cmp dword [ebp + 0x10], ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
jne 0x1000edd8
mov dword [ebp + 0x20], ebx
jmp 0x1000ede0
push dword [ebp + 0x10]
call esi
mov dword [ebp + 0x20], eax
push dword [0x10018420]
call esi
push dword [0x1001841c]
mov edi, eax
call esi
mov ecx, dword [ebp + 0x20]
push dword [ebp + 0x18]
add ecx, edi
lea edi, [eax + ecx + 0xa]
call esi
dec eax
cmp eax, ebx
jle 0x1000ee11
mov ecx, dword [ebp + 0x18]
add ecx, eax
cmp byte [ecx], 0x5c
jne 0x1000ee11
mov byte [ecx], bl
lea eax, [eax + edi + 1]
cmp eax, dword [ebp + 0x1c]
jg 0x1000eea0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp + 0x20], 0x10018418
mov eax, dword [ebp + 0x20]
push dword [eax]
push dword [ebp + 0x18]
call esi
push ebx
call edi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1000ee59
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000eea0
add dword [ebp + 0x20], 4
cmp dword [ebp + 0x20], 0x10018420
jl 0x1000ee31
cmp dword [ebp + 0x10], ebx
je 0x1000ee73
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call esi
cmp dword [ebp + 0x14], ebx
jne 0x1000eea4
push 0x10018218
push dword [ebp + 0x18]
call esi
push ebx
call edi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1000eea4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000eea4
xor eax, eax
jmp 0x1000eebc
push dword [ebp - 8]
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000dbe9
add esp, 0x14
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret