Function at 0x140018d7c
Capabilities:
Check if file exists
Delete directory
Delete file
Delete registry key
Get common file path
Get system information on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x8e8]
sub rsp, 0x9b0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14004f0c0]
xor rax, rsp
mov qword [rbp + 0x8a0], rax
mov r12, rdx
mov r14, rcx
mov r15d, 1
xor r13d, r13d
mov qword [rsp + 0x38], r13
mov ebx, 0x208
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x480]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x690]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movdqa xmm0, xmmword [0x140040f00]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r13w
mov ebx, r13d
mov qword [rsp + 0x40], rbx
mov edi, r13d
mov qword [rsp + 0x48], r13
mov esi, r13d
mov qword [rsp + 0x50], r13
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], r13w
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x270]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movdqa xmm0, xmmword [0x140040f00]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], r13w
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rsp + 0x30], r13
lea rdx, [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
nop dword [rax + rax]
mov ecx, eax
or ecx, 0x80010000
neg eax
sbb r14d, r14d
and r14d, ecx
jl 0x1400193b3
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14003ed60]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
js 0x1400193b3
mov edx, 0x104
lea rcx, [rbp + 0x270]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetWindowsDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140018ef1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx r14d, ax
or r14d, 0x80070000
test eax, eax
cmovle r14d, eax
jmp 0x1400193b3
lea rdx, [rbp + 0x270]
lea rcx, [rbp - 0x48]
call fcn.14000938c
mov r14d, 1
mov r8d, r14d
lea rdx, [0x14003e160]
lea rcx, [rbp - 0x48]
call fcn.14000719c
lea r8d, [r14 + 3]
lea rdx, str.TEMP
lea rcx, [rbp - 0x48]
call fcn.14000719c
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFileExistsW]
nop dword [rax + rax]
test eax, eax
je 0x140018ecf
lea rcx, [rbp - 8]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateGuid]
nop dword [rax + rax]
test eax, eax
jne 0x140018ecf
lea r8d, [r14 + 0x27]
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 8]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_StringFromGUID2]
nop dword [rax + rax]
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x68]
call fcn.14000938c
lea rax, [rbp - 0x68]
mov r8, qword [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rax, r8
mov rcx, qword [rbp - 0x58]
lea r11, [rax + rcx*2]
lea rax, [rbp - 0x68]
cmovae rax, r8
lea r9, [rax + rcx*2]
lea rax, [rbp - 0x68]
cmovae rax, r8
jmp 0x140018fc2
cmp word [rax], 0x7b
je 0x140018fc7
add rax, 2
cmp rax, r9
jne 0x140018fb8
cmp rax, r9
je 0x14001900a
lea rdx, [rax + 2]
mov r8, r13
mov rcx, r9
sub rcx, rdx
add rcx, r14
shr rcx, 1
cmp rdx, r9
cmova rcx, r13
test rcx, rcx
je 0x14001900a
movzx r10d, word [rdx]
cmp r10w, 0x7b
je 0x140018ffe
mov word [rax], r10w
add rax, 2
add rdx, 2
add r8, r14
cmp r8, rcx
jne 0x140018feb
mov r9, r11
mov r8, rax
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x68]
call fcn.140019548
lea rax, [rbp - 0x68]
mov r8, qword [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rax, r8
mov rcx, qword [rbp - 0x58]
lea r11, [rax + rcx*2]
lea rax, [rbp - 0x68]
cmovae rax, r8
lea r9, [rax + rcx*2]
lea rax, [rbp - 0x68]
cmovae rax, r8
jmp 0x140019057
cmp word [rax], 0x7d
je 0x14001905c
add rax, 2
cmp rax, r9
jne 0x14001904d
cmp rax, r9
je 0x14001909f
lea rdx, [rax + 2]
mov r8, r13
mov rcx, r9
sub rcx, rdx
add rcx, r14
shr rcx, 1
cmp rdx, r9
cmova rcx, r13
test rcx, rcx
je 0x14001909f
movzx r10d, word [rdx]
cmp r10w, 0x7d
je 0x140019093
mov word [rax], r10w
add rax, 2
add rdx, 2
add r8, r14
cmp r8, rcx
jne 0x140019080
mov r9, r11
mov r8, rax
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x68]
call fcn.140019548
mov r8, r14
lea rdx, [0x14003e160]
lea rcx, [rbp - 0x48]
call fcn.14000719c
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rdx, qword [rbp - 0x68]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r13w
jne 0x1400190d8
lea rcx, [rbp - 0x48]
call fcn.14000719c
lea r8, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae r8, qword [rbp - 0x48]
lea r9, str.RUXIM.cab
mov edx, 0x104
lea rcx, [rbp + 0x480]
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchCombine]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
js 0x1400193b3
lea rcx, [rbp + 0x480]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14001914e
mov r14d, 0x8007000e
jmp 0x1400193b3
lea r9, str.RUXIM
mov r8, qword [rsp + 0x38]
mov edx, 0x104
lea rcx, [rbp + 0x690]
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchCombine]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
js 0x1400193b3
lea rcx, [rbp + 0x690]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov rdi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140019143
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x60]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionWindowsUpdatePLUGRUXIMSpec_
lea rcx, [rbp + 0x60]
call fcn.140011340
mov r14d, eax
test eax, eax
js 0x1400193b3
mov r8, qword [rsp + 0x30]
lea rcx, [rbp + 0x60]
call fcn.140011340
mov r14d, eax
test eax, eax
js 0x1400193b3
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rax, qword [rbp - 0x28]
mov qword [rbp - 0x18], r13
mov word [rax], r13w
lea rcx, [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemInfo]
nop dword [rax + rax]
mov rcx, 0xffffffff80000002
movzx eax, word [rsp + 0x68]
test ax, ax
jne 0x140019223
lea r8, str.RUXIMX86CABURL
jmp 0x140019230
cmp ax, 9
jne 0x140019242
lea r8, str.RUXIMX64CABURL
lea r9, [rbp - 0x28]
lea rdx, [rbp + 0x60]
call fcn.1400106e4
mov r14d, eax
jmp 0x140019248
mov r14d, 0x81330006
test r14d, r14d
js 0x1400193b3
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140019143
mov r15d, r13d
mov rdx, rax
mov rcx, rbx
call fcn.140019b84
mov r14d, eax
test eax, eax
jns 0x1400192c2
cmp eax, 0x800700b7
jne 0x1400192b0
mov r14d, 0x1330002
mov r15d, 3
lea rdx, str._RUXIMCABHelper__DownloadAndExtractCab_Method:_RUXIM_cab_of_identical_hash_already_downloaded
jmp 0x1400193ab
mov r15d, 2
lea rdx, str._RUXIMCABHelper__DownloadAndExtractCab_Method:_Download_of_latest_RUXIM_cab_failed
jmp 0x1400193ab
lea rdx, str._RUXIMCABHelper__DownloadAndExtractCab_Method:_Succesfully_downloaded_latest_RUXIM_cab
mov ecx, eax
call fcn.140009aec
mov rcx, rbx
call fcn.140037cf4
mov r14d, eax
mov ecx, eax
test eax, eax
jns 0x1400192f3
mov r15d, 4
lea rdx, str._RUXIMCABHelper__DownloadAndExtractCab_Method:_RUXIM_cab_not_signed
jmp 0x1400193ae
lea rdx, str._RUXIMCABHelper__DownloadAndExtractCab_Method:_Succesfully_validated_RUXIM_cab_signature
call fcn.140009aec
mov r9, rdi
lea r8, [0x140019a50]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.setupapi.dll_SetupIterateCabinetW]
nop dword [rax + rax]
test eax, eax
jne 0x1400193a4
lea r15d, [rax + 5]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx r14d, ax
or r14d, 0x80070000
test eax, eax
cmovle r14d, eax
lea rdx, str._RUXIMCABHelper__DownloadAndExtractCab_Method:_Unpacking_of_RUXIM_cab_failed
mov ecx, r14d
call fcn.140009aec
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionWindowsUpdatePLUGRUXIMETag
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
nop dword [rax + rax]
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x140019398
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14001938f
lea rdx, str._RUXIMCABHelper__DeleteRUXIMCabETag_Method:_Unable_to_delete_the_RUXIM_cabs_e_tag_reg_key
jmp 0x1400193ae
lea rdx, str._RUXIMCABHelper__DeleteRUXIMCabETag_Method:_Succesfully_deleted_cabs_e_tag_reg_key
jmp 0x1400193ae
mov ecx, r13d
lea rdx, str._RUXIMCABHelper__DeleteRUXIMCabETag_Method:_No_e_tag_reg_key_found
jmp 0x1400193ae
lea rdx, str._RUXIMCABHelper__DownloadAndExtractCab_Method:_Succesfully_unpacked_RUXIM_cab
mov ecx, r14d
call fcn.140009aec
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFileExistsW]
nop dword [rax + rax]
test eax, eax
je 0x1400193d5
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFileExistsW]
nop dword [rax + rax]
test eax, eax
je 0x14001940d
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
nop dword [rax + rax]
mov rax, r12
cmp qword [r12 + 0x18], 8
jb 0x14001941c
mov rax, qword [r12]
mov qword [r12 + 0x10], r13
mov word [rax], r13w
test r15d, r15d
je 0x14001947e
sub r15d, 1
je 0x140019475
sub r15d, 1
je 0x14001946c
sub r15d, 1
je 0x140019463
sub r15d, 1
je 0x14001945a
cmp r15d, 1
je 0x140019451
lea rdx, str.Invalid
jmp 0x140019485
lea rdx, str.UnpackCabFailed
jmp 0x140019485
lea rdx, str.CheckCabSignatureFailed
jmp 0x140019485
lea rdx, str.CabAlreadyExists
jmp 0x140019485
lea rdx, str.DownloadCabFailed
jmp 0x140019485
lea rdx, str.DownloadAndExtractCabInitialize
jmp 0x140019485
lea rdx, str.DownloadAndExtractCabSuccess
mov rcx, r12
call fcn.14000938c
nop
lea rcx, [rbp - 0x68]
call fcn.14000918c
nop
lea rcx, [rbp - 0x48]
call fcn.14000918c
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400194b2
call fcn.140007364
nop
test rsi, rsi
je 0x1400194c7
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
test rdi, rdi
je 0x1400194dc
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
test rbx, rbx
je 0x1400194f1
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rbp - 0x28]
call fcn.14000918c
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140019511
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov eax, r14d
mov rcx, qword [rbp + 0x8a0]
xor rcx, rsp
call fcn.140038350
mov rbx, qword [rsp + 0xa00]
add rsp, 0x9b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret