Function at 0x2b3670890
Capabilities:
Create directory

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb08
xor ebx, ebx
mov rax, rbx
lea rdi, [rsp + 0x70]
mov r12, rcx
mov ecx, 0x40
mov rsi, rdx
mov qword [rsp + 0x38], rdi
mov r14, rdi
lea rdx, [rsp + 0x280]
rep stosq qword [rdi], rax
mov ecx, 0x40
mov qword [rsp + 0xb60], r8
mov qword [rsp + 0xb68], r9
mov byte [rdi], 0
mov rdi, rdx
rep stosq qword [rdi], rax
mov rcx, rsi
mov byte [rdi], 0
call sub.msvcrt.dll_strlen
lea rdx, [rax + 1]
mov qword [rsp + 0x48], rax
mov r8, rax
cmp rdx, 0x200
ja 0x2b3670e02
lea rax, [rsp + 0x6a0]
mov ecx, 0x8b
mov rdi, rax
mov qword [rsp + 0x68], rax
mov rax, rbx
rep stosq qword [rdi], rax
mov rdi, r14
cmp edx, 8
jb 0x2b3670938
mov ecx, edx
shr ecx, 3
rep movsq qword [rdi], qword [rsi]
xor eax, eax
test dl, 4
jne 0x2b3670de3
test dl, 2
jne 0x2b3670dcc
test dl, 1
jne 0x2b3670dc0
movzx eax, byte [rsp + r8 + 0x6f]
cmp al, 0x2f
je 0x2b367096e
cmp al, 0x5c
je 0x2b367096e
mov byte [rsp + r8 + 0x70], 0x5c
mov qword [rsp + 0x48], rdx
mov eax, 0x200
sub rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov eax, dword [r12 + 0x10]
test eax, eax
je 0x2b3670c97
mov qword [rsp + 0x60], rax
mov rbp, qword [sym.imp.msvcrt.dll__mkdir]
xor ebx, ebx
nop dword [rax + rax]
mov rax, qword [r12 + 0x68]
mov dword [rsp + 0x44], ebx
test rax, rax
je 0x2b3670d08
cmp dword [r12 + 0x10], ebx
jbe 0x2b3670d08
mov rdx, qword [rax + 0x20]
lea rdi, [rbx*4]
mov qword [rsp + 0x50], rdi
mov r8d, dword [rdx + rbx*4]
add r8, qword [rax]
je 0x2b3670d08
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x68]
mov edx, ebx
mov rcx, r12
call fcn.2b3666900
test eax, eax
je 0x2b3670e0d
lea rsi, [rsp + 0x6f8]
mov rcx, rsi
call sub.msvcrt.dll_strlen
test rax, rax
je 0x2b3670d80
movzx edx, byte [rsp + 0x6f8]
cmp dl, 0x5c
je 0x2b3670a2a
cmp dl, 0x2f
jne 0x2b3670db8
mov rdx, rsi
nop dword [rax]
movzx ecx, byte [rdx + 1]
add rdx, 1
cmp cl, 0x2f
je 0x2b3670a30
cmp cl, 0x5c
je 0x2b3670a30
lea r8, [rdx + rax]
xor r10d, r10d
xor ecx, ecx
jmp 0x2b3670a70
lea rdi, [r10 + 0xb00]
add rcx, 1
lea r11, [rsp + rdi]
mov byte [rcx + r11 - 0x409], al
add rdx, 1
cmp r8, rdx
je 0x2b3670aa8
movzx eax, byte [rdx]
lea r9, [rsi + r10]
cmp al, 0x2f
je 0x2b3670a7f
cmp al, 0x5c
jne 0x2b3670a50
test rcx, rcx
je 0x2b3670a67
cmp byte [r9], 0x2e
jne 0x2b3670b90
cmp byte [r9 + 1], 0
jne 0x2b3670b90
add rdx, 1
xor ecx, ecx
cmp r8, rdx
jne 0x2b3670a70
nop dword [rax]
test rcx, rcx
je 0x2b3670ac2
cmp byte [r9], 0x2e
jne 0x2b3670d90
cmp byte [r9 + 1], 0
jne 0x2b3670d90
mov byte [r9], 0
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
add rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_strncpy
movzx edx, byte [rsp + 0x70]
mov eax, edx
and eax, 0xffffffdf
sub eax, 0x41
cmp al, 0x19
ja 0x2b3670af9
cmp byte [rsp + 0x71], 0x3a
je 0x2b3670cc0
mov ecx, 0x40
xor eax, eax
mov r14, qword [rsp + 0x38]
xor r8d, r8d
lea r13, [rsp + 0x490]
mov esi, 1
mov rdi, r13
rep stosq qword [rdi], rax
mov byte [rdi], 0
xor edi, edi
test dl, dl
je 0x2b3670bd0
movsxd r15, r8d
jmp 0x2b3670b54
add r14, 1
mov byte [r13 + r15], dl
cmp r15d, 0x1ff
movzx edx, byte [r14]
setne cl
test dl, dl
setne al
add r15, 1
test cl, al
je 0x2b3670bd0
cmp dl, 0x2f
je 0x2b3670b5e
cmp dl, 0x5c
jne 0x2b3670b30
mov eax, r15d
test r15d, r15d
jle 0x2b3670b6b
test sil, sil
jne 0x2b3670b75
cmp eax, 2
jle 0x2b3670b30
test dil, dil
je 0x2b3670b30
mov rcx, r13
call rbp
cmp eax, 0xffffffff
je 0x2b3670ca0
movzx edx, byte [r14]
jmp 0x2b3670b30
cmp byte [r9], 0x2e
jne 0x2b3670bb0
cmp byte [r9 + 1], 0x2e
jne 0x2b3670bb0
cmp byte [r9 + 2], 0
je 0x2b3670a99
nop dword [rax + rax]
add rcx, r10
lea r10, [rcx + 1]
mov byte [rsp + rcx + 0x6f8], al
xor ecx, ecx
lea r9, [rsi + r10]
jmp 0x2b3670a67
movzx eax, byte [rsp + 0x6b1]
and eax, 0xffffffef
cmp ax, 3
jne 0x2b3670beb
test byte [rsp + 0x6df], 0x20
jne 0x2b3670c65
mov rdx, qword [r12 + 0x68]
test rdx, rdx
je 0x2b3670d70
mov eax, dword [rsp + 0x44]
cmp dword [r12 + 0x10], eax
jbe 0x2b3670d70
mov rax, qword [rdx + 0x20]
mov rdi, qword [rsp + 0x50]
mov eax, dword [rax + rdi]
add rax, qword [rdx]
je 0x2b3670d70
movzx edx, word [rax + 0x1c]
test dx, dx
je 0x2b3670c2d
cmp byte [rax + rdx + 0x2d], 0x2f
je 0x2b3670c4f
test byte [rax + 0x26], 0x10
jne 0x2b3670c4f
mov r8, qword [rsp + 0x38]
mov edx, dword [rsp + 0x44]
xor r9d, r9d
mov rcx, r12
call fcn.2b3670700
test eax, eax
je 0x2b3670df7
movzx edx, word [rsp + 0x6de]
lea eax, [rdx - 1]
cmp eax, 0xfffe
jbe 0x2b3670d50
cmp qword [rsp + 0xb60], 0
je 0x2b3670c88
mov rdx, qword [rsp + 0xb68]
mov rcx, qword [rsp + 0x38]
call qword [rsp + 0xb60]
test eax, eax
js 0x2b3670c97
add rbx, 1
cmp qword [rsp + 0x60], rbx
jne 0x2b36709a0
xor r13d, r13d
jmp 0x2b3670d17
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 0x11
je 0x2b3670b83
mov r13d, 0xffffffe9
jmp 0x2b3670d17
mov ecx, 0x40
xor eax, eax
xor esi, esi
mov r8d, 2
lea r13, [rsp + 0x490]
lea r14, [rsp + 0x72]
mov rdi, r13
rep stosq qword [rdi], rax
mov byte [rsp + 0x490], dl
movzx edx, byte [rsp + 0x72]
mov byte [rsp + 0x491], 0x3a
mov byte [rdi], 0
mov edi, 1
jmp 0x2b3670b20
mov dword [r12 + 0x1c], 0x18
mov r13d, 0xfffffffd
mov edx, 1
mov rcx, r12
call fcn.2b3661510
test eax, eax
mov eax, 0xffffffe7
cmove r13d, eax
mov eax, r13d
add rsp, 0xb08
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll__chmod
test eax, eax
jns 0x2b3670c65
mov r13d, 0xffffffec
jmp 0x2b3670d17
mov dword [r12 + 0x1c], 0x18
jmp 0x2b3670c33
mov r13d, 0xfffffffe
jmp 0x2b3670d17
cmp byte [r9], 0x2e
jne 0x2b3670ac6
cmp byte [r9 + 1], 0x2e
jne 0x2b3670ac6
cmp byte [r9 + 2], 0
je 0x2b3670ac2
jmp 0x2b3670ac6
mov rdx, rsi
jmp 0x2b3670a42
movzx ecx, byte [rsi + rax]
mov byte [rdi + rax], cl
jmp 0x2b3670955
movzx ecx, word [rsi + rax]
mov word [rdi + rax], cx
add rax, 2
test dl, 1
je 0x2b3670955
jmp 0x2b3670dc0
mov eax, dword [rsi]
mov dword [rdi], eax
mov eax, 4
test dl, 2
je 0x2b367094c
jmp 0x2b3670dcc
mov r13d, 0xffffffed
jmp 0x2b3670d17
mov r13d, 0xfffffffe
jmp 0x2b3670d2f
mov r13d, 0xfffffffd
jmp 0x2b3670d17