Function at 0x10006e8a8
Capabilities:
Create directory
Delete file
Enumerate pe sections
Get common file path
Move file

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x9a0
mov qword [rsp + 0x158], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x100190170]
xor rax, rsp
mov qword [rsp + 0x990], rax
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
xor r14d, r14d
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov qword [r11 - 0x898], r14
mov qword [r11 - 0x890], r14
mov qword [r11 - 0x888], r14
lea rax, [r11 - 0x848]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x801c
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, r14d
jne 0x10006ea40
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x48]
call fcn.10016e658
lea edx, [r14 + 0x74]
lea rcx, [rsp + 0x80]
call fcn.10016e534
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.10016e7cc
nop
mov rcx, qword [rsp + 0x90]
call sub.msvcrt.dll_free
cmp qword [rsp + 0x48], r14
jne 0x10006e994
xor ecx, ecx
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x58]
call sub.msvcrt.dll_free
jmp 0x10006f49d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, 0xb7
cmp eax, r14d
jne 0x10006e9cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x10006e9cc
xor ecx, ecx
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x58]
call sub.msvcrt.dll_free
jmp 0x10006f49d
mov edx, 0x75
lea rcx, [rsp + 0x80]
call fcn.10016e534
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.10016e7cc
nop
mov rcx, qword [rsp + 0x90]
call sub.msvcrt.dll_free
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, r14d
jne 0x10006ea2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x10006ea2d
xor ecx, ecx
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x58]
call sub.msvcrt.dll_free
jmp 0x10006f49d
lea rdx, [0x100026a6c]
lea rcx, [rsp + 0x48]
call fcn.10016e788
jmp 0x10006ea51
lea rdx, [0x100002660]
lea rcx, [rsp + 0x48]
call fcn.10016e658
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x140]
call fcn.10016e6f0
mov edx, 0xc2
lea rcx, [rsp + 0x80]
call fcn.10016e534
nop
mov rdx, rax
lea rcx, [rsp + 0x140]
call fcn.10016e7cc
nop
mov rcx, qword [rsp + 0x90]
call sub.msvcrt.dll_free
call fcn.100056cbc
cmp al, r14b
je 0x10006eace
mov edx, 0xfa
lea rcx, [rsp + 0x80]
call fcn.10016e534
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.10016e7cc
nop
mov rcx, qword [rsp + 0x90]
call sub.msvcrt.dll_free
jmp 0x10006eafc
mov edx, 0xc1
lea rcx, [rsp + 0x80]
call fcn.10016e534
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.10016e7cc
nop
mov rcx, qword [rsp + 0x90]
call sub.msvcrt.dll_free
lea rcx, [rsp + 0xa0]
call fcn.100177bf8
nop
lea rdx, [0x10002a538]
lea rcx, [rsp + 0xa0]
call fcn.100178df8
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x90], r14
lea rdx, [0x10002a548]
lea rcx, [rsp + 0x30]
call fcn.10016e414
nop
mov r9b, byte [rdi]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e718
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
lea rdx, [0x10002a560]
lea rcx, [rsp + 0x30]
call fcn.10016e414
nop
mov r9b, byte [rdi + 3]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e718
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
lea rdx, [0x10002a580]
lea rcx, [rsp + 0x30]
call fcn.10016e414
nop
mov r9b, byte [rdi + 4]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e718
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
lea rdx, [0x10002a598]
lea rcx, [rsp + 0x30]
call fcn.10016e414
nop
mov r9b, byte [rdi + 5]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e718
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
lea rdx, [0x10002a5b0]
lea rcx, [rsp + 0x30]
call fcn.10016e414
nop
mov r9b, byte [rdi + 6]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e718
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
lea rdx, [0x10002a5e0]
lea rcx, [rsp + 0x30]
call fcn.10016e414
nop
mov r9b, byte [rdi + 7]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e718
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
lea rdx, [0x10002a600]
lea rcx, [rsp + 0x30]
call fcn.10016e414
nop
mov r9b, byte [rdi + 8]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e718
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
lea rdx, [0x10002a620]
lea rcx, [rsp + 0x30]
call fcn.10016e414
nop
mov r9b, byte [rdi + 9]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e718
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
lea rdx, [0x10002a640]
lea rcx, [rsp + 0x30]
call fcn.10016e414
nop
mov r9b, byte [rdi + 0xa]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e718
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
lea rdx, [0x10002a660]
lea rcx, [rsp + 0x30]
call fcn.10016e414
nop
mov r9b, byte [rdi + 0xb]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e718
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
lea rdx, [0x10002a680]
lea rcx, [rsp + 0x30]
call fcn.10016e414
nop
mov r9d, dword [rdi + 0xc]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e7e8
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
lea rdx, [0x10002a698]
lea rcx, [rsp + 0x30]
call fcn.10016e414
nop
mov r9d, dword [rdi + 0x10]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e7e8
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
lea rdx, [0x10002a6b0]
lea rcx, [rsp + 0x30]
call fcn.10016e414
nop
mov r9d, dword [rdi + 0x14]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e7e8
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
lea rdx, [0x10002a6d0]
lea rcx, [rsp + 0x30]
call fcn.10016e414
nop
mov r9b, byte [rdi + 0x18]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e718
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
lea rdx, [0x10002a6f0]
lea rcx, [rsp + 0x30]
call fcn.10016e414
nop
mov r9d, dword [rdi + 0x1c]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e7e8
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
lea rdx, [0x10002a708]
lea rcx, [rsp + 0x30]
call fcn.10016e414
nop
mov r9d, dword [rdi + 0x20]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e7e8
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
lea rdx, [0x10002a720]
lea rcx, [rsp + 0x30]
call fcn.10016e414
nop
mov r9d, dword [rdi + 0x28]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e7e8
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
lea rdx, [0x10002a730]
lea rcx, [rsp + 0x30]
call fcn.10016e414
nop
mov r9d, dword [rdi + 0x2c]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e7e8
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
lea rdx, [0x10002a740]
lea rcx, [rsp + 0x30]
call fcn.10016e414
nop
mov r9d, dword [rdi + 0x30]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e7e8
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
lea rdx, [0x10002a758]
lea rcx, [rsp + 0x30]
call fcn.10016e414
nop
mov r9d, dword [rdi + 0x34]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e7e8
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
call fcn.10005691c
mov rcx, rax
lea rdx, [rsp + 0x160]
call qword [sym.imp.USER32.dll_GetWindowPlacement]
mov r15d, 1
cmp byte [rdi + 0x38], r14b
jne 0x10006efb1
call fcn.10005691c
mov rcx, rax
call qword [sym.imp.USER32.dll_IsIconic]
cmp eax, r14d
je 0x10006efac
test byte [rsp + 0x164], 2
jne 0x10006efb1
mov sil, r14b
jmp 0x10006efb4
mov sil, r15b
lea rdx, [0x10002a778]
lea rcx, [rsp + 0x30]
call fcn.10016e414
nop
mov r9b, sil
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e718
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
lea rdx, [0x10002a798]
lea rcx, [rsp + 0x30]
call fcn.10016e414
nop
mov r9b, byte [rdi + 0x39]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e718
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
lea rdx, [0x10002a7b8]
lea rcx, [rsp + 0x30]
call fcn.10016e414
nop
mov r9b, byte [rdi + 0x3a]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e718
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
lea rdx, [0x10002a7e0]
lea rcx, [rsp + 0x30]
call fcn.10016e414
nop
mov r9b, byte [rdi + 0x3b]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e718
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
mov esi, r14d
lea rdi, [rbp + 0x50]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
mov r8d, esi
lea rdx, [0x1000291a0]
lea rcx, [rsp + 0x30]
call fcn.10016e8bc
lea r8, [rsp + 0x30]
lea rdx, [0x10002a808]
lea rcx, [rsp + 0x68]
call fcn.10006ff10
nop
mov r9d, dword [rdi - 0x50]
mov r8, rax
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e7e8
nop
mov rcx, qword [rsp + 0x78]
call sub.msvcrt.dll_free
lea r8, [rsp + 0x30]
lea rdx, [0x10002a820]
lea rcx, [rsp + 0x68]
call fcn.10006ff10
nop
mov r9d, dword [rdi - 0x28]
mov r8, rax
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e7e8
nop
mov rcx, qword [rsp + 0x78]
call sub.msvcrt.dll_free
lea r8, [rsp + 0x30]
lea rdx, [0x10002a838]
lea rcx, [rsp + 0x68]
call fcn.10006ff10
nop
mov r9d, dword [rdi]
mov r8, rax
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e7e8
nop
mov rcx, qword [rsp + 0x78]
call sub.msvcrt.dll_free
lea r8, [rsp + 0x30]
lea rdx, [0x10002a850]
lea rcx, [rsp + 0x68]
call fcn.10006ff10
nop
mov r9d, dword [rdi + 0x28]
mov r8, rax
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e7e8
nop
mov rcx, qword [rsp + 0x78]
call sub.msvcrt.dll_free
lea r8, [rsp + 0x30]
lea rdx, [0x10002a878]
lea rcx, [rsp + 0x68]
call fcn.10006ff10
nop
mov r9d, dword [rdi + 0x78]
mov r8, rax
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e7e8
nop
mov rcx, qword [rsp + 0x78]
call sub.msvcrt.dll_free
lea r8, [rsp + 0x30]
lea rdx, [0x10002a8a0]
lea rcx, [rsp + 0x68]
call fcn.10006ff10
nop
mov r9d, dword [rdi + 0x50]
mov r8, rax
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e7e8
nop
mov rcx, qword [rsp + 0x78]
call sub.msvcrt.dll_free
lea r8, [rsp + 0x30]
lea rdx, [0x10002a8c8]
lea rcx, [rsp + 0x68]
call fcn.10006ff10
nop
mov r9d, dword [rdi + 0xa0]
mov r8, rax
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e7e8
nop
mov rcx, qword [rsp + 0x78]
call sub.msvcrt.dll_free
lea r8, [rsp + 0x30]
lea rdx, [0x10002a8f0]
lea rcx, [rsp + 0x68]
call fcn.10006ff10
nop
mov r9d, dword [rdi + 0xc8]
mov r8, rax
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e7e8
nop
mov rcx, qword [rsp + 0x78]
call sub.msvcrt.dll_free
lea r8, [rsp + 0x30]
lea rdx, [0x10002a918]
lea rcx, [rsp + 0x68]
call fcn.10006ff10
nop
mov r9d, dword [rdi + 0xf0]
mov r8, rax
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.10006e7e8
nop
mov rcx, qword [rsp + 0x78]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
add esi, r15d
add rdi, 4
cmp esi, 0xa
jl 0x10006f092
lea r8, [0x10002a93c]
mov rdi, qword [rsp + 0x150]
mov rdx, rdi
lea rcx, [rsp + 0x60]
call qword [sym.imp.msvcrt.dll__wfopen_s]
cmp qword [rsp + 0x60], r14
jne 0x10006f32b
xor ecx, ecx
call sub.msvcrt.dll_free
nop
lea rcx, [rsp + 0xa0]
call fcn.100177c84
nop
mov rcx, rdi
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x58]
call sub.msvcrt.dll_free
jmp 0x10006f49d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x34], r14d
mov dword [rsp + 0x38], 0x10
mov qword [rsp + 0x40], r14
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xa0]
call fcn.100178fd8
mov ecx, dword [rsp + 0x30]
inc ecx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.100179d98
mov rsi, rax
cmp rax, r14
jne 0x10006f39b
mov rcx, qword [rsp + 0x40]
cmp rcx, r14
je 0x10006f395
call sub.msvcrt.dll_free
mov ebp, dword [rsp + 0x60]
jmp 0x10006f3c4
mov ebp, dword [rsp + 0x60]
jmp 0x10006f3c4
mov eax, dword [rsp + 0x30]
lea ebp, [rax + 1]
mov r9, rax
mov edx, ebp
mov r8, qword [rsp + 0x40]
mov rcx, rsi
call sub.msvcrt.dll_wcsncpy_s
nop
mov rcx, qword [rsp + 0x40]
cmp rcx, r14
je 0x10006f3c4
call sub.msvcrt.dll_free
mov bl, r14b
cmp rsi, r14
je 0x10006f40a
mov r12d, r14d
mov r13, rsi
cmp r12d, ebp
jge 0x10006f40d
movzx ecx, word [r13]
cmp cx, r14w
je 0x10006f40d
mov rdx, qword [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_fputwc]
movzx ebx, bl
mov ecx, 0xffff
cmp cx, ax
cmove ebx, r15d
add r12d, r15d
add r13, 2
cmp bl, r14b
je 0x10006f3d2
jmp 0x10006f40d
mov bl, r15b
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_fclose]
mov rcx, rsi
call sub.msvcrt.dll_free
cmp bl, r14b
je 0x10006f45a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
xor ecx, ecx
call sub.msvcrt.dll_free
nop
lea rcx, [rsp + 0xa0]
call fcn.100177c84
nop
mov rcx, rdi
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x58]
call sub.msvcrt.dll_free
jmp 0x10006f49d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
nop
xor ecx, ecx
call sub.msvcrt.dll_free
nop
lea rcx, [rsp + 0xa0]
call fcn.100177c84
nop
mov rcx, rdi
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x58]
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x990]
xor rcx, rsp
call fcn.10017a260
mov rbx, qword [rsp + 0x9e0]
add rsp, 0x9a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret