Function at 0x140017dd0
Capabilities:
Create directory
Delete file
Extract resource via kernel32 functions
Get file attributes
Set file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x28]
sub rsp, 0x128
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x18]
call fcn.140051410
nop
lea rdi, [rsi + 0x26f1]
xor edx, edx
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea r8, [0x14027fed8]
mov rdx, rdi
lea rcx, [rbp + 0x60]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rbp + 0x60]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140017e49
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [0x140280840]
mov rdx, rdi
lea rcx, [rbp + 0x68]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rbp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140017e82
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, str.RemoteUSB4.ps1
mov rdx, rdi
lea rcx, [rbp + 0x70]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rbp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140017ebb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rsi + 0x26f9]
lea r8, [0x140280840]
lea rcx, [rbp + 0x78]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rbp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140017ef8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.140034a90
mov rsi, qword [rax + 0x18]
lea r8, [0x140281fec]
mov edx, 0x83
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r14, rax
test rax, rax
jne 0x140017f47
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, 0x1663
lea rdx, str.CsupdDlg::vExtractResourceFilesDLL
lea rcx, str._r_n_s:_d:_FindResource_fail:__d
call fcn.1400095e0
xor bl, bl
jmp 0x140018364
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea r8, [0x14027fed8]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140009e30
nop
mov r8d, 0x1001
mov rdx, qword [rax]
lea rcx, [rbp - 0x40]
call fcn.140036730
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140017faa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, esi
mov rdx, r15
lea rcx, [rbp - 0x40]
call fcn.1400374a8
lea r8, [0x14027fed8]
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140017ff7
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
cmp esi, 0xffffffff
jne 0x140018017
mov r8d, 0x166d
lea rdx, str.CsupdDlg::vExtractResourceFilesDLL
lea rcx, str._r_n_s:_d:_GetFileAttributes_fail.
call fcn.1400095e0
jmp 0x14001805d
test sil, 2
jne 0x14001805d
lea r8, [0x14027fed8]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140009e30
or esi, 2
mov edx, esi
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001805d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp - 0x40]
call fcn.140036c5c
call fcn.140034a90
mov rsi, qword [rax + 0x18]
lea r8, [0x140281fec]
mov edx, 0x8f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r14, rax
test rax, rax
jne 0x1400180b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, 0x1679
lea rdx, str.CsupdDlg::vExtractResourceFilesDLL
lea rcx, str._r_n_s:_d:_FindResource_fail:__d
call fcn.1400095e0
xor bl, bl
jmp 0x14001835a
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea r8, [0x140280840]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.140009e30
nop
mov r8d, 0x1001
mov rdx, qword [rax]
lea rcx, [rbp - 0x68]
call fcn.140036730
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140018118
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, esi
mov rdx, r15
lea rcx, [rbp - 0x68]
call fcn.1400374a8
lea r8, [0x140280840]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140018165
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
cmp esi, 0xffffffff
jne 0x140018185
mov r8d, 0x1683
lea rdx, str.CsupdDlg::vExtractResourceFilesDLL
lea rcx, str._r_n_s:_d:_GetFileAttributes_fail.
call fcn.1400095e0
jmp 0x1400181cb
test sil, 2
jne 0x1400181cb
lea r8, [0x140280840]
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140009e30
or esi, 2
mov edx, esi
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400181cb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp - 0x68]
call fcn.140036c5c
call fcn.140034a90
mov rsi, qword [rax + 0x18]
lea r8, [0x140281fec]
mov edx, 0x90
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r14, rax
test rax, rax
jne 0x140018223
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, 0x168e
lea rdx, str.CsupdDlg::vExtractResourceFilesDLL
lea rcx, str._r_n_s:_d:_FindResource_fail:__d
call fcn.1400095e0
xor bl, bl
jmp 0x140018350
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea r8, str.RemoteUSB4.ps1
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140009e30
nop
mov r8d, 0x1001
mov rdx, qword [rax]
lea rcx, [rsp + 0x70]
call fcn.140036730
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140018287
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, esi
mov rdx, r15
lea rcx, [rsp + 0x70]
call fcn.1400374a8
lea r8, str.RemoteUSB4.ps1
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1400182d5
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
cmp esi, 0xffffffff
jne 0x1400182f5
mov r8d, 0x1698
lea rdx, str.CsupdDlg::vExtractResourceFilesDLL
lea rcx, str._r_n_s:_d:_GetFileAttributes_fail.
call fcn.1400095e0
jmp 0x140018339
test sil, 2
jne 0x140018339
lea r8, str.RemoteUSB4.ps1
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140009e30
or esi, 2
mov edx, esi
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140018339
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rsp + 0x70]
call fcn.140036c5c
mov bl, 1
lea rcx, [rsp + 0x70]
call fcn.1400368f4
nop
lea rcx, [rbp - 0x68]
call fcn.1400368f4
nop
lea rcx, [rbp - 0x40]
call fcn.1400368f4
nop
lea rcx, [rbp - 0x18]
call fcn.14005143c
movzx eax, bl
add rsp, 0x128
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret