Function at 0x20412acf0
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 0x20412b262
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 0x20412ad98
mov ecx, edx
shr ecx, 3
rep movsq qword [rdi], qword [rsi]
xor eax, eax
test dl, 4
jne 0x20412b243
test dl, 2
jne 0x20412b22c
test dl, 1
jne 0x20412b220
movzx eax, byte [rsp + r8 + 0x6f]
cmp al, 0x2f
je 0x20412adce
cmp al, 0x5c
je 0x20412adce
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 0x20412b0f7
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 0x20412b168
cmp dword [r12 + 0x10], ebx
jbe 0x20412b168
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 0x20412b168
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x68]
mov edx, ebx
mov rcx, r12
call fcn.204120d60
test eax, eax
je 0x20412b26d
lea rsi, [rsp + 0x6f8]
mov rcx, rsi
call sub.msvcrt.dll_strlen
test rax, rax
je 0x20412b1e0
movzx edx, byte [rsp + 0x6f8]
cmp dl, 0x5c
je 0x20412ae8a
cmp dl, 0x2f
jne 0x20412b218
mov rdx, rsi
nop dword [rax]
movzx ecx, byte [rdx + 1]
add rdx, 1
cmp cl, 0x2f
je 0x20412ae90
cmp cl, 0x5c
je 0x20412ae90
lea r8, [rdx + rax]
xor r10d, r10d
xor ecx, ecx
jmp 0x20412aed0
lea rdi, [r10 + 0xb00]
add rcx, 1
lea r11, [rsp + rdi]
mov byte [rcx + r11 - 0x409], al
add rdx, 1
cmp r8, rdx
je 0x20412af08
movzx eax, byte [rdx]
lea r9, [rsi + r10]
cmp al, 0x2f
je 0x20412aedf
cmp al, 0x5c
jne 0x20412aeb0
test rcx, rcx
je 0x20412aec7
cmp byte [r9], 0x2e
jne 0x20412aff0
cmp byte [r9 + 1], 0
jne 0x20412aff0
add rdx, 1
xor ecx, ecx
cmp r8, rdx
jne 0x20412aed0
nop dword [rax]
test rcx, rcx
je 0x20412af22
cmp byte [r9], 0x2e
jne 0x20412b1f0
cmp byte [r9 + 1], 0
jne 0x20412b1f0
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 0x20412af59
cmp byte [rsp + 0x71], 0x3a
je 0x20412b120
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 0x20412b030
movsxd r15, r8d
jmp 0x20412afb4
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 0x20412b030
cmp dl, 0x2f
je 0x20412afbe
cmp dl, 0x5c
jne 0x20412af90
mov eax, r15d
test r15d, r15d
jle 0x20412afcb
test sil, sil
jne 0x20412afd5
cmp eax, 2
jle 0x20412af90
test dil, dil
je 0x20412af90
mov rcx, r13
call rbp
cmp eax, 0xffffffff
je 0x20412b100
movzx edx, byte [r14]
jmp 0x20412af90
cmp byte [r9], 0x2e
jne 0x20412b010
cmp byte [r9 + 1], 0x2e
jne 0x20412b010
cmp byte [r9 + 2], 0
je 0x20412aef9
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 0x20412aec7
movzx eax, byte [rsp + 0x6b1]
and eax, 0xffffffef
cmp ax, 3
jne 0x20412b04b
test byte [rsp + 0x6df], 0x20
jne 0x20412b0c5
mov rdx, qword [r12 + 0x68]
test rdx, rdx
je 0x20412b1d0
mov eax, dword [rsp + 0x44]
cmp dword [r12 + 0x10], eax
jbe 0x20412b1d0
mov rax, qword [rdx + 0x20]
mov rdi, qword [rsp + 0x50]
mov eax, dword [rax + rdi]
add rax, qword [rdx]
je 0x20412b1d0
movzx edx, word [rax + 0x1c]
test dx, dx
je 0x20412b08d
cmp byte [rax + rdx + 0x2d], 0x2f
je 0x20412b0af
test byte [rax + 0x26], 0x10
jne 0x20412b0af
mov r8, qword [rsp + 0x38]
mov edx, dword [rsp + 0x44]
xor r9d, r9d
mov rcx, r12
call fcn.20412ab60
test eax, eax
je 0x20412b257
movzx edx, word [rsp + 0x6de]
lea eax, [rdx - 1]
cmp eax, 0xfffe
jbe 0x20412b1b0
cmp qword [rsp + 0xb60], 0
je 0x20412b0e8
mov rdx, qword [rsp + 0xb68]
mov rcx, qword [rsp + 0x38]
call qword [rsp + 0xb60]
test eax, eax
js 0x20412b0f7
add rbx, 1
cmp qword [rsp + 0x60], rbx
jne 0x20412ae00
xor r13d, r13d
jmp 0x20412b177
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 0x11
je 0x20412afe3
mov r13d, 0xffffffe9
jmp 0x20412b177
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 0x20412af80
mov dword [r12 + 0x1c], 0x18
mov r13d, 0xfffffffd
mov edx, 1
mov rcx, r12
call fcn.20411b970
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 0x20412b0c5
mov r13d, 0xffffffec
jmp 0x20412b177
mov dword [r12 + 0x1c], 0x18
jmp 0x20412b093
mov r13d, 0xfffffffe
jmp 0x20412b177
cmp byte [r9], 0x2e
jne 0x20412af26
cmp byte [r9 + 1], 0x2e
jne 0x20412af26
cmp byte [r9 + 2], 0
je 0x20412af22
jmp 0x20412af26
mov rdx, rsi
jmp 0x20412aea2
movzx ecx, byte [rsi + rax]
mov byte [rdi + rax], cl
jmp 0x20412adb5
movzx ecx, word [rsi + rax]
mov word [rdi + rax], cx
add rax, 2
test dl, 1
je 0x20412adb5
jmp 0x20412b220
mov eax, dword [rsi]
mov dword [rdi], eax
mov eax, 4
test dl, 2
je 0x20412adac
jmp 0x20412b22c
mov r13d, 0xffffffed
jmp 0x20412b177
mov r13d, 0xfffffffe
jmp 0x20412b18f
mov r13d, 0xfffffffd
jmp 0x20412b177