Function at 0x140005a10
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, [0x14010bf60]
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 0x140005d5a
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 0x140005a80
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 0x140005b1c
mov rdx, qword [rsi + 0x18]
cmp rdx, rdi
jbe 0x140005b0c
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x140005b07
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005b4d
mov rcx, r8
call fcn.14005ef2c
movups xmmword [rsi], xmm6
movups xmmword [rsi + 0x10], xmm7
mov rdx, rdi
mov byte [rbp - 0x51], 0
jmp 0x140005b20
mov rdx, qword [rbp - 0x39]
cmp rdx, rdi
jbe 0x140005b5a
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b54
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005b54
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 0x140005b98
inc rdx
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b93
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005b93
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 0x140005bb0
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 0x140005c17
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 0x140005c8d
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140005c80
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140005c7b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005cc0
mov rcx, r8
call fcn.14005ef2c
movups xmmword [rbx], xmm6
movups xmmword [rbx + 0x10], xmm7
mov byte [rbp - 0x31], 0
jmp 0x140005c91
mov rdi, qword [rbp - 0x19]
cmp rdi, 0xf
jbe 0x140005ccd
lea rdx, [rdi + 1]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005cc7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005cc7
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 0x140005d0b
inc rdx
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005d06
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005d06
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 0x140005d5a
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005d55
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005d55
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.0x140005d8e
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]
xor byte [rcx + 7], al
jne 0x1400d7703
imul esi, dword [rdx], 0x7383030
jne 0x1400d770b
imul esi, dword [rax], 0x7304130
jne 0x1400d7713
imul esi, dword [rdx], 0x7393030
jne 0x1400d771b
imul esi, dword [rdx], 0x7423030
jne 0x1400d7723
imul esi, dword [rdx], 0xd354230
invalid
xor dh, byte [rax]
invalid
je 0x1400d776f
invalid
xor byte [rdx + 0x31], al
invalid
xor byte [rdx + 0x44], al
invalid
xor byte [rdx + 0x39], al
invalid
invalid
jmp rsi
add byte [rax], al
add byte [rax], al
jmp rdi
add byte [rax], al
add byte [rax], al
invalid