Function at 0x140018d00
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.140052904
nop
lea rdi, [rsi + 0x26f1]
xor edx, edx
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea r8, [0x140280ee8]
mov rdx, rdi
lea rcx, [rbp + 0x60]
call fcn.14000a670
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 0x140018d79
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [0x140281728]
mov rdx, rdi
lea rcx, [rbp + 0x68]
call fcn.14000a670
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 0x140018db2
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.14000a670
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 0x140018deb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rsi + 0x26f9]
lea r8, [0x140281728]
lea rcx, [rbp + 0x78]
call fcn.14000a670
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 0x140018e28
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.140037994
mov rsi, qword [rax + 0x18]
lea r8, [0x1402833dc]
mov edx, 0x83
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r14, rax
test rax, rax
jne 0x140018e77
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.140009e20
xor bl, bl
jmp 0x140019294
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, [0x140280ee8]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.14000a670
nop
mov r8d, 0x1001
mov rdx, qword [rax]
lea rcx, [rbp - 0x40]
call fcn.140037be0
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140018eda
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.1400388fc
lea r8, [0x140280ee8]
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.14000a670
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 0x140018f27
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
cmp esi, 0xffffffff
jne 0x140018f47
mov r8d, 0x166d
lea rdx, str.CsupdDlg::vExtractResourceFilesDLL
lea rcx, str._r_n_s:_d:_GetFileAttributes_fail.
call fcn.140009e20
jmp 0x140018f8d
test sil, 2
jne 0x140018f8d
lea r8, [0x140280ee8]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.14000a670
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 0x140018f8d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp - 0x40]
call fcn.14003810c
call fcn.140037994
mov rsi, qword [rax + 0x18]
lea r8, [0x1402833dc]
mov edx, 0x8f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r14, rax
test rax, rax
jne 0x140018fe5
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.140009e20
xor bl, bl
jmp 0x14001928a
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, [0x140281728]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.14000a670
nop
mov r8d, 0x1001
mov rdx, qword [rax]
lea rcx, [rbp - 0x68]
call fcn.140037be0
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140019048
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.1400388fc
lea r8, [0x140281728]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14000a670
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 0x140019095
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
cmp esi, 0xffffffff
jne 0x1400190b5
mov r8d, 0x1683
lea rdx, str.CsupdDlg::vExtractResourceFilesDLL
lea rcx, str._r_n_s:_d:_GetFileAttributes_fail.
call fcn.140009e20
jmp 0x1400190fb
test sil, 2
jne 0x1400190fb
lea r8, [0x140281728]
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.14000a670
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 0x1400190fb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp - 0x68]
call fcn.14003810c
call fcn.140037994
mov rsi, qword [rax + 0x18]
lea r8, [0x1402833dc]
mov edx, 0x90
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r14, rax
test rax, rax
jne 0x140019153
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.140009e20
xor bl, bl
jmp 0x140019280
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.14000a670
nop
mov r8d, 0x1001
mov rdx, qword [rax]
lea rcx, [rsp + 0x70]
call fcn.140037be0
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400191b7
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.1400388fc
lea r8, str.RemoteUSB4.ps1
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.14000a670
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 0x140019205
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
cmp esi, 0xffffffff
jne 0x140019225
mov r8d, 0x1698
lea rdx, str.CsupdDlg::vExtractResourceFilesDLL
lea rcx, str._r_n_s:_d:_GetFileAttributes_fail.
call fcn.140009e20
jmp 0x140019269
test sil, 2
jne 0x140019269
lea r8, str.RemoteUSB4.ps1
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.14000a670
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 0x140019269
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rsp + 0x70]
call fcn.14003810c
mov bl, 1
lea rcx, [rsp + 0x70]
call fcn.140037da4
nop
lea rcx, [rbp - 0x68]
call fcn.140037da4
nop
lea rcx, [rbp - 0x40]
call fcn.140037da4
nop
lea rcx, [rbp - 0x18]
call fcn.140052930
movzx eax, bl
add rsp, 0x128
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret