joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b460
Capabilities:
Get file size
Print debug messages
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x60
mov rax, qword [0x1401f3f10]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebp, ebp
xor r9d, r9d
mov edx, 0x80000000
mov qword [rsp + 0x30], rbp
lea r8d, [rbp + 1]
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rcx, [rax - 1]
mov rbx, rax
cmp rcx, 0xfffffffffffffffd
ja 0x14001b5d8
lea r9, [rsp + 0x40]
lea r8d, [rbp + 0xe]
lea rdx, [rsp + 0x48]
mov rcx, rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001b4e4
lea rcx, str.Error_reading_welcome_bitmap_file__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x14001b560
mov eax, dword [rsp + 0x4a]
test eax, eax
jne 0x14001b4fb
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x4a], eax
cmp dword [rsp + 0x40], 0xe
jne 0x14001b5c7
mov ecx, 0x4d42
cmp word [rsp + 0x48], cx
jne 0x14001b5c7
mov qword [rsp + 0x78], rsi
lea esi, [rax - 0xe]
mov edx, 1
mov ecx, esi
mov qword [rsp + 0x80], rdi
call qword [sym.imp.MSVCR120.dll_calloc]
mov rdi, rax
test rax, rax
jne 0x14001b57b
lea rcx, str.Out_of_memory_loading_welcome_bitmap_file__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14010f170
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rbp
ret
lea r9, [rsp + 0x40]
mov r8d, esi
mov rdx, rax
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001b5b9
lea rcx, str.Error_reading_welcome_bitmap_file__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.MSVCR120.dll_free]
jmp 0x14001b551
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
jmp 0x14001b553
lea rcx, str.Invalid_welcome_bitmap_file_format__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x14001b560
lea rcx, str.Welcome_bitmap_file_does_not_exist__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x14001b560
Function at 0x14001b650
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x40
mov rdi, r8
mov rsi, rcx
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x68], rbx
mov eax, dword [0x1401fc798]
test eax, eax
je 0x14001b697
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1401fc798]
test eax, eax
jne 0x14001b6a0
call fcn.1400190f0
test eax, eax
je 0x14001b6b6
lea rdx, [rsp + 0x68]
mov rcx, qword [0x1401f3f50]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x14001b6ba
xor eax, eax
jmp 0x14001b710
mov qword [rsp + 0x20], rbx
lea r9, [0x140019e90]
mov r8, rdi
mov edx, 0x6d47
mov rcx, rsi
call qword [sym.imp.USER32.dll_CreateDialogParamW]
mov rsi, rax
mov qword [rsp + 0x30], rax
mov edi, ebx
test rax, rax
sete dil
test edi, edi
je 0x14001b6f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x14001b70d
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14001be90
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
xor bl, bl
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x14001bfa3
xor eax, eax
lea rdx, str.CLSID
mov r9d, 0x20019
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001bf73
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x78]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001bf73
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x70]
lea rdx, [0x1401989e0]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001bf73
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
lea rdx, [0x140195ca8]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x68], Ordinal_1031
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14001bf83
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14001bf93
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001bfa3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140027b70
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
add rsp, 0x28
ret

Function at 0x1400280f0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x168
mov rax, qword [0x1401f3f10]
xor rax, rsp
mov qword [rsp + 0x150], rax
cmp dword [0x1401f9854], 0
jne 0x14002817b
mov dword [0x1401f9854], 1
mov dword [rsp + 0x30], Ordinal_280
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x40], 2
jne 0x140028171
cmp dword [rsp + 0x34], 6
jae 0x140028171
mov r8d, 0xe0000000
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140028164
mov dword [0x1401ee538], 0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14002817b
mov dword [0x1401ee538], 1
mov eax, dword [0x1401ee538]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14010f170
add rsp, 0x168
ret

Function at 0x140028280
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x38]
call fcn.140030130
nop
lea rcx, [rsp + 0x38]
call fcn.140030730
mov dword [rsp + 0x28], 5
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x20], rcx
lea r9, [0x14013c224]
mov r8, rax
lea rdx, str.OPEN
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
lea rcx, [rsp + 0x38]
call fcn.140030070
add rsp, 0x58
ret
Function at 0x140028300
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x4d0
mov rax, qword [0x1401f3f10]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
mov rax, qword [rsp + 0x4e8]
mov qword [rax], 0
mov r8, qword [rsp + 0x4e0]
mov edx, 0x104
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.MSVCR120.dll_wcscpy_s]
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.MSVCR120.dll_wcslen]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rsp + rax*2 + 0x2ae]
cmp eax, 0x5c
je 0x14002838d
lea r8, [0x14013c234]
mov edx, 0x104
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.MSVCR120.dll_wcscat_s]
xor eax, eax
mov word [rsp + 0xa0], ax
lea rax, [rsp + 0xa2]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_521
rep stosb byte [rdi], al
lea r8, [rsp + 0x2b0]
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCR120.dll_wcscpy_s]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0xffffffff
je 0x1400283ea
mov eax, dword [rsp + 0x48]
and eax, 0x10
test eax, eax
jne 0x1400283f1
xor eax, eax
jmp 0x14002855a
lea r8, [rsp + 0x2b0]
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCR120.dll_wcscpy_s]
lea r9, [rsp + 0xa0]
xor r8d, r8d
lea rdx, [0x14013c238]
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x140028437
xor eax, eax
jmp 0x14002855a
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x14002847d
xor eax, eax
jmp 0x14002855a
mov dword [rsp + 0x44], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x14002853d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov r8d, 0x24
xor edx, edx
lea rcx, [rsp + 0x78]
call sub.MSVCR120.dll_memset
movzx eax, word [rsp + 0x68]
sub eax, 0x76c
mov dword [rsp + 0x8c], eax
movzx eax, word [rsp + 0x6a]
dec eax
mov dword [rsp + 0x88], eax
movzx eax, word [rsp + 0x6e]
mov dword [rsp + 0x84], eax
movzx eax, word [rsp + 0x70]
mov dword [rsp + 0x80], eax
movzx eax, word [rsp + 0x72]
mov dword [rsp + 0x7c], eax
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCR120.dll__get_timezone]
lea rcx, [rsp + 0x78]
call fcn.140027e70
movsxd rcx, dword [rsp + 0x40]
sub rax, rcx
mov rcx, qword [rsp + 0x4e8]
mov qword [rcx], rax
mov dword [rsp + 0x44], 1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.14010f170
add rsp, 0x4d0
pop rdi
ret
Function at 0x140028580
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x290
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1401f3f10]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov byte [rsp + 0x30], 1
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x38], 0
lea rdx, [0x14013c240]
lea rcx, [rsp + 0x58]
call fcn.140030130
nop
lea rcx, [rsp + 0x58]
call fcn.140030730
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140028649
lea rdx, [0x14013c260]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14002863e
mov rax, qword [rsp + 0x2a0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8023
xor ecx, ecx
call qword [rsp + 0x38]
test eax, eax
jl 0x14002863e
mov dword [rsp + 0x34], 1
mov byte [rsp + 0x30], 0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x14002869c
xor eax, eax
mov word [rsp + 0x70], ax
lea rax, [rsp + 0x72]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_521
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, str.Common_Application_Data
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x2a0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov dword [rsp + 0x34], 1
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x58]
call fcn.140030070
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14010f170
add rsp, 0x290
pop rdi
ret
Function at 0x140028c00
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140028cd2
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.MSVCR120.dll_wcslen]
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140028cc7
mov dword [rsp + 0x54], 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x54]
add rsp, 0x68
ret

Function at 0x140028cf0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140028d92
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140028d87
mov dword [rsp + 0x54], 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x54]
add rsp, 0x68
ret
Function at 0x140028db0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov dword [rsp + 0x38], 0
lea rcx, [rsp + 0x50]
call fcn.140030030
nop
mov dword [rsp + 0x30], 0x1000
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140030800
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x34], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x140028e46
cmp dword [rsp + 0x34], 1
je 0x140028e59
lea rdx, [0x14013c25c]
lea rcx, [rsp + 0x50]
call fcn.140030410
jmp 0x140028e72
mov edx, 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.1400308e0
lea rcx, [rsp + 0x50]
call fcn.140030b80
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x80]
call fcn.1400300a0
mov eax, dword [rsp + 0x38]
or eax, 1
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0x50]
call fcn.140030070
mov rax, qword [rsp + 0x80]
add rsp, 0x78
ret

Function at 0x140028f50
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jne 0x14002900e
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140029003
mov dword [rsp + 0x50], 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x50]
add rsp, 0x68
ret

Function at 0x140029020
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140029098
cmp dword [rsp + 0x30], 4
je 0x140029089
cmp dword [rsp + 0x30], 3
jne 0x140029098
cmp dword [rsp + 0x34], 4
jne 0x140029098
mov dword [rsp + 0x38], 1
mov eax, dword [rsp + 0x38]
add rsp, 0x48
ret
Function at 0x140029140
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
cmp dword [rsp + 0x90], 0
jbe 0x14002920f
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jne 0x14002920f
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140029204
mov dword [rsp + 0x50], 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x50]
add rsp, 0x68
ret

Function at 0x140029220
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x140029299
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x14002928e
mov dword [rsp + 0x30], 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x1400292b0
Capabilities:
Create process on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x198
mov qword [rsp + 0xb8], 0xfffffffffffffffe
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x54], 0
mov rdx, qword [rsp + 0x1a0]
lea rcx, [rsp + 0xa0]
call fcn.140030130
nop
lea rdx, str.DIM.exe
lea rcx, [rsp + 0xd8]
call fcn.140030130
nop
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0xa0]
call fcn.1400305f0
nop
lea rcx, [rsp + 0xd8]
call fcn.140030070
lea rdx, str.CorelDownloadMgr
lea rcx, [rsp + 0x70]
call fcn.140030130
nop
mov rdx, qword [rsp + 0x1a8]
lea rcx, [rsp + 0xc0]
call fcn.140030130
nop
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x70]
call fcn.1400305f0
nop
lea rcx, [rsp + 0xc0]
call fcn.140030070
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x120]
call sub.MSVCR120.dll_memset
mov dword [rsp + 0x120], VarBstrFromDisp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsp + 0x70]
call fcn.140030750
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140030800
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0xa0]
call fcn.140030730
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x120]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x68]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x58], eax
mov edx, 0xffffffff
lea rcx, [rsp + 0x70]
call fcn.1400308e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x58], 0
je 0x1400294ee
cmp dword [rsp + 0x1b0], 0
je 0x1400294d2
mov dword [rsp + 0x50], 1
mov edx, 0x1f4
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14002947a
mov dword [rsp + 0x50], 0
jmp 0x1400294b8
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xf0]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400294b8
lea rcx, [rsp + 0xf0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [rsp + 0x50], 0
jne 0x140029459
lea rdx, [rsp + 0x54]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x5c], eax
lea rcx, [rsp + 0x70]
call fcn.140030070
nop
lea rcx, [rsp + 0xa0]
call fcn.140030070
mov eax, dword [rsp + 0x5c]
add rsp, 0x198
ret
Function at 0x14002a0e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x2168
call fcn.14010f740
sub rsp, rax
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov rax, qword [0x1401f3f10]
xor rax, rsp
mov qword [rsp + 0x2150], rax
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x60]
call fcn.140030030
nop
cmp qword [rsp + 0x2178], 0
je 0x14002a3a1
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x2178]
movzx eax, word [rcx + rax]
test eax, eax
je 0x14002a3a1
mov rdx, qword [rsp + 0x2178]
lea rcx, [rsp + 0x78]
call fcn.140030130
nop
lea rdx, [0x14013c484]
lea rcx, [rsp + 0xf8]
call fcn.140030130
nop
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x78]
call fcn.1400305f0
nop
lea rcx, [rsp + 0xf8]
call fcn.140030070
lea rdx, [0x14013c7d8]
lea rcx, [rsp + 0xc8]
call fcn.140030130
nop
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x78]
call fcn.1400305f0
nop
lea rcx, [rsp + 0xc8]
call fcn.140030070
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x78]
call fcn.140030730
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002a397
mov dword [rsp + 0x4c], 0x800
mov dword [rsp + 0x44], 0x800
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x1140]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x130]
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14002a38b
cmp dword [rsp + 0x50], 1
jne 0x14002a36c
lea rcx, [rsp + 0x60]
call fcn.140030750
test eax, eax
je 0x14002a2cb
lea rdx, [0x14013c494]
lea rcx, [rsp + 0x110]
call fcn.140030130
nop
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x60]
call fcn.1400305f0
nop
lea rcx, [rsp + 0x110]
call fcn.140030070
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x90]
call fcn.140030130
nop
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x60]
call fcn.1400305f0
nop
lea rcx, [rsp + 0x90]
call fcn.140030070
lea rdx, [0x14013c4a4]
lea rcx, [rsp + 0xb0]
call fcn.140030130
nop
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x60]
call fcn.1400305f0
nop
lea rcx, [rsp + 0xb0]
call fcn.140030070
lea rdx, [rsp + 0x1140]
lea rcx, [rsp + 0xe0]
call fcn.140030130
nop
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x60]
call fcn.1400305f0
nop
lea rcx, [rsp + 0xe0]
call fcn.140030070
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x4c], 0x800
mov dword [rsp + 0x44], 0x800
jmp 0x14002a22f
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x78]
call fcn.140030070
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x2170]
call fcn.1400300a0
mov eax, dword [rsp + 0x48]
or eax, 1
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x60]
call fcn.140030070
mov rax, qword [rsp + 0x2170]
mov rcx, qword [rsp + 0x2150]
xor rcx, rsp
call fcn.14010f170
add rsp, 0x2168
ret