Function at 0x14005c630
Capabilities:
Create directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xe0
mov edx, 8
mov rsi, rcx
mov rcx, qword [0x1400d8fb0]
mov qword [rax - 0x30], r12
lea r8d, [rdx + 0x50]
mov qword [rax - 0x40], r15
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x14005c67f
xor r14d, r14d
mov rdi, r14
mov qword [rsp + 0x60], r14
jmp 0x14005c69c
xor r14d, r14d
lea rcx, str.database
mov dword [rax + 0x48], 1
mov dword [rax], r14d
call sym.ProcessHacker.exe_PhDuplicateAnsiStringZSafe
mov qword [rdi + 0x30], rax
mov ebp, 5
xor eax, eax
lock cmpxchg qword [0x1400d64c8], rbp
je 0x14005c6ba
lea rcx, [0x1400d64c8]
call sym.ProcessHacker.exe_PhfAcquireQueuedLockShared
mov r12, qword [0x1400d80e0]
lea rax, [0x1400d80e0]
or r15, 0xffffffffffffffff
mov qword [rsp + 0x128], r12
cmp r12, rax
je 0x14005cc87
mov qword [rsp + 0xd0], r13
mov eax, dword [r12 + 0x4c]
bt eax, 0xd
jb 0x14005c6fa
bt eax, 0xe
jae 0x14005cc51
mov rcx, qword [0x1400d8fb0]
mov edx, 8
lea r8d, [rdx + 0x50]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
jne 0x14005c720
mov rsi, r14
jmp 0x14005c7ac
mov dword [rax], r14d
mov dword [rax + 0x48], 1
test rdi, rdi
je 0x14005c761
cmp qword [rax + 0x18], 0
je 0x14005c73e
mov rcx, rax
call fcn.140094490
mov qword [rsi + 0x18], rdi
mov rax, qword [rdi + 0x28]
mov qword [rsi + 0x10], rax
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x14005c759
mov qword [rax + 8], rsi
jmp 0x14005c75d
mov qword [rdi + 0x20], rsi
mov qword [rdi + 0x28], rsi
xor eax, eax
lea rdi, str.process
mov rcx, r15
repne scasb al, byte [rdi]
xor edx, edx
not rcx
mov r8, rcx
lea rbx, [rcx - 1]
mov rcx, qword [0x1400d8fb0]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x14005c795
mov rdi, r14
jmp 0x14005c7a8
lea r8, [rbx + 1]
lea rdx, str.process
mov rcx, rax
call fcn.140094930
mov qword [rsi + 0x30], rdi
cmp qword [r12 + 0x30], 0
je 0x14005c82a
xor edx, edx
mov rcx, rsi
call fcn.1400944f0
mov rdi, rax
test rax, rax
je 0x14005c7d6
lea rcx, str.filename
call sym.ProcessHacker.exe_PhDuplicateAnsiStringZSafe
mov qword [rdi + 0x30], rax
mov rcx, qword [r12 + 0x30]
add rcx, 0x10
movzx edx, word [rcx - 0x10]
call sym.ProcessHacker.exe_PhCreateAnsiStringFromUnicodeEx
mov rbp, rax
lea rbx, [rax + 0x10]
test rbx, rbx
je 0x14005c815
mov edx, 2
mov rcx, rdi
call fcn.1400944f0
mov rdi, rax
test rax, rax
je 0x14005c815
mov rcx, rbx
call sym.ProcessHacker.exe_PhDuplicateAnsiStringZSafe
mov qword [rdi + 0x30], rax
lea rcx, [rbp - 0x20]
mov eax, r15d
lock xadd dword [rcx], eax
add eax, 0xffffffff
jne 0x14005c82a
call fcn.14001fcd0
test byte [r12 + 0x4c], 2
je 0x14005c8cd
xor edx, edx
mov rcx, rsi
call fcn.1400944f0
mov rbx, rax
test rax, rax
je 0x14005c858
lea rcx, str.hash
call sym.ProcessHacker.exe_PhDuplicateAnsiStringZSafe
mov qword [rbx + 0x30], rax
lea rcx, [r12 + 0x38]
mov edx, 0x10
call sym.ProcessHacker.exe_PhBufferToHexString
mov rdi, rax
movzx edx, word [rax]
lea rcx, [rax + 0x10]
call sym.ProcessHacker.exe_PhCreateAnsiStringFromUnicodeEx
lea rcx, [rdi - 0x20]
mov edx, r15d
mov rbp, rax
lock xadd dword [rcx], edx
add edx, 0xffffffff
jne 0x14005c88e
call fcn.14001fcd0
lea rdi, [rbp + 0x10]
test rdi, rdi
je 0x14005c8b8
mov edx, 2
mov rcx, rbx
call fcn.1400944f0
mov rbx, rax
test rax, rax
je 0x14005c8b8
mov rcx, rdi
call sym.ProcessHacker.exe_PhDuplicateAnsiStringZSafe
mov qword [rbx + 0x30], rax
lea rcx, [rbp - 0x20]
mov eax, r15d
lock xadd dword [rcx], eax
add eax, 0xffffffff
jne 0x14005c8cd
call fcn.14001fcd0
mov rcx, qword [0x1400d8fb0]
mov edx, 8
lea r8d, [rdx + 0x50]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
jne 0x14005c8f3
mov rbx, r14
jmp 0x14005c97f
mov dword [rax], r14d
mov dword [rax + 0x48], 1
test rsi, rsi
je 0x14005c934
cmp qword [rax + 0x18], 0
je 0x14005c911
mov rcx, rax
call fcn.140094490
mov qword [rbx + 0x18], rsi
mov rax, qword [rsi + 0x28]
mov qword [rbx + 0x10], rax
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x14005c92c
mov qword [rax + 8], rbx
jmp 0x14005c930
mov qword [rsi + 0x20], rbx
mov qword [rsi + 0x28], rbx
xor eax, eax
lea rdi, str.flags
mov rcx, r15
repne scasb al, byte [rdi]
xor edx, edx
not rcx
mov r8, rcx
lea rbp, [rcx - 1]
mov rcx, qword [0x1400d8fb0]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x14005c968
mov rdi, r14
jmp 0x14005c97b
lea r8, [rbp + 1]
lea rdx, str.flags
mov rcx, rax
call fcn.140094930
mov qword [rbx + 0x30], rdi
mov ecx, dword [r12 + 0x4c]
xor r8d, r8d
lea edx, [r8 + 0x10]
call fcn.1400042e0
mov rdi, rax
movzx edx, word [rax]
lea rcx, [rax + 0x10]
call sym.ProcessHacker.exe_PhCreateAnsiStringFromUnicodeEx
lea rcx, [rdi - 0x20]
mov edx, r15d
mov r13, rax
lock xadd dword [rcx], edx
add edx, 0xffffffff
jne 0x14005c9b7
call fcn.14001fcd0
lea r12, [r13 + 0x10]
test r12, r12
je 0x14005ca6d
mov rcx, qword [0x1400d8fb0]
mov edx, 8
lea r8d, [rdx + 0x50]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
test rax, rax
je 0x14005ca6d
mov dword [rax], 2
mov dword [rax + 0x48], 1
test rbx, rbx
je 0x14005ca2a
cmp qword [rax + 0x18], 0
je 0x14005ca07
mov rcx, rax
call fcn.140094490
mov qword [rbp + 0x18], rbx
mov rax, qword [rbx + 0x28]
mov qword [rbp + 0x10], rax
mov rax, qword [rbx + 0x28]
test rax, rax
je 0x14005ca22
mov qword [rax + 8], rbp
jmp 0x14005ca26
mov qword [rbx + 0x20], rbp
mov qword [rbx + 0x28], rbp
xor eax, eax
mov rcx, r15
mov rdi, r12
repne scasb al, byte [rdi]
xor edx, edx
not rcx
mov r8, rcx
lea rbx, [rcx - 1]
mov rcx, qword [0x1400d8fb0]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x14005ca5a
mov rdi, r14
jmp 0x14005ca69
lea r8, [rbx + 1]
mov rdx, r12
mov rcx, rax
call fcn.140094930
mov qword [rbp + 0x30], rdi
lea rcx, [r13 - 0x20]
mov eax, r15d
lock xadd dword [rcx], eax
add eax, 0xffffffff
jne 0x14005ca82
call fcn.14001fcd0
mov rcx, qword [0x1400d8fb0]
mov edx, 8
lea r8d, [rdx + 0x50]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
jne 0x14005caa8
mov rbx, r14
jmp 0x14005cb34
mov dword [rax], r14d
mov dword [rax + 0x48], 1
test rsi, rsi
je 0x14005cae9
cmp qword [rax + 0x18], 0
je 0x14005cac6
mov rcx, rax
call fcn.140094490
mov qword [rbx + 0x18], rsi
mov rax, qword [rsi + 0x28]
mov qword [rbx + 0x10], rax
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x14005cae1
mov qword [rax + 8], rbx
jmp 0x14005cae5
mov qword [rsi + 0x20], rbx
mov qword [rsi + 0x28], rbx
xor eax, eax
lea rdi, str.desiredprioritywin32
mov rcx, r15
repne scasb al, byte [rdi]
xor edx, edx
not rcx
mov r8, rcx
lea rsi, [rcx - 1]
mov rcx, qword [0x1400d8fb0]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x14005cb1d
mov rdi, r14
jmp 0x14005cb30
lea r8, [rsi + 1]
lea rdx, str.desiredprioritywin32
mov rcx, rax
call fcn.140094930
mov qword [rbx + 0x30], rdi
mov rax, qword [rsp + 0x128]
xor r8d, r8d
mov ecx, dword [rax + 0x50]
lea edx, [r8 + 0x10]
call fcn.1400042e0
mov rdi, rax
movzx edx, word [rax]
lea rcx, [rax + 0x10]
call sym.ProcessHacker.exe_PhCreateAnsiStringFromUnicodeEx
lea rcx, [rdi - 0x20]
mov edx, r15d
mov r12, rax
lock xadd dword [rcx], edx
add edx, 0xffffffff
jne 0x14005cb72
call fcn.14001fcd0
lea rbp, [r12 + 0x10]
test rbp, rbp
je 0x14005cc29
mov rcx, qword [0x1400d8fb0]
mov edx, 8
lea r8d, [rdx + 0x50]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
je 0x14005cc29
mov dword [rax], 2
mov dword [rax + 0x48], 1
test rbx, rbx
je 0x14005cbe6
cmp qword [rax + 0x18], 0
je 0x14005cbc3
mov rcx, rax
call fcn.140094490
mov qword [rsi + 0x18], rbx
mov rax, qword [rbx + 0x28]
mov qword [rsi + 0x10], rax
mov rax, qword [rbx + 0x28]
test rax, rax
je 0x14005cbde
mov qword [rax + 8], rsi
jmp 0x14005cbe2
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], rsi
xor eax, eax
mov rcx, r15
mov rdi, rbp
repne scasb al, byte [rdi]
xor edx, edx
not rcx
mov r8, rcx
lea rbx, [rcx - 1]
mov rcx, qword [0x1400d8fb0]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x14005cc16
mov rdi, r14
jmp 0x14005cc25
lea r8, [rbx + 1]
mov rdx, rbp
mov rcx, rax
call fcn.140094930
mov qword [rsi + 0x30], rdi
lea rcx, [r12 - 0x20]
mov eax, r15d
lock xadd dword [rcx], eax
add eax, 0xffffffff
jne 0x14005cc49
call fcn.14001fcd0
mov r12, qword [rsp + 0x128]
jmp 0x14005cc51
mov r12, qword [rsp + 0x128]
mov r12, qword [r12]
mov rdi, qword [rsp + 0x60]
lea rax, [0x1400d80e0]
mov qword [rsp + 0x128], r12
cmp r12, rax
jne 0x14005c6e5
mov rsi, qword [rsp + 0x110]
mov r13, qword [rsp + 0xd0]
mov ebp, 5
mov rax, rbp
mov r12, qword [rsp + 0xd8]
lock cmpxchg qword [0x1400d64c8], r14
je 0x14005cca9
lea rcx, [0x1400d64c8]
call sym.ProcessHacker.exe_PhfReleaseQueuedLockShared
lea rdx, [rsp + 0x118]
mov rcx, rsi
call sym.ProcessHacker.exe_PhGetFullPath
mov rbx, rax
test rax, rax
je 0x14005cd17
mov eax, dword [rsp + 0x118]
cmp eax, 0xffffffff
je 0x14005cd03
mov rdx, rax
lea rcx, [rbx + 0x10]
add rdx, rdx
call sym.ProcessHacker.exe_PhCreateStringEx
xor r8d, r8d
xor ecx, ecx
lea rdx, [rax + 0x10]
mov rdi, rax
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea rcx, [rdi - 0x20]
mov eax, r15d
lock xadd dword [rcx], eax
add eax, 0xffffffff
jne 0x14005cd03
call fcn.14001fcd0
lea rcx, [rbx - 0x20]
lock xadd dword [rcx], r15d
add r15d, 0xffffffff
jne 0x14005cd17
call fcn.14001fcd0
lea rdx, [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
mov r15, qword [rsp + 0xc8]
test al, al
jne 0x14005cd56
mov rcx, qword [rsp + 0x60]
mov edi, 0xc0000034
call fcn.140094260
mov eax, edi
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], ebp
lea rax, [rsp + 0x70]
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x90]
lea rcx, [rsp + 0x68]
mov edx, 0x120116
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x90], 0x30
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x98], r14
mov dword [rsp + 0xa8], 0x40
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xb0], r14
mov qword [rsp + 0xb8], r14
call qword [sym.imp.ntdll.dll_NtCreateFile]
xor edx, edx
mov edi, eax
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x78]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbx, qword [rsp + 0x118]
test edi, edi
cmovns rbx, qword [rsp + 0x68]
test edi, edi
jns 0x14005ce2a
mov rcx, qword [rsp + 0x60]
call fcn.140094260
mov eax, edi
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rsi, qword [rsp + 0x60]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.140090f40
mov rcx, rsi
call fcn.140094260
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret