Function at 0x1007e0b
Capabilities:
Create directory
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x101406c]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x214], 0xffffffff
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x218], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
jne 0x1007eba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1007e7d
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x210], eax
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x10080f2
test byte [eax + 0x1c], 1
je 0x10080f2
push dword [ebp - 0x210]
push 0x1001898
push 0x65
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005442
jmp 0x10080f2
push 0x1001a60
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01005b53
cmp eax, ebx
mov dword [ebp - 0x210], eax
jge 0x1007eff
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x10080f2
test byte [eax + 0x1c], 1
je 0x10080f2
push dword [ebp - 0x210]
push 0x1001898
push 0x66
jmp 0x1007eaa
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1007f62
call ebx
cmp eax, 0xb7
je 0x1007f62
call ebx
test eax, eax
jle 0x1007f30
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x210], eax
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x10080f2
test byte [eax + 0x1c], 1
je 0x10080f2
push dword [ebp - 0x210]
push 0x1001898
push 0x67
jmp 0x1007eaa
push 0x1001a98
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01005b53
mov dword [ebp - 0x210], eax
xor eax, eax
cmp dword [ebp - 0x210], eax
jge 0x1007fb0
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x10080f2
test byte [eax + 0x1c], 1
je 0x10080f2
push dword [ebp - 0x210]
push 0x1001898
push 0x68
jmp 0x1007eaa
push eax
mov edi, 0x80
push edi
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x214], eax
cmp eax, 0xffffffff
jne 0x100801a
call ebx
test eax, eax
jle 0x1007fe8
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x210], eax
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x10080f2
test byte [eax + 0x1c], 1
je 0x10080f2
push dword [ebp - 0x210]
push 0x1001898
push 0x69
jmp 0x1007eaa
mov ecx, dword [esi + 0x7c]
and dword [esi + 0x7c], 0
push 0
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x218]
push ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push eax
call edi
test eax, eax
jne 0x100807a
call ebx
test eax, eax
jle 0x100804f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x210], eax
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x10080e5
test byte [eax + 0x1c], 1
je 0x10080e5
push dword [ebp - 0x210]
push 0x1001898
push 0x6a
jmp 0x10080d1
mov eax, dword [ebp - 0x21c]
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [esi + 0x78]
mov dword [esi + 0x7c], eax
push eax
push dword [ebp - 0x214]
call edi
test eax, eax
jne 0x10080de
call ebx
test eax, eax
jle 0x10080ac
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x210], eax
mov eax, dword [0x101405c]
cmp eax, 0x101405c
je 0x10080e5
test byte [eax + 0x1c], 1
je 0x10080e5
push dword [ebp - 0x210]
push 0x1001898
push 0x6b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005442
jmp 0x10080e5
and dword [ebp - 0x210], 0
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x10080f2
mov dword [esi + 0x7c], eax
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01004e4d
leave
ret