Function at 0x2b3676890
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 0x2b3676e02
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 0x2b3676938
mov ecx, edx
shr ecx, 3
rep movsq qword [rdi], qword [rsi]
xor eax, eax
test dl, 4
jne 0x2b3676de3
test dl, 2
jne 0x2b3676dcc
test dl, 1
jne 0x2b3676dc0
movzx eax, byte [rsp + r8 + 0x6f]
cmp al, 0x2f
je 0x2b367696e
cmp al, 0x5c
je 0x2b367696e
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 0x2b3676c97
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 0x2b3676d08
cmp dword [r12 + 0x10], ebx
jbe 0x2b3676d08
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 0x2b3676d08
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x68]
mov edx, ebx
mov rcx, r12
call fcn.2b366c900
test eax, eax
je 0x2b3676e0d
lea rsi, [rsp + 0x6f8]
mov rcx, rsi
call sub.msvcrt.dll_strlen
test rax, rax
je 0x2b3676d80
movzx edx, byte [rsp + 0x6f8]
cmp dl, 0x5c
je 0x2b3676a2a
cmp dl, 0x2f
jne 0x2b3676db8
mov rdx, rsi
nop dword [rax]
movzx ecx, byte [rdx + 1]
add rdx, 1
cmp cl, 0x2f
je 0x2b3676a30
cmp cl, 0x5c
je 0x2b3676a30
lea r8, [rdx + rax]
xor r10d, r10d
xor ecx, ecx
jmp 0x2b3676a70
lea rdi, [r10 + 0xb00]
add rcx, 1
lea r11, [rsp + rdi]
mov byte [rcx + r11 - 0x409], al
add rdx, 1
cmp r8, rdx
je 0x2b3676aa8
movzx eax, byte [rdx]
lea r9, [rsi + r10]
cmp al, 0x2f
je 0x2b3676a7f
cmp al, 0x5c
jne 0x2b3676a50
test rcx, rcx
je 0x2b3676a67
cmp byte [r9], 0x2e
jne 0x2b3676b90
cmp byte [r9 + 1], 0
jne 0x2b3676b90
add rdx, 1
xor ecx, ecx
cmp r8, rdx
jne 0x2b3676a70
nop dword [rax]
test rcx, rcx
je 0x2b3676ac2
cmp byte [r9], 0x2e
jne 0x2b3676d90
cmp byte [r9 + 1], 0
jne 0x2b3676d90
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 0x2b3676af9
cmp byte [rsp + 0x71], 0x3a
je 0x2b3676cc0
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 0x2b3676bd0
movsxd r15, r8d
jmp 0x2b3676b54
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 0x2b3676bd0
cmp dl, 0x2f
je 0x2b3676b5e
cmp dl, 0x5c
jne 0x2b3676b30
mov eax, r15d
test r15d, r15d
jle 0x2b3676b6b
test sil, sil
jne 0x2b3676b75
cmp eax, 2
jle 0x2b3676b30
test dil, dil
je 0x2b3676b30
mov rcx, r13
call rbp
cmp eax, 0xffffffff
je 0x2b3676ca0
movzx edx, byte [r14]
jmp 0x2b3676b30
cmp byte [r9], 0x2e
jne 0x2b3676bb0
cmp byte [r9 + 1], 0x2e
jne 0x2b3676bb0
cmp byte [r9 + 2], 0
je 0x2b3676a99
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 0x2b3676a67
movzx eax, byte [rsp + 0x6b1]
and eax, 0xffffffef
cmp ax, 3
jne 0x2b3676beb
test byte [rsp + 0x6df], 0x20
jne 0x2b3676c65
mov rdx, qword [r12 + 0x68]
test rdx, rdx
je 0x2b3676d70
mov eax, dword [rsp + 0x44]
cmp dword [r12 + 0x10], eax
jbe 0x2b3676d70
mov rax, qword [rdx + 0x20]
mov rdi, qword [rsp + 0x50]
mov eax, dword [rax + rdi]
add rax, qword [rdx]
je 0x2b3676d70
movzx edx, word [rax + 0x1c]
test dx, dx
je 0x2b3676c2d
cmp byte [rax + rdx + 0x2d], 0x2f
je 0x2b3676c4f
test byte [rax + 0x26], 0x10
jne 0x2b3676c4f
mov r8, qword [rsp + 0x38]
mov edx, dword [rsp + 0x44]
xor r9d, r9d
mov rcx, r12
call fcn.2b3676700
test eax, eax
je 0x2b3676df7
movzx edx, word [rsp + 0x6de]
lea eax, [rdx - 1]
cmp eax, 0xfffe
jbe 0x2b3676d50
cmp qword [rsp + 0xb60], 0
je 0x2b3676c88
mov rdx, qword [rsp + 0xb68]
mov rcx, qword [rsp + 0x38]
call qword [rsp + 0xb60]
test eax, eax
js 0x2b3676c97
add rbx, 1
cmp qword [rsp + 0x60], rbx
jne 0x2b36769a0
xor r13d, r13d
jmp 0x2b3676d17
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 0x11
je 0x2b3676b83
mov r13d, 0xffffffe9
jmp 0x2b3676d17
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 0x2b3676b20
mov dword [r12 + 0x1c], 0x18
mov r13d, 0xfffffffd
mov edx, 1
mov rcx, r12
call fcn.2b3667510
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 0x2b3676c65
mov r13d, 0xffffffec
jmp 0x2b3676d17
mov dword [r12 + 0x1c], 0x18
jmp 0x2b3676c33
mov r13d, 0xfffffffe
jmp 0x2b3676d17
cmp byte [r9], 0x2e
jne 0x2b3676ac6
cmp byte [r9 + 1], 0x2e
jne 0x2b3676ac6
cmp byte [r9 + 2], 0
je 0x2b3676ac2
jmp 0x2b3676ac6
mov rdx, rsi
jmp 0x2b3676a42
movzx ecx, byte [rsi + rax]
mov byte [rdi + rax], cl
jmp 0x2b3676955
movzx ecx, word [rsi + rax]
mov word [rdi + rax], cx
add rax, 2
test dl, 1
je 0x2b3676955
jmp 0x2b3676dc0
mov eax, dword [rsi]
mov dword [rdi], eax
mov eax, 4
test dl, 2
je 0x2b367694c
jmp 0x2b3676dcc
mov r13d, 0xffffffed
jmp 0x2b3676d17
mov r13d, 0xfffffffe
jmp 0x2b3676d2f
mov r13d, 0xfffffffd
jmp 0x2b3676d17