Function at 0x1400aecf0
Capabilities:
Create directory
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r12, r8
mov rsi, rdx
mov rbp, rcx
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rdx + rdi*2], 0
jne 0x1400ac6d6
mov ebx, 4
lea rdx, [0x140115768]
mov r8d, ebx
mov rcx, rsi
call fcn.1400e7dc0
xor r13d, r13d
test eax, eax
mov r14d, r13d
sete r14b
test eax, eax
je 0x1400ac753
cmp edi, 3
jl 0x1400ac739
movzx ecx, word [rsi]
lea eax, [rcx - 0x61]
cmp ax, 0x19
jbe 0x1400ac722
sub cx, 0x41
cmp cx, 0x19
ja 0x1400ac739
cmp word [rsi + 2], 0x3a
jne 0x1400ac739
movzx eax, word [rsi + 4]
cmp ax, 0x5c
je 0x1400ac753
cmp ax, 0x2f
je 0x1400ac753
mov qword [rbp + 0x88], 0xfffffffffffff019
mov dword [rbp + 0x14c], getprotobyname
jmp 0x1400ac9ec
lea eax, [rdi*4 + 0x20]
mov qword [rsp + 0x70], r15
movsxd rcx, eax
call fcn.1400a8170
mov r15, rax
test rax, rax
je 0x1400aca06
mov r8, rbx
lea rdx, [0x140115758]
lea rcx, [rax + 0x10]
call fcn.1400ea168
lea eax, [r14*4]
mov r8d, r13d
movzx ecx, word [rsi + rax*2]
mov r14d, 0x5c
mov r11d, eax
lea r10, [rsi + rax*2]
test cx, cx
je 0x1400ac7f6
mov r9d, r11d
mov rdx, r10
nop dword [rax]
cmp cx, r14w
je 0x1400ac7df
cmp cx, 0x2f
je 0x1400ac7df
test r8d, r8d
je 0x1400ac7d2
movsxd rax, ebx
mov r8d, r13d
inc ebx
mov word [r15 + rax*2 + 0x10], r14w
movzx ecx, word [rdx]
movsxd rax, ebx
inc ebx
mov word [r15 + rax*2 + 0x10], cx
jmp 0x1400ac7e5
mov r8d, 1
inc r9
movzx ecx, word [rsi + r9*2]
lea rdx, [rsi + r9*2]
test cx, cx
jne 0x1400ac7b0
movsxd rax, ebx
mov edx, r13d
inc ebx
mov word [r15 + rax*2 + 0x10], r14w
movzx eax, bx
add ax, ax
mov word [r15 + 8], r13w
mov word [r15 + 0xa], ax
movsxd rax, ebx
inc ebx
mov r8d, ebx
mov word [r15 + rax*2 + 0x10], r13w
movzx ecx, word [r10]
test cx, cx
je 0x1400ac875
nop dword [rax + rax]
cmp cx, r14w
je 0x1400ac85f
cmp cx, 0x2f
je 0x1400ac85f
test edx, edx
je 0x1400ac852
movsxd rax, ebx
mov edx, r13d
inc ebx
mov word [r15 + rax*2 + 0x10], r14w
movzx ecx, word [r10]
movsxd rax, ebx
inc ebx
mov word [r15 + rax*2 + 0x10], cx
jmp 0x1400ac864
mov edx, 1
inc r11
movzx ecx, word [rsi + r11*2]
lea r10, [rsi + r11*2]
test cx, cx
jne 0x1400ac830
mov eax, ebx
sub eax, r8d
cmp eax, 2
jne 0x1400ac88f
movsxd rax, ebx
inc ebx
mov word [r15 + rax*2 + 0x10], r14w
mov eax, 3
add ax, ax
lea edi, [rbx*2 + 0x12]
mov word [r15 + 0xe], ax
add r8w, r8w
movsxd rax, ebx
xor edx, edx
mov word [r15 + 0xc], r8w
mov rcx, r12
mov word [r15 + rax*2 + 0x10], r13w
lea eax, [rdi - 8]
mov word [r15 + 4], ax
mov dword [r15], 0xa0000003
mov word [r15 + 6], r13w
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400ac8fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [rbp + 0x14c], eax
call fcn.1400b5700
movsxd rcx, eax
mov qword [rbp + 0x88], rcx
mov rcx, r15
call fcn.1400a7f70
jmp 0x1400ac9e7
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov dword [rsp + 0x28], 0x2200000
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400ac962
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [rbp + 0x14c], eax
call fcn.1400b5700
movsxd rcx, eax
mov qword [rbp + 0x88], rcx
mov rcx, r15
call fcn.1400a7f70
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400ac9e7
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x88]
mov qword [rsp + 0x30], rax
mov r9d, edi
mov dword [rsp + 0x28], r13d
mov r8, r15
mov edx, 0x900a4
mov qword [rsp + 0x20], r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400ac9cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [rbp + 0x14c], eax
call fcn.1400b5700
movsxd rcx, eax
mov qword [rbp + 0x88], rcx
mov rcx, r15
call fcn.1400a7f70
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400ac9e7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call fcn.1400a7f70
mov qword [rbp + 0x88], r13
mov r15, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
lea rdx, str.uv__malloc
mov ecx, select
call fcn.1400b5650
int3
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x150]
mov rbx, rcx
mov rcx, qword [rcx + 0x160]
mov r8d, dword [rbx + 0x168]
test r8b, 2
jne 0x1400aed6d
mov edi, dword [reloc.WS2_32.dll_bind]
nop
mov eax, edi
or eax, 1
test r8b, 1
cmovne edi, eax
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_CreateSymbolicLinkW]
test al, al
jne 0x1400aeda4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1400aed82
test dil, 2
je 0x1400aed82
mov r8d, dword [rbx + 0x168]
xor edi, edi
mov rdx, qword [rbx + 0x150]
mov rcx, qword [rbx + 0x160]
mov dword [reloc.WS2_32.dll_bind], edi
test r8b, 2
je 0x1400aed20
mov r8, rcx
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1400ac6b0
mov ecx, eax
mov dword [rbx + 0x14c], eax
call fcn.1400b5700
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov qword [rbx + 0x88], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret