joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f690
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x470
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor r8d, r8d
lea rdx, str.Tool_DeleteTempUninstaller
lea rcx, [rsp + 0x20]
call fcn.140001190
nop
call fcn.140059f20
mov rbx, qword [rax + 8]
mov edi, 1
xor esi, esi
mov word [rsp + 0x250], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x252]
call fcn.14019d7c0
mov word [rsp + 0x40], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x42]
call fcn.14019d7c0
cmp dword [rbx + 0x778], esi
je 0x14001f7c2
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r9, str.UNINSTAL.tmp
lea r8, [rsp + 0x40]
lea rdx, str._s_s
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
lea edx, [rdi + 0x7f]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8d, 0x104
lea rdx, [rsp + 0x250]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x250]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14001f7c2
lea r8d, [rdi + 1]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14001f7c0
xor edx, edx
lea r8d, [rdi + 3]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x14001f7c2
mov edi, esi
mov r9d, edi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x20]
call fcn.140001370
nop
lea rcx, [rsp + 0x20]
call fcn.140001320
mov eax, edi
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140198b40
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14001f810
Capabilities:
Enumerate files on windows

Disassembly:
push rdi
sub rsp, 0x6c0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x6d8], rbx
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rsp + 0x6b0], rax
mov rdi, rcx
xor r8d, r8d
lea rdx, str.Tool_GetFileCountInFolder
lea rcx, [rsp + 0x20]
call fcn.140001190
nop
mov r9, rdi
lea r8, str.lpszDirectory___s
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.140001370
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x290]
call fcn.14019d7c0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x4a0]
call fcn.14019d7c0
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x40]
call fcn.14019d7c0
xor ebx, ebx
test rdi, rdi
jne 0x14001f8b8
or ebx, 0xffffffff
jmp 0x14001f959
mov rdx, rdi
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x290]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r8, [rsp + 0x290]
lea rdx, str._s.
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14001f959
lea rdx, [0x14021dab4]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14001f93e
lea rdx, [0x14021fe4c]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14001f93e
inc ebx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14001f910
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x20]
call fcn.140001370
nop
lea rcx, [rsp + 0x20]
call fcn.140001320
mov eax, ebx
mov rcx, qword [rsp + 0x6b0]
xor rcx, rsp
call fcn.140198b40
mov rbx, qword [rsp + 0x6d8]
add rsp, 0x6c0
pop rdi
ret
Function at 0x140020430
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x970
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rsp + 0x960], rax
mov rbx, rcx
xor r8d, r8d
lea rdx, str.Tool_GetPrinterDriverDir
lea rcx, [rsp + 0x38]
call fcn.140001190
nop
mov r9, rbx
lea r8, str.pDir___s
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140001370
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x560]
call fcn.14019d7c0
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x160]
call fcn.14019d7c0
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x50]
call fcn.14019d7c0
lea rdx, [0x1402209ac]
lea rcx, [rsp + 0x560]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x1402209ac]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x50]
mov r8d, 1
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x560]
call qword [sym.imp.WINSPOOL.DRV_GetPrinterDriverDirectoryW]
mov rcx, rbx
cmp eax, 1
jne 0x14002053b
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x140020546
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [0x1402209ac]
mov edx, 2
lea rcx, [rsp + 0x38]
call fcn.140001370
nop
lea rcx, [rsp + 0x38]
call fcn.140001320
mov rcx, qword [rsp + 0x960]
xor rcx, rsp
call fcn.140198b40
add rsp, 0x970
pop rbx
ret
Function at 0x1400218c0
Capabilities:
Check os version

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd8]
sub rsp, 0x1d8
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rdi, r9
mov r12, r8
mov r13d, edx
mov rbx, rcx
lea rax, vtable.CUtilityInfoOSEnv.0
mov qword [rbp - 0x70], rax
xor r15d, r15d
mov dword [rbp - 0x68], r15d
mov dword [rbp + 0xb8], r15d
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r15
mov word [rsp + 0x40], r15w
xor r8d, r8d
lea rdx, [0x1402209ac]
lea rcx, [rsp + 0x40]
call fcn.140003200
nop
lea rcx, [rsp + 0x68]
call fcn.140005850
nop
call fcn.140059f20
mov r14, qword [rax + 8]
mov dword [rbp - 0x68], 0x80000000
xor edx, edx
mov r8d, 0x11c
lea rcx, [rbp - 0x64]
call fcn.14019d7c0
mov dword [rbp - 0x64], 0x11c
lea rcx, [rbp - 0x64]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x140021996
mov dword [rbp - 0x64], 0x114
lea rcx, [rbp - 0x64]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rcx, [rbp - 0x70]
mov rax, qword [rbp - 0x70]
call qword [rax + 0x78]
mov dword [rbp + 0xb8], eax
cmp dword [rbp - 0x60], 6
jbe 0x1400219b6
cmp byte [rbp + 0xb6], 1
je 0x1400219e3
lea rcx, [rbp - 0x70]
mov rax, qword [rbp - 0x70]
call qword [rax + 0x30]
test eax, eax
jne 0x1400219e3
cmp dword [rbp - 0x60], 6
jbe 0x1400219d4
cmp byte [rbp + 0xb6], 1
jne 0x1400219e3
lea rcx, [rbp - 0x70]
mov rax, qword [rbp - 0x70]
call qword [rax + 0x40]
test eax, eax
je 0x140021a1e
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140004710
mov r8d, 9
lea rdx, str.USBPRINT_
lea rcx, [rsp + 0x40]
call fcn.140004140
cmp rax, 0xffffffffffffffff
je 0x140021a1e
lea rcx, [rsp + 0x40]
call fcn.140004c50
mov esi, 1
jmp 0x140021a28
mov rcx, qword [rdi]
call fcn.14002eaf0
mov esi, eax
mov rcx, qword [rdi]
call qword [sym.imp.WINSPOOL.DRV_ClosePrinter]
mov qword [rdi], r15
test esi, esi
jne 0x140021a5e
cmp qword [rbx + 0x18], 8
jb 0x140021a42
mov rbx, qword [rbx]
lea rcx, [r14 + 0x790]
mov dword [rsp + 0x20], r13d
mov r9, r12
xor r8d, r8d
mov rdx, rbx
call fcn.140050ff0
jmp 0x140021a87
cmp qword [rbx + 0x18], 8
jb 0x140021a6a
mov rcx, qword [rbx]
jmp 0x140021a6d
mov rcx, rbx
mov rdx, r12
call fcn.140024e50
cmp qword [rbx + 0x18], 8
jb 0x140021a7f
mov rbx, qword [rbx]
mov rcx, rbx
call fcn.1400154c0
mov ebx, eax
test eax, eax
jne 0x140021ad4
cmp dword [rbp - 0x60], 6
jbe 0x140021a9c
cmp byte [rbp + 0xb6], 1
je 0x140021ac9
lea rcx, [rbp - 0x70]
mov rax, qword [rbp - 0x70]
call qword [rax + 0x30]
test eax, eax
jne 0x140021ac9
cmp dword [rbp - 0x60], 6
jbe 0x140021aba
cmp byte [rbp + 0xb6], 1
jne 0x140021ac9
lea rcx, [rbp - 0x70]
mov rax, qword [rbp - 0x70]
call qword [rax + 0x40]
test eax, eax
je 0x140021ad4
lea rcx, [rsp + 0x40]
call fcn.1400048c0
nop
lea rcx, [rsp + 0x40]
call fcn.140004650
nop
mov eax, ebx
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140198b40
add rsp, 0x1d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400222d0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x490
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x4c0], rbx
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rdi, rdx
mov rbx, rcx
xor r8d, r8d
lea rdx, str.DeleteRegPCL
lea rcx, [rsp + 0x58]
call fcn.140001190
nop
mov qword [rsp + 0x20], rdi
mov r9, rbx
lea r8, str.hKeyPrinter___08x__lpszPrinter___s
mov edx, 1
lea rcx, [rsp + 0x58]
call fcn.140001370
xor ebp, ebp
mov qword [rsp + 0x48], rbp
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x70]
call fcn.14019d7c0
mov dword [rsp + 0x40], ebp
xor eax, eax
mov qword [rsp + 0x50], rax
mov esi, ebp
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002243e
nop word [rax + rax]
mov dword [rsp + 0x40], 0x208
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x70]
call fcn.14019d7c0
lea r11, [rsp + 0x50]
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov edx, esi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc esi
test eax, eax
je 0x1400223eb
cmp eax, 0x103
je 0x14002242c
mov ebx, ebp
jmp 0x140022423
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call fcn.1400222d0
mov ebx, eax
cmp eax, 1
jne 0x140022431
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x140022421
cmp eax, 2
je 0x140022421
mov ebx, ebp
mov eax, 0x103
mov esi, ebp
test eax, eax
jne 0x140022431
jmp 0x140022390
mov ebx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140022449
mov ebx, 1
cmp eax, 2
cmovne ebx, ebp
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x58]
call fcn.140001370
nop
lea rcx, [rsp + 0x58]
call fcn.140001320
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140198b40
mov rbx, qword [rsp + 0x4c0]
add rsp, 0x490
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400224a0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x490
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x4c0], rbx
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rdi, rdx
mov rbx, rcx
xor r8d, r8d
lea rdx, str.CheckRegPCL
lea rcx, [rsp + 0x58]
call fcn.140001190
nop
mov qword [rsp + 0x20], rdi
mov r9, rbx
lea r8, str.hKeyPrinter___08x__lpszPrinter___s
mov ebp, 1
mov edx, ebp
lea rcx, [rsp + 0x58]
call fcn.140001370
xor esi, esi
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x40], esi
xor eax, eax
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400225a2
mov dword [rsp + 0x40], 0x208
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x70]
call fcn.14019d7c0
lea r11, [rsp + 0x50]
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140022595
cmp eax, 0x103
sete sil
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400225aa
cmp eax, 2
cmovne ebp, esi
mov esi, ebp
mov r9d, esi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x58]
call fcn.140001370
nop
lea rcx, [rsp + 0x58]
call fcn.140001320
mov eax, esi
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140198b40
mov rbx, qword [rsp + 0x4c0]
add rsp, 0x490
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400238a0
Capabilities:
Delete file
Get common file path

Disassembly:
push rdi
sub rsp, 0x480
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x4a0], rbx
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rbx, rdx
mov rdi, rcx
xor r8d, r8d
lea rdx, str.DeleteOldVersionLanguageMonitor
lea rcx, [rsp + 0x30]
call fcn.140001190
nop
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
mov r9, rdi
lea r8, str.lpszFile___s__lpszMon___s__bDebug___d
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140001370
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WINSPOOL.DRV_DeleteMonitorW]
test eax, eax
jne 0x140023924
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.14019d7c0
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov r9, rdi
lea r8, [rsp + 0x50]
cmp word [rsp + rcx*2 + 0x4e], 0x5c
lea rcx, [rsp + 0x260]
lea rdx, str._s_s
jne 0x14002397a
lea rdx, [0x14021c280]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
mov r9d, eax
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x30]
call fcn.140001370
nop
lea rcx, [rsp + 0x30]
call fcn.140001320
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140198b40
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x480
pop rdi
ret
Function at 0x1400249d0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5a8]
sub rsp, 0x6a0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rbp + 0x590], rax
mov rbx, rcx
xor r8d, r8d
lea rdx, str.DeleteRegICMProfile
lea rcx, [rsp + 0x40]
call fcn.140001190
nop
mov r9, rbx
lea r8, str.lpszFileName___s
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.140001370
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.14019d7c0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x170]
call fcn.14019d7c0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x380]
call fcn.14019d7c0
test rbx, rbx
jne 0x140024aa9
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rdi + 2]
lea rcx, [rsp + 0x40]
call fcn.140001370
nop
lea rcx, [rsp + 0x40]
call fcn.140001320
xor eax, eax
jmp 0x140024c09
lea r8, str.SOFTWAREMicrosoftWindows_NTCurrentVersionICMmntr
mov edx, 0x104
lea rcx, [rbp + 0x170]
call fcn.14019a840
lea r8, str.SOFTWAREMicrosoftWindows_NTCurrentVersionICMprtr
mov edx, 0x104
lea rcx, [rbp + 0x380]
call fcn.14019a840
mov rdx, rbx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, 0x5c
lea rcx, [rsp + 0x60]
call fcn.14019a074
test rax, rax
je 0x140024b0a
lea rdx, [rax + 2]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
lea rdx, [rbp + 0x170]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140024b69
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140024b69
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
lea rdx, [rbp + 0x380]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140024bc8
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140024bc8
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, 1
lea r8, str.return___08x
lea edx, [r9 + 1]
lea rcx, [rsp + 0x40]
call fcn.140001370
nop
lea rcx, [rsp + 0x40]
call fcn.140001320
mov eax, 1
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.140198b40
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14002db90
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
xor r8d, r8d
lea rdx, str.Tool_GetProcType64
lea rcx, [rsp + 0x28]
call fcn.140001190
nop
xor ebx, ebx
xor edx, edx
lea r8d, [rbx + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14019d7c0
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [rsp + 0x38]
cmp eax, 6
je 0x14002dbea
add eax, 0xfffffff7
cmp eax, 1
ja 0x14002dbef
mov ebx, 2
jmp 0x14002dbef
mov ebx, 1
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x28]
call fcn.140001370
nop
lea rcx, [rsp + 0x28]
call fcn.140001320
mov eax, ebx
add rsp, 0x70
pop rbx
ret
Function at 0x1400310d0
Capabilities:
Delete registry key

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
xor r8d, r8d
lea rdx, str.Tool_CleanupCAPModuleAndRegistry
lea rcx, [rsp + 0x28]
call fcn.140001190
nop
mov edi, 1
call fcn.140056384
mov r11, rax
xor ebp, ebp
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x140031129
mov ecx, 0x80004005
call fcn.140004550
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
lea rdx, str.SOFTWARECANON_
test rdx, 0xffffffffffff0000
jne 0x14003116c
movzx esi, dx
mov ecx, esi
call fcn.140056158
test rax, rax
je 0x140031181
mov r8d, esi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140005730
jmp 0x14003117c
mov r8d, 0xf
lea rcx, [rsp + 0x50]
call fcn.1400059f0
mov rbx, qword [rsp + 0x50]
xor ecx, ecx
call fcn.140032f20
test eax, eax
cmove edi, ebp
mov rcx, 0xffffffff80000001
call fcn.140031580
test eax, eax
cmove edi, ebp
mov rcx, 0xffffffff80000002
call fcn.140031580
test eax, eax
cmove edi, ebp
call fcn.140031880
test eax, eax
cmove edi, ebp
mov rdx, rbx
mov rcx, 0xffffffff80000001
call fcn.1400224a0
test eax, eax
je 0x1400311dc
mov rdx, rbx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov r9d, edi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x28]
call fcn.140001370
nop
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140031213
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
lea rcx, [rsp + 0x28]
call fcn.140001320
mov eax, edi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140032d60
Capabilities:
Check if file exists
Delete file
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x4a8
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov rbp, r9
mov r12, r8
mov rdi, rdx
mov rbx, rcx
xor r8d, r8d
lea rdx, str.Tool_DeleteSMModule
lea rcx, [rsp + 0x58]
call fcn.140001190
nop
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rdi
mov r9, rbx
lea r8, str.pRegRoot___s__pSubKey___s__pValueName___s__pModuleName___s
mov esi, 1
mov edx, esi
lea rcx, [rsp + 0x58]
call fcn.140001370
xor r13d, r13d
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x50], 0x104
mov dword [rsp + 0x70], r13d
xor edx, edx
mov r8d, 0x204
lea rcx, [rsp + 0x74]
call fcn.14019d7c0
mov dword [rsp + 0x280], r13d
xor edx, edx
mov r8d, 0x204
lea rcx, [rsp + 0x284]
call fcn.14019d7c0
mov rdx, rbx
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, rdi
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r11, [rsp + 0x48]
mov qword [rsp + 0x20], r11
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x280]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140032ed3
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, r12
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140032ec8
mov rdx, rbp
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140032ec8
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
cmove esi, r13d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, esi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x58]
call fcn.140001370
nop
lea rcx, [rsp + 0x58]
call fcn.140001320
mov eax, esi
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.140198b40
add rsp, 0x4a8
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140032f20
Capabilities:
Delete registry key

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov rsi, rcx
xor r8d, r8d
lea rdx, str.Tool_DeletePSWRegistry
lea rcx, [rsp + 0x28]
call fcn.140001190
nop
mov r9, rsi
lea r8, str.lpszPrinter___s
mov edx, 1
lea rcx, [rsp + 0x28]
call fcn.140001370
call fcn.140059f20
mov rbp, qword [rax + 8]
xor edi, edi
call fcn.140056384
mov r11, rax
mov ecx, edi
test rax, rax
setne cl
test ecx, ecx
jne 0x140032f99
mov ecx, 0x80004005
call fcn.140004550
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rdx, str.SOFTWARECANON_
test rdx, 0xffffffffffff0000
jne 0x140032fdc
movzx ebx, dx
mov ecx, ebx
call fcn.140056158
test rax, rax
je 0x140032fed
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140005730
jmp 0x140032fed
mov r8d, 0xf
lea rcx, [rsp + 0x58]
call fcn.1400059f0
nop
mov rdx, qword [rbp + 0x7f8]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x58]
call fcn.14000bed0
test rsi, rsi
je 0x140033020
mov r9, rsi
mov r8, qword [rsp + 0x58]
lea rdx, str._s_s
lea rcx, [rsp + 0x58]
call fcn.14000bfe0
mov rbx, qword [rsp + 0x58]
mov rdx, rbx
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x14003303e
cmp eax, 2
jne 0x140033043
mov edi, 1
mov r9d, edi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x28]
call fcn.140001370
nop
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14003307a
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
lea rcx, [rsp + 0x28]
call fcn.140001320
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret