Function at 0x14002bb94
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 [0x14006c100]
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 [0x14005a0c0]
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 [0x14005a0c0]
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 0x14002c1cb
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140059ae8]
call qword [sym.imp.api_ms_win_shell_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
js 0x14002c1cb
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 0x14002bd09
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 0x14002c1cb
lea rdx, [rbp + 0x270]
lea rcx, [rbp - 0x48]
call fcn.140007e74
mov r14d, 1
mov r8d, r14d
lea rdx, [0x140052ed0]
lea rcx, [rbp - 0x48]
call fcn.1400080d4
lea r8d, [r14 + 3]
lea rdx, str.TEMP
lea rcx, [rbp - 0x48]
call fcn.1400080d4
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 0x14002bce7
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 0x14002bce7
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.140007e74
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 0x14002bdda
cmp word [rax], 0x7b
je 0x14002bddf
add rax, 2
cmp rax, r9
jne 0x14002bdd0
cmp rax, r9
je 0x14002be22
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 0x14002be22
movzx r10d, word [rdx]
cmp r10w, 0x7b
je 0x14002be16
mov word [rax], r10w
add rax, 2
add rdx, 2
add r8, r14
cmp r8, rcx
jne 0x14002be03
mov r9, r11
mov r8, rax
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x68]
call fcn.14002c360
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 0x14002be6f
cmp word [rax], 0x7d
je 0x14002be74
add rax, 2
cmp rax, r9
jne 0x14002be65
cmp rax, r9
je 0x14002beb7
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 0x14002beb7
movzx r10d, word [rdx]
cmp r10w, 0x7d
je 0x14002beab
mov word [rax], r10w
add rax, 2
add rdx, 2
add r8, r14
cmp r8, rcx
jne 0x14002be98
mov r9, r11
mov r8, rax
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x68]
call fcn.14002c360
mov r8, r14
lea rdx, [0x140052ed0]
lea rcx, [rbp - 0x48]
call fcn.1400080d4
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 0x14002bef0
lea rcx, [rbp - 0x48]
call fcn.1400080d4
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 0x14002c1cb
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 0x14002bf66
mov r14d, 0x8007000e
jmp 0x14002c1cb
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 0x14002c1cb
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 0x14002bf5b
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.140013ee8
mov r14d, eax
test eax, eax
js 0x14002c1cb
mov r8, qword [rsp + 0x30]
lea rcx, [rbp + 0x60]
call fcn.140013ee8
mov r14d, eax
test eax, eax
js 0x14002c1cb
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 0x14002c03b
lea r8, str.RUXIMX86CABURL
jmp 0x14002c048
cmp ax, 9
jne 0x14002c05a
lea r8, str.RUXIMX64CABURL
lea r9, [rbp - 0x28]
lea rdx, [rbp + 0x60]
call fcn.140011a8c
mov r14d, eax
jmp 0x14002c060
mov r14d, 0x81330006
test r14d, r14d
js 0x14002c1cb
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 0x14002bf5b
mov r15d, r13d
mov rdx, rax
mov rcx, rbx
call fcn.14002c9a4
mov r14d, eax
test eax, eax
jns 0x14002c0da
cmp eax, 0x800700b7
jne 0x14002c0c8
mov r14d, 0x1330002
mov r15d, 3
lea rdx, str._RUXIMCABHelper__DownloadAndExtractCab_Method:_RUXIM_cab_of_identical_hash_already_downloaded
jmp 0x14002c1c3
mov r15d, 2
lea rdx, str._RUXIMCABHelper__DownloadAndExtractCab_Method:_Download_of_latest_RUXIM_cab_failed
jmp 0x14002c1c3
lea rdx, str._RUXIMCABHelper__DownloadAndExtractCab_Method:_Succesfully_downloaded_latest_RUXIM_cab
mov ecx, eax
call fcn.14000972c
mov rcx, rbx
call fcn.14004aad4
mov r14d, eax
mov ecx, eax
test eax, eax
jns 0x14002c10b
mov r15d, 4
lea rdx, str._RUXIMCABHelper__DownloadAndExtractCab_Method:_RUXIM_cab_not_signed
jmp 0x14002c1c6
lea rdx, str._RUXIMCABHelper__DownloadAndExtractCab_Method:_Succesfully_validated_RUXIM_cab_signature
call fcn.14000972c
mov r9, rdi
lea r8, [0x14002c870]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.setupapi.dll_SetupIterateCabinetW]
nop dword [rax + rax]
test eax, eax
jne 0x14002c1bc
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.14000972c
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 0x14002c1b0
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14002c1a7
lea rdx, str._RUXIMCABHelper__DeleteRUXIMCabETag_Method:_Unable_to_delete_the_RUXIM_cabs_e_tag_reg_key
jmp 0x14002c1c6
lea rdx, str._RUXIMCABHelper__DeleteRUXIMCabETag_Method:_Succesfully_deleted_cabs_e_tag_reg_key
jmp 0x14002c1c6
mov ecx, r13d
lea rdx, str._RUXIMCABHelper__DeleteRUXIMCabETag_Method:_No_e_tag_reg_key_found
jmp 0x14002c1c6
lea rdx, str._RUXIMCABHelper__DownloadAndExtractCab_Method:_Succesfully_unpacked_RUXIM_cab
mov ecx, r14d
call fcn.14000972c
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 0x14002c1ed
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 0x14002c225
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 0x14002c234
mov rax, qword [r12]
mov qword [r12 + 0x10], r13
mov word [rax], r13w
test r15d, r15d
je 0x14002c296
sub r15d, 1
je 0x14002c28d
sub r15d, 1
je 0x14002c284
sub r15d, 1
je 0x14002c27b
sub r15d, 1
je 0x14002c272
cmp r15d, 1
je 0x14002c269
lea rdx, str.Invalid
jmp 0x14002c29d
lea rdx, str.UnpackCabFailed
jmp 0x14002c29d
lea rdx, str.CheckCabSignatureFailed
jmp 0x14002c29d
lea rdx, str.CabAlreadyExists
jmp 0x14002c29d
lea rdx, str.DownloadCabFailed
jmp 0x14002c29d
lea rdx, str.DownloadAndExtractCabInitialize
jmp 0x14002c29d
lea rdx, str.DownloadAndExtractCabSuccess
mov rcx, r12
call fcn.140007e74
nop
lea rcx, [rbp - 0x68]
call fcn.140007d04
nop
lea rcx, [rbp - 0x48]
call fcn.140007d04
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14002c2ca
call fcn.1400075ec
nop
test rsi, rsi
je 0x14002c2df
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
test rdi, rdi
je 0x14002c2f4
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
test rbx, rbx
je 0x14002c309
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rbp - 0x28]
call fcn.140007d04
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14002c329
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.14004b180
mov rbx, qword [rsp + 0xa00]
add rsp, 0x9b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret