Function at 0x140009bd0
Capabilities:
Create directory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1d8
movaps xmmword [rsp + 0x1c0], xmm6
mov ebx, r9d
mov r15d, r8d
mov r14, rdx
mov r13, rcx
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
xor r8d, r8d
test r9d, r9d
sete r8b
movabs r12, 0xffffffff00000002
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x80], 0xffffffffffffffff
xorps xmm6, xmm6
movups xmmword [rsp + 0x88], xmm6
lea rcx, [rsp + 0x78]
mov rdx, r13
call fcn.14000b410
mov eax, dword [rsp + 0x7c]
cmp eax, 0xffffffff
je 0x140009c75
mov ecx, eax
and ecx, 0x10
je 0x140009c75
test eax, 0x400
jne 0x140009c75
mov eax, dword [rsp + 0x78]
cmp eax, 1
je 0x140009c75
test ebx, ebx
jne 0x140009c75
xor edi, edi
cmp eax, 2
jne 0x14000a172
mov word [rsp + 0xdc], 0x500
mov dword [rsp + 0xd8], 0
movups xmmword [rsp + 0xe0], xmm6
mov qword [rsp + 0xf0], 0
movups xmmword [rsp + 0x188], xmm6
movups xmmword [rsp + 0x178], xmm6
movups xmmword [rsp + 0x168], xmm6
movups xmmword [rsp + 0x158], xmm6
movups xmmword [rsp + 0x148], xmm6
movups xmmword [rsp + 0x138], xmm6
movups xmmword [rsp + 0x128], xmm6
movups xmmword [rsp + 0x118], xmm6
movups xmmword [rsp + 0x108], xmm6
movups xmmword [rsp + 0xf8], xmm6
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0xd8]
mov dl, 2
mov r8d, 0x20
mov r9d, 0x221
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, eax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0xe0], rax
test rcx, rcx
je 0x140009d78
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x140009fa2
movabs rbp, 0x2001f01ff
mov qword [rsp + 0xf8], rbp
mov dword [rsp + 0x100], 3
movabs rsi, 0x200000000
mov qword [rsp + 0x114], rsi
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0xd8]
mov dl, 2
mov r8d, 0x20
mov r9d, 0x220
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, eax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xe8]
mov qword [rsp + 0xe8], rax
test rcx, rcx
je 0x140009e40
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x14000a071
mov qword [rsp + 0x128], rbp
mov dword [rsp + 0x130], 3
mov qword [rsp + 0x144], rsi
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x150], rax
mov qword [rsp + 0xc0], 0
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0xd8]
mov dl, 1
mov r8d, 0x12
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, eax
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0xf0], rax
test rcx, rcx
je 0x140009ef7
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x14000a071
lea rdx, [rsp + 0xf8]
mov qword [rsp + 0x158], rbp
mov dword [rsp + 0x160], 3
movabs rax, 0x100000000
mov qword [rsp + 0x174], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x180], rax
mov qword [rsp + 0x98], 0
lea r9, [rsp + 0x98]
mov ecx, 3
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov ebp, eax
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x188]
mov qword [rsp + 0x188], rax
test rcx, rcx
je 0x140009f83
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebp, ebp
je 0x140009fc0
movzx edi, bp
or edi, 0x80070000
test ebp, ebp
cmovle edi, ebp
test edi, edi
jns 0x14000a089
jmp 0x14000a0d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x14000a085
movzx edi, di
or edi, 0x80070000
jmp 0x14000a0d8
mov ecx, 0x28
call fcn.14000e240
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x20], 0
mov rcx, qword [rsp + 0x190]
mov qword [rsp + 0x190], rax
test rcx, rcx
je 0x14000a007
call fcn.14000e248
mov rax, qword [rsp + 0x190]
test rax, rax
je 0x14000a279
mov qword [rsp + 0x198], rax
mov rcx, rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x14000a071
mov r8, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x198]
xor edi, edi
mov edx, 1
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x14000a071
mov dword [rsp + 0x1a0], 0x18
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x1a8], rax
mov dword [rsp + 0x1b0], 0
test edi, edi
jns 0x14000a089
jmp 0x14000a0d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x14000a0d8
test ebx, ebx
jne 0x14000a1d6
xor edi, edi
lea rdx, [rsp + 0x78]
mov rcx, r13
xor r8d, r8d
call fcn.14000a670
lea rdx, [rsp + 0x1a0]
mov rcx, qword [r13 + 8]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000a0d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000a28b
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [rsp + 0x190]
mov qword [rsp + 0x190], 0
test rcx, rcx
je 0x14000a0f6
call fcn.14000e248
mov rcx, qword [rsp + 0x188]
mov qword [rsp + 0x188], 0
test rcx, rcx
je 0x14000a115
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0xf0], 0
test rcx, rcx
je 0x14000a134
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0xe8]
mov qword [rsp + 0xe8], 0
test rcx, rcx
je 0x14000a153
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0xe0], 0
test rcx, rcx
je 0x14000a172
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x90], 0
test rcx, rcx
je 0x14000a190
call fcn.14000e248
mov rcx, qword [rsp + 0x80]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14000a1a8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.1400192f0
mov eax, edi
movaps xmm6, xmmword [rsp + 0x1c0]
add rsp, 0x1d8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
lea rcx, [rsp + 0xa0]
mov rdx, r13
call fcn.14000a910
mov edi, eax
test eax, eax
js 0x14000a252
mov rax, qword [rsp + 0xa0]
test rax, rax
je 0x14000a252
test r15b, r15b
jne 0x14000a32f
mov dword [rsp + 0x20], ebx
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x78]
lea r9, [rsp + 0xd8]
mov r8, r14
call fcn.14000aa20
mov ebx, eax
lea rdx, [rsp + 0x1a0]
mov rcx, qword [r13 + 8]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edi, edi
test eax, eax
jne 0x14000a252
test ebx, ebx
jns 0x14000a3fd
mov edi, ebx
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0xa8], 0
test rcx, rcx
je 0x14000a0d8
call fcn.14000e248
jmp 0x14000a0d8
mov edi, 0x8007000e
test edi, edi
jns 0x14000a089
jmp 0x14000a0d8
mov qword [rsp + 0xa0], r12
mov qword [rsp + 0xa8], 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rsp + 0xb0], xmm0
lea rcx, [rsp + 0xa0]
mov rdx, r13
mov r8d, 1
call fcn.14000b410
mov eax, dword [rsp + 0xa4]
cmp eax, 0xffffffff
je 0x14000a2eb
mov ecx, eax
and ecx, 0x10
je 0x14000a2eb
test eax, 0x400
jne 0x14000a2eb
mov eax, dword [rsp + 0xa0]
add eax, 0xffffffff
xor edi, edi
cmp eax, 1
ja 0x14000a2f0
mov edi, 0x800700b7
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 0xb8], 0
test rcx, rcx
je 0x14000a30e
call fcn.14000e248
mov rcx, qword [rsp + 0xa8]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14000a0d8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000a0d8
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmm0, xmmword [str.updates]
movaps xmmword [rsp + 0xc0], xmm0
mov dword [rsp + 0x98], 0x30
mov rsi, qword [r14]
lea r15, [rsp + 0xc0]
mov rcx, r15
call fcn.1400173f8
mov rdi, rax
lea rbp, [rsp + 0x98]
mov rcx, rbp
call fcn.1400173f8
add rdi, rsi
add rdi, rax
add rdi, 2
mov r9, qword [r14 + 8]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r15
lea r8, str._s_s_s
lea rbp, [rsp + 0x60]
mov rcx, rbp
mov rdx, rdi
call fcn.140009ab0
mov rsi, qword [rsp + 0x60]
cmp rsi, rdi
cmove r14, rbp
mov dword [rsp + 0x20], ebx
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x78]
lea r9, [rsp + 0xd8]
mov r8, r14
call fcn.14000aa20
mov ebp, eax
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x68], 0
test rcx, rcx
je 0x14000a3ed
call fcn.14000e248
cmp rsi, rdi
mov ebx, 0x80004005
cmove ebx, ebp
jmp 0x14000a230
lea rcx, [rsp + 0x78]
mov rdx, r13
mov r8d, 1
call fcn.14000b410
mov eax, dword [rsp + 0x7c]
mov edi, 0x80004005
cmp eax, 0xffffffff
je 0x14000a252
mov ecx, eax
and ecx, 0x10
je 0x14000a252
test eax, 0x400
jne 0x14000a252
mov eax, dword [rsp + 0x78]
add eax, 0xffffffff
cmp eax, 2
jb 0x14000a252
lea rcx, [rsp + 0x78]
lea r8, [rsp + 0xd8]
mov rdx, r13
call fcn.14000b590
cmp eax, 1
je 0x14000a250
jmp 0x14000a252