Function at 0x140038500
Capabilities:
Create directory
Hash data using djb2

Disassembly:
push rbp
push rbx
push r15
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
mov rbx, rdx
lea r9, [rbp + 0x150]
mov r15, rcx
mov r8, rdx
mov eax, 5
nop dword [rax]
lea r9, [r9 + 0x80]
movups xmm0, xmmword [r8]
movups xmm1, xmmword [r8 + 0x10]
lea r8, [r8 + 0x80]
movups xmmword [r9 - 0x80], xmm0
movups xmm0, xmmword [r8 - 0x60]
movups xmmword [r9 - 0x70], xmm1
movups xmm1, xmmword [r8 - 0x50]
movups xmmword [r9 - 0x60], xmm0
movups xmm0, xmmword [r8 - 0x40]
movups xmmword [r9 - 0x50], xmm1
movups xmm1, xmmword [r8 - 0x30]
movups xmmword [r9 - 0x40], xmm0
movups xmm0, xmmword [r8 - 0x20]
movups xmmword [r9 - 0x30], xmm1
movups xmm1, xmmword [r8 - 0x10]
movups xmmword [r9 - 0x20], xmm0
movups xmmword [r9 - 0x10], xmm1
sub rax, 1
jne 0x140038530
mov rax, qword [r8]
mov qword [r9], rax
mov eax, dword [r8 + 8]
mov dword [r9 + 8], eax
mov rax, qword [rbp + 0x150]
mov rcx, rax
shr rax, 0x20
shr ax, 1
and ax, 1
shr rcx, 0x30
cmp cx, ax
jbe 0x1400385cb
dec cx
mov word [rbp + 0x156], cx
jmp 0x1400385d2
movzx ecx, word [rbp + 0x156]
mov qword [rsp + 0x508], rdi
mov qword [rsp + 0x510], r14
cmp word [rdx + 6], cx
jne 0x14003864a
cmp word [rdx + 6], 0
je 0x1400386e0
movzx r8d, word [rdx + 6]
lea rcx, [rdx + 0xa]
add r8, r8
lea rdx, [rbp + 0x15a]
call fcn.140070b30
test eax, eax
jne 0x14003864a
movzx eax, word [rbx + 6]
cmp eax, 1
jbe 0x140038627
movsxd rcx, eax
movzx edx, word [rbx + rcx*2 + 8]
sub dx, word [rbx + rax*2 + 6]
jmp 0x14003862b
movzx edx, word [rbx + 0xa]
movzx r8d, dx
lea rcx, [rbx + 0x8a]
lea rdx, [rbp + 0x1da]
call fcn.140070b30
test eax, eax
je 0x1400386e0
lea rdx, [rbp + 0x150]
mov rcx, r15
call fcn.140038500
test al, al
je 0x140038949
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14003d9a0
movzx edx, byte [rsp + 0x50]
lea r9, [rsp + 0x51]
mov edi, 0x1505
mov r8d, edi
test edx, edx
je 0x1400386b0
nop dword [rax]
nop dword [rax + rax]
lea eax, [rdx - 0x41]
cmp eax, 0x1a
lea ecx, [rdx + 0x20]
lea r9, [r9 + 1]
cmovb edx, ecx
imul r8d, r8d, 0x21
add r8d, edx
movzx edx, byte [r9 - 1]
test edx, edx
jne 0x140038690
test r8d, r8d
lea rcx, [rsp + 0x30]
mov r14d, 1
mov rdx, r15
mov r9d, r14d
cmovne r9d, r8d
lea r8, [rsp + 0x50]
call fcn.140045a80
mov ecx, dword [rsp + 0x30]
mov eax, ecx
shr eax, 3
test r14b, al
je 0x1400386e7
mov al, 1
jmp 0x14003894b
shr ecx, 2
test r14b, cl
jne 0x140038949
lea r8, [rsp + 0x50]
mov ecx, 0x10
lea rdx, str.create_dir___s_
call fcn.140013a20
movsx ecx, byte [rsp + 0x50]
call fcn.140053504
test eax, eax
je 0x14003872b
cmp word [rsp + 0x51], 0x5c3a
jne 0x14003872b
cmp byte [rsp + 0x53], 0
je 0x1400388f4
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x500], rsi
mov r9, rbx
lea rax, [rsp + 0x50]
inc r9
cmp byte [rax + r9], 0
jne 0x140038742
xor eax, eax
lea r8, [rsp + 0x50]
mov dword [rsp + 0x28], eax
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rsi, eax
xorps xmm0, xmm0
xorps xmm1, xmm1
lea rcx, [rsp + 0x30]
mov r8, rsi
xor edx, edx
movups xmmword [rsp + 0x30], xmm0
movdqu xmmword [rsp + 0x40], xmm1
call fcn.140014a70
test esi, esi
je 0x1400387cd
cmp qword [rsp + 0x48], 7
lea rdx, [rsp + 0x30]
lea rax, [rsp + 0x50]
cmova rdx, qword [rsp + 0x30]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400387a6
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rdx
mov r9, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rcx, [rsp + 0x30]
call fcn.140013ed0
mov rsi, qword [rsp + 0x500]
test al, al
jne 0x14003882c
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140038825
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140038820
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140038967
mov rcx, r8
call fcn.140048124
xor bl, bl
jmp 0x1400388f8
cmp qword [rsp + 0x48], 7
lea rcx, [rsp + 0x30]
cmova rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400388b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400387e3
cmp qword [rsp + 0x48], 7
lea rcx, [rsp + 0x30]
cmova rcx, qword [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov rdx, qword [rsp + 0x48]
test eax, eax
setne bl
cmp rdx, 7
jbe 0x1400388f8
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400388af
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140038967
mov rcx, r8
call fcn.140048124
jmp 0x1400388f8
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x1400388f4
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400388ef
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140038967
mov rcx, r8
call fcn.140048124
movzx ebx, r14b
movzx edx, byte [rsp + 0x50]
lea r9, [rsp + 0x51]
test edx, edx
je 0x14003892e
nop word [rax + rax]
lea eax, [rdx - 0x41]
cmp eax, 0x1a
lea ecx, [rdx + 0x20]
lea r9, [r9 + 1]
cmovb edx, ecx
imul edi, edi, 0x21
add edi, edx
movzx edx, byte [r9 - 1]
test edx, edx
jne 0x140038910
test edi, edi
lea rdx, [rsp + 0x50]
mov rcx, r15
cmovne r14d, edi
mov r8d, r14d
call fcn.140045a00
movzx eax, bl
jmp 0x14003894b
xor al, al
mov r14, qword [rsp + 0x510]
mov rdi, qword [rsp + 0x508]
add rsp, 0x4e0
pop r15
pop rbx
pop rbp
ret
call fcn.140052424
int3