Function at 0x1001826d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100615bd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x94
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100183d9
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x64], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x28], 0xce1
mov dword [ebp - 0x5c], 0x100084ec
cmp dword [ebp - 0x28], 0xeb2
jle 0x10018348
and dword [ebp - 0x24], 0
jmp 0x100182da
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xdb9
jge 0x10018348
and dword [ebp - 0x20], 0
jmp 0x100182f0
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x6157
jge 0x10018346
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
sar eax, cl
cdq
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edx
push dword [ebp - 0x84]
push dword [ebp - 0x88]
lea ecx, [ebp - 0xa4]
call fcn.1000d5c0
pop ecx
pop ecx
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
call fcn.1000fe6e
push eax
call fcn.1004bbc6
pop ecx
lea ecx, [ebp - 0xa4]
call fcn.1000fe64
jmp 0x100182e9
jmp 0x100182d3
mov eax, dword [ebp - 0x7c]
movzx eax, byte [eax]
test eax, eax
je 0x10018378
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x4c]
mov dword [eax], 1
jmp 0x10018398
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax]
test eax, eax
je 0x10018398
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
and dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0xa40
jge 0x100183ae
push dword [ebp - 0x5c]
call fcn.1004bbc6
pop ecx
jmp 0x100183ca
or dword [ebp - 4], 0xffffffff
jmp 0x100183d4
jmp 0x10018507
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
test eax, eax
je 0x1001843a
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x10018435
push 0
push 0x1909
push 0x159d
push 0x1f5d
push 0x10aa
push 0xfaf
push 0xd2f
push 0x1a67
push 0x22fe
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
jmp 0x10018507
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x2c], 0x30c
mov dword [ebp - 0x50], 0x10008564
cmp dword [ebp - 0x2c], 0x64a
jle 0x100184aa
and dword [ebp - 0x18], 0
jmp 0x1001846a
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xbf6
jge 0x100184aa
and dword [ebp - 0x1c], 0
jmp 0x10018480
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x65f2
jge 0x100184a8
mov eax, dword [ebp - 0x18]
or eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
push dword [ebp - 0x74]
push dword [ebp - 0x78]
mov ecx, 0x10609898
call fcn.1000fe8e
jmp 0x10018479
jmp 0x10018463
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x2c], 0x15
jge 0x100184ca
mov edx, dword [ebp - 0x50]
mov ecx, 0x10609898
call fcn.10011938
jmp 0x100184e6
or dword [ebp - 4], 0xffffffff
jmp 0x100184f0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x68]
mov ecx, dword [ecx]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x20]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret