Function at 0x100853e
Capabilities:
Create directory
Create process on windows
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1088
call fcn.0100f570
mov eax, dword [0x1011584]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x1010], eax
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov word [ebp - 0x101c], ax
mov word [ebp - 0x101a], ax
xor ebx, ebx
mov word [ebp - 0x1024], ax
mov word [ebp - 0x1022], ax
mov eax, edi
mov dword [ebp - 0x1028], edi
mov dword [ebp - 0x1008], edx
mov dword [ebp - 0x1018], ebx
mov dword [ebp - 0x1020], ebx
lea ecx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
cmp si, bx
jne 0x10085a6
sub eax, ecx
sar eax, 1
mov ecx, eax
mov eax, edx
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
cmp si, bx
jne 0x10085bb
sub eax, edx
sar eax, 1
lea esi, [ecx + eax*2]
lea esi, [esi + esi + 6]
mov eax, edi
mov dword [ebp - 0x102c], esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x10085db
sub eax, ecx
sar eax, 1
mov ecx, eax
mov eax, dword [ebp - 0x1010]
lea edx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
cmp di, bx
jne 0x10085f4
sub eax, edx
sar eax, 1
lea eax, [ecx + eax*2]
lea eax, [eax + eax + 6]
push esi
mov dword [ebp - 0x1014], eax
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
pop ecx
mov dword [ebp - 0x100c], edi
cmp edi, ebx
jne 0x100862a
xor eax, eax
jmp 0x1008b8c
push esi
push ebx
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
cmp byte [ebp + 0x14], bl
je 0x1008647
push dword [ebp - 0x1028]
push esi
push edi
call fcn.01007ba0
push 0x5c
push dword [ebp - 0x1008]
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
pop ecx
pop ecx
mov dword [ebp - 0x1030], eax
mov edi, 0x2000000
cmp eax, ebx
je 0x10086f8
sub eax, dword [ebp - 0x1008]
push eax
push dword [ebp - 0x1008]
push dword [ebp - 0x102c]
push dword [ebp - 0x100c]
call fcn.01007c23
push ebx
push edi
push 3
push ebx
push ebx
push ebx
push dword [ebp - 0x100c]
call esi
cmp eax, 0xffffffff
jne 0x10086c5
push ebx
push dword [ebp - 0x100c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10086cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100e412
pop ecx
jmp 0x1008623
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x100c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x4000
je 0x10086f0
push ebx
push dword [ebp - 0x100c]
call dword [sym.imp.ADVAPI32.dll_DecryptFileW]
test eax, eax
je 0x10086b3
push dword [ebp - 0x1030]
jmp 0x10086fe
push dword [ebp - 0x1008]
push dword [ebp - 0x102c]
push dword [ebp - 0x100c]
call fcn.01007bdb
push dword [ebp - 0x1014]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 0x1008], eax
cmp eax, ebx
je 0x1008623
push dword [ebp - 0x1014]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp byte [ebp + 0x14], bl
je 0x1008756
push dword [ebp - 0x1028]
push dword [ebp - 0x1014]
push dword [ebp - 0x1008]
call fcn.01007ba0
push 0x5c
push dword [ebp - 0x1010]
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
mov dword [ebp - 0x1030], eax
cmp eax, ebx
je 0x10087ed
sub eax, dword [ebp - 0x1010]
push eax
push dword [ebp - 0x1010]
push dword [ebp - 0x1014]
push dword [ebp - 0x1008]
call fcn.01007c23
push ebx
push edi
mov edi, dword [ebp - 0x1008]
push 3
push ebx
push ebx
push ebx
push edi
call esi
cmp eax, 0xffffffff
jne 0x10087b9
push ebx
push dword [ebp - 0x100c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10087c0
jmp 0x10086b3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x4000
je 0x10087de
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_DecryptFileW]
test eax, eax
je 0x10086b3
push dword [ebp - 0x1030]
push dword [ebp - 0x1014]
push edi
jmp 0x10087ff
push dword [ebp - 0x1010]
push dword [ebp - 0x1014]
push dword [ebp - 0x1008]
call fcn.01007bdb
push dword [ebp - 0x100c]
mov edi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x1011908
call edi
mov esi, dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
push ebx
push ebx
lea eax, [ebp - 0x101c]
push eax
push dword [0x101190c]
call esi
test al, al
jne 0x100883e
push 3
call fcn.0100e412
jmp 0x1008aa3
push dword [ebp - 0x1008]
push 0x1011908
call edi
push ebx
push ebx
lea eax, [ebp - 0x1024]
push eax
push dword [0x101190c]
call esi
test al, al
je 0x1008832
push dword [ebp - 0x100c]
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
push dword [ebp - 0x1008]
mov dword [ebp - 0x100c], ebx
call edi
movzx eax, word [ebp - 0x101c]
movzx ecx, word [ebp - 0x1024]
add eax, 0x33
and eax, 0xfffffffe
lea edi, [eax + ecx + 2]
push edi
mov dword [ebp - 0x1008], ebx
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x1008aa4
push edi
push ebx
push esi
call sub.msvcrt.dll_memset
mov ax, word [ebp - 0x101c]
mov word [esi + 0x28], ax
movzx eax, word [ebp - 0x101c]
add esp, 0xc
push dword [ebp - 0x1018]
inc eax
inc eax
push eax
lea eax, [esi + 0x2c]
push eax
call fcn.01007ba0
push dword [ebp - 0x1018]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [ebp - 0x1018], ebx
movzx eax, word [esi + 0x28]
add eax, 0x33
and eax, 0xfffffffe
mov dword [esi + 0x20], eax
mov ax, word [ebp - 0x1024]
mov word [esi + 0x24], ax
movzx eax, word [ebp - 0x1024]
push dword [ebp - 0x1020]
inc eax
inc eax
push eax
mov eax, dword [esi + 0x20]
add eax, esi
push eax
call fcn.01007ba0
push dword [ebp - 0x1020]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 0x1028]
mov dword [ebp - 0x1020], ebx
push 0x40000000
call fcn.01007773
mov dword [ebp - 0x1010], eax
cmp eax, 0xffffffff
jne 0x100897b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100e412
pop ecx
jmp 0x1008a98
push ebx
lea ecx, [ebp - 0x1034]
push ecx
push ebx
push ebx
push edi
push esi
push 0x98158
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10089c7
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x1aa6
jne 0x10089c0
call edi
push eax
call fcn.0100e412
pop ecx
push dword [ebp - 0x1010]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1008623
call edi
jmp 0x1008a85
push esi
call dword [sym.imp.msvcrt.dll_free]
mov edi, 0x1000
push edi
lea eax, [ebp - 0x1004]
push ebx
push eax
xor esi, esi
call sub.msvcrt.dll_memset
add esp, 0x10
push ebx
lea eax, [ebp - 0x1034]
push eax
push edi
lea eax, [ebp - 0x1004]
push eax
push edi
push eax
push 0x98150
push dword [ebp - 0x1010]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1008a1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x1aa5
je 0x1008a3d
jmp 0x1008a7f
push ebx
lea eax, [ebp - 0x1034]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x98154
push dword [ebp - 0x1010]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1008a7f
push 0x44
lea eax, [ebp - 0x1088]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x800
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1008a7f
push 0x10021e8
push edi
lea eax, [ebp - 0x1004]
push eax
call fcn.01007bdb
test eax, eax
je 0x1008b18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100e412
pop ecx
push dword [ebp - 0x1010]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x1008aa4
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp dword [ebp - 0x1018], ebx
je 0x1008ac5
push dword [ebp - 0x1018]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x1020], ebx
je 0x1008ae6
push dword [ebp - 0x1020]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x100c], ebx
je 0x1008afb
push dword [ebp - 0x100c]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp dword [ebp - 0x1008], ebx
je 0x1008623
push dword [ebp - 0x1008]
call dword [sym.imp.msvcrt.dll_free]
jmp 0x10086bf
lea eax, [ebp - 0x1044]
push eax
lea eax, [ebp - 0x1088]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x1004]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1008b7d
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 1
mov edi, 0x10078e3
push edi
call esi
push 0xffffffffffffffff
push dword [ebp - 0x1044]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1008b4f
push dword [ebp - 0x1044]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1040]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
call esi
push dword [ebp - 0x1010]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100f411
leave
ret 0x10