Function at 0x1400187f0
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.14004a3e0
nop
lea rdi, [rsi + 0x26f1]
xor edx, edx
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea r8, [0x140264718]
mov rdx, rdi
lea rcx, [rbp + 0x60]
call fcn.14000a460
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 0x140018869
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [0x140264f18]
mov rdx, rdi
lea rcx, [rbp + 0x68]
call fcn.14000a460
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 0x1400188a2
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.14000a460
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 0x1400188db
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rsi + 0x26f9]
lea r8, [0x140264f18]
lea rcx, [rbp + 0x78]
call fcn.14000a460
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 0x140018918
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.14002f52c
mov rsi, qword [rax + 0x18]
lea r8, [0x140266bcc]
mov edx, 0x83
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r14, rax
test rax, rax
jne 0x140018967
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, 0x164d
lea rdx, str.CsupdDlg::vExtractResourceFilesDLL
lea rcx, str._r_n_s:_d:_FindResource_fail:__d
call fcn.140009c10
xor bl, bl
jmp 0x140018d84
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, [0x140264718]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.14000a460
nop
mov r8d, 0x1001
mov rdx, qword [rax]
lea rcx, [rbp - 0x40]
call fcn.14002f778
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400189ca
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.140030494
lea r8, [0x140264718]
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.14000a460
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 0x140018a17
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
cmp esi, 0xffffffff
jne 0x140018a37
mov r8d, 0x1657
lea rdx, str.CsupdDlg::vExtractResourceFilesDLL
lea rcx, str._r_n_s:_d:_GetFileAttributes_fail.
call fcn.140009c10
jmp 0x140018a7d
test sil, 2
jne 0x140018a7d
lea r8, [0x140264718]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.14000a460
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 0x140018a7d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp - 0x40]
call fcn.14002fca4
call fcn.14002f52c
mov rsi, qword [rax + 0x18]
lea r8, [0x140266bcc]
mov edx, 0x8f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r14, rax
test rax, rax
jne 0x140018ad5
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.140009c10
xor bl, bl
jmp 0x140018d7a
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, [0x140264f18]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.14000a460
nop
mov r8d, 0x1001
mov rdx, qword [rax]
lea rcx, [rbp - 0x68]
call fcn.14002f778
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140018b38
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.140030494
lea r8, [0x140264f18]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14000a460
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 0x140018b85
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
cmp esi, 0xffffffff
jne 0x140018ba5
mov r8d, 0x166d
lea rdx, str.CsupdDlg::vExtractResourceFilesDLL
lea rcx, str._r_n_s:_d:_GetFileAttributes_fail.
call fcn.140009c10
jmp 0x140018beb
test sil, 2
jne 0x140018beb
lea r8, [0x140264f18]
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.14000a460
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 0x140018beb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp - 0x68]
call fcn.14002fca4
call fcn.14002f52c
mov rsi, qword [rax + 0x18]
lea r8, [0x140266bcc]
mov edx, 0x90
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r14, rax
test rax, rax
jne 0x140018c43
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, 0x1678
lea rdx, str.CsupdDlg::vExtractResourceFilesDLL
lea rcx, str._r_n_s:_d:_FindResource_fail:__d
call fcn.140009c10
xor bl, bl
jmp 0x140018d70
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.14000a460
nop
mov r8d, 0x1001
mov rdx, qword [rax]
lea rcx, [rsp + 0x70]
call fcn.14002f778
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140018ca7
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.140030494
lea r8, str.RemoteUSB4.ps1
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.14000a460
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 0x140018cf5
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
cmp esi, 0xffffffff
jne 0x140018d15
mov r8d, 0x1682
lea rdx, str.CsupdDlg::vExtractResourceFilesDLL
lea rcx, str._r_n_s:_d:_GetFileAttributes_fail.
call fcn.140009c10
jmp 0x140018d59
test sil, 2
jne 0x140018d59
lea r8, str.RemoteUSB4.ps1
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.14000a460
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 0x140018d59
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rsp + 0x70]
call fcn.14002fca4
mov bl, 1
lea rcx, [rsp + 0x70]
call fcn.14002f93c
nop
lea rcx, [rbp - 0x68]
call fcn.14002f93c
nop
lea rcx, [rbp - 0x40]
call fcn.14002f93c
nop
lea rcx, [rbp - 0x18]
call fcn.14004a40c
movzx eax, bl
add rsp, 0x128
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret