joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140158470
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionThemesPersonalize
mov rcx, 0xffffffff80000001
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401584ef
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x40], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AppsUseLightTheme
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401584e4
cmp dword [rsp + 0x48], ebx
sete bl
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1401585c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.14016bf30
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14015860b
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
mov edx, ebx
mov rcx, rax
call fcn.1401586e0
mov edx, 0xa
lea rcx, [rsp + 0x40]
call fcn.14016bf30
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140158668
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
mov edx, ebx
mov rcx, rax
call fcn.1401586e0
mov edx, reloc.WS2_32.dll_inet_addr
lea rcx, [rsp + 0x40]
call fcn.14016bf30
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401586c6
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
mov edx, ebx
mov rcx, rax
call fcn.1401586e0
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
add rsp, 0x20
pop rbx
ret
Function at 0x1401591d0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x90
mov esi, edx
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rdx, [0x1402ac320]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__15]
mov dword [rsp + 0x20], 1
test esi, esi
jle 0x14015930d
lea rcx, [rsp + 0x28]
call sub.mfc140u.dll_CSmartDockingStandaloneGuideWnd::CSmartDockingStandaloneGuideWnd
nop
cmp ebx, 0x64
jge 0x1401592a0
mov r9d, esi
lea r8, str.SELECT_lID__mText__lParentID_FROM_Main_WHERE_lID___d
lea rdx, [rsp + 0x50]
lea rcx, [0x1403c44c8]
call fcn.140143da0
nop
lea rcx, [rsp + 0x50]
call fcn.1401437b0
test al, al
jne 0x140159296
lea r8, [0x1402ac320]
lea rdx, str.mText
lea rcx, [rsp + 0x50]
call fcn.1401446b0
mov r8, rax
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x28]
call sub.mfc140u.dll_COleControlSite::SafeSetProperty
xor r8d, r8d
lea rdx, str.lParentID
lea rcx, [rsp + 0x50]
call fcn.140144630
mov esi, eax
lea rcx, [rsp + 0x50]
call fcn.140143000
inc ebx
jmp 0x140159212
lea rcx, [rsp + 0x50]
call fcn.140143000
lea rdx, str.Group_Path:__
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
mov ebx, dword [rsp + 0x38]
dec ebx
test ebx, ebx
js 0x1401592ec
lea rdx, [0x1402c5770]
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_COleCurrency::operator_]
movsxd rcx, ebx
test ebx, ebx
js 0x14015931b
cmp rcx, qword [rsp + 0x38]
jge 0x14015931b
mov rax, qword [rsp + 0x30]
lea rdx, [rax + rcx*8]
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_Ordinal_1667]
jmp 0x1401592b4
lea rcx, [rsp + 0x28]
call sub.mfc140u.dll_CSemaphore::CSemaphore
nop
mov rax, rdi
add rsp, 0x90
pop rdi
pop rsi
pop rbx
ret
mov rax, rdi
add rsp, 0x90
pop rdi
pop rsi
pop rbx
ret
call sub.mfc140u.dll_AfxRegDeleteKey
int3

Function at 0x140159330
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14039e2e8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x24], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__15]
mov dword [rsp + 0x24], 1
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CHtmlView::LoadFromResource]
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1402654f0
add rsp, 0x60
pop rbx
ret
Function at 0x140159f30
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push rbx
sub rsp, 0x2e0
mov rax, qword [0x14039e2e8]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
call qword [sym.imp.mfc140u.dll_Ordinal_296]
mov dword [rsp + 0x20], 1
mov ecx, 2
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140159fc8
mov edx, CMapStringToOb::HashKey
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x140159fc2
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x140159fc2
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx]
mov ecx, dword [rdx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XPanel::XPanel]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CHtmlView::LoadFromResource]
mov rax, rbx
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1402654f0
add rsp, 0x2e0
pop rbx
ret
Function at 0x14015a4e0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x1d0
mov rax, qword [0x14039e2e8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rbx, rdx
mov qword [rsp + 0x20], rcx
xor edi, edi
lea rdx, [rsp + 0x30]
mov rsi, rcx
mov rcx, rbx
lea r8d, [rdi + 0x64]
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], di
jne 0x14015a530
test rax, rax
jne 0x14015a5ba
nop
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetParent]
mov rbx, rax
test rax, rax
je 0x14015a5ba
mov r8d, 0x64
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
inc edi
cmp edi, 0x64
jg 0x14015a591
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14015a580
test rax, rax
je 0x14015a540
jmp 0x14015a5ba
lea rdx, str.C:UsersScottBrAppDataLocalTempDitto_BuildMisc.cpp
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
mov r9d, 0xfb
lea rcx, str.GetTargetName_reached_maximum_search_depth_of_100
mov r8, rax
xor edx, edx
call fcn.14015b6c0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__15]
mov rax, rsi
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1402654f0
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14015b380
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov ebx, edx
mov rdi, rcx
lea rdx, [0x1402ac320]
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__15]
mov dword [rsp + 0x30], ebx
lea rdx, [rsp + 0x28]
lea rcx, [0x140157f30]
call qword [sym.imp.USER32.dll_EnumWindows]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14015b500
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsDWM
mov rcx, 0xffffffff80000001
mov ebx, 0xffffffff
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14015b57e
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x40], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ColorizationColor
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
test eax, eax
cmove ebx, dword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x14015b6c0
Capabilities:
Print debug messages

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x14039e2e8]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov ebx, r9d
mov rsi, r8
movzx r14d, dl
mov rdi, rcx
mov qword [rbp + 0xf], r8
lea rcx, [rbp + 0x17]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rcx, [rbp - 0x19]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
movzx eax, word [rbp + 0x25]
movzx ecx, word [rbp + 0x23]
movzx edx, word [rbp + 0x21]
movzx r10d, word [rbp + 0x1f]
movzx r11d, word [rbp + 0x1d]
movzx r9d, word [rbp + 0x19]
movzx r8d, word [rbp + 0x17]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
lea rdx, [0x1402d9530]
lea rcx, [rbp - 0x19]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
lea rcx, [rbp - 0x11]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov rdx, rsi
lea rcx, [rbp + 7]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.140159520
nop
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rbp - 1]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov r9d, ebx
mov r8, qword [rsi]
lea rdx, [0x1402d9578]
lea rcx, [rbp - 0x11]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x19]
call qword [sym.imp.mfc140u.dll_Ordinal_1667]
mov rdx, rdi
lea rcx, [rbp - 0x19]
call qword [sym.imp.mfc140u.dll_COleCurrency::operator_]
lea rdx, [0x1402b1100]
lea rcx, [rbp - 0x19]
call qword [sym.imp.mfc140u.dll_COleCurrency::operator]
cmp dword [0x1403c53b8], 0
je 0x14015b7e9
lea rcx, [rbp - 0x19]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test r14b, r14b
jne 0x14015b7f7
cmp dword [0x1403c53b0], 0
je 0x14015b845
mov edx, 2
lea rcx, [rbp - 9]
call fcn.14016bf30
nop
lea rdx, str.Ditto.log
lea rcx, [rbp - 9]
call qword [sym.imp.mfc140u.dll_COleCurrency::operator]
lea rcx, [rbp - 0x19]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rbx, rax
lea rcx, [rbp - 9]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rdx, rbx
mov rcx, rax
call fcn.140158010
nop
lea rcx, [rbp - 9]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp - 0x11]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp - 0x19]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1402654f0
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140168a20
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push rdi
sub rsp, 0x40
mov rdi, rcx
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140168ab4
mov eax, 0xfeff
mov qword [rsp + 0x50], rbx
mov rcx, rdi
mov word [rsp + 0x58], ax
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov rcx, rax
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], 0
mov rcx, rax
lea rdx, [rsp + 0x58]
mov r8d, 2
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
mov rcx, rdi
add rsp, 0x40
pop rdi
jmp qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
Function at 0x14016c300
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
cmp byte [0x1403c5340], 0
je 0x14016c330
cmp byte [0x1403c5341], 0
je 0x14016c3e4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareDitto
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14016c3e4
mov ecx, dword [rbx]
call sub.mfc140u.dll_operator_2
mov rsi, rax
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14016c3e4
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rax, rsi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14016d410
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14016d446
xor eax, eax
add rsp, 0x38
ret
mov qword [rsp + 0x50], rbx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rdi
call fcn.1401691f0
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rcx, qword [rsp + 0x40]
xor edi, edi
mov qword [rsp + 0x28], rdi
mov rdx, rax
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x50]
sete dil
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
ret

Function at 0x14016d9b0
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
movzx ecx, byte [0x1403c5342]
test cl, cl
je 0x14016da61
lea rcx, [rsp + 0x38]
call fcn.14016aa70
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1401595c0
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::HitTest]
test al, al
jne 0x14016da3a
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::GetHierarchyLevel]
lea edx, [rax - 1]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCBaseAccessibleObject::XAccessible::get_accChild]
cmp ax, 0x5c
je 0x14016da3a
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::GetHierarchyLevel]
lea edx, [rax - 1]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCBaseAccessibleObject::XAccessible::get_accChild]
cmp ax, 0x2f
je 0x14016da3a
lea rdx, [0x1402d9ce4]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_COleCurrency::operator]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
movzx ecx, byte [0x1403c5342]
xor eax, eax
cmp cl, 1
sete al
add rsp, 0x28
ret
Function at 0x14016dfc0
Capabilities:
Create directory
Get common file path

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x14039e2e8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
call qword [sym.imp.mfc140u.dll_Ordinal_296]
mov dword [rsp + 0x20], 1
lea rdx, [rsp + 0x30]
mov ecx, SerializeElements<ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14016e03f
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
lea rdx, str.Ditto_
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_COleCurrency::operator_]
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1402654f0
add rsp, 0x250
pop rbx
ret

Function at 0x14016f170
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
mov rbp, rcx
mov dword [rsp + 0x20], 0
call qword [sym.imp.mfc140u.dll_Ordinal_296]
mov dword [rsp + 0x20], 1
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::GetHierarchyLevel]
lea edx, [rax + rax*4]
add edx, edx
mov edi, 0x3e8
cmp edx, edi
jle 0x14016f1c7
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::GetHierarchyLevel]
lea edi, [rax + rax*4]
add edi, edi
mov edx, edi
mov rcx, rbp
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov rbx, rax
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, 0xffffffff
mov rcx, rbp
call qword [sym.imp.mfc140u.dll_CDialogImpl::ProcessMouseClick]
nop
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rax, rbp
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x140170b50
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x60
cmp byte [0x1403c5340], 0
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
jne 0x140170c08
lea rax, [r11 + 0x20]
xor r9d, r9d
mov qword [r11 - 0x28], rax
lea rdx, str.SoftwareDitto
lea rax, [r11 - 0x18]
xor r8d, r8d
mov qword [r11 - 0x30], rax
mov rcx, 0xffffffff80000001
xor eax, eax
mov qword [r11 - 0x38], rax
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140170c08
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rcx, qword [rsp + 0x50]
mov r9d, 3
mov rdx, rax
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, 1
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rbx, qword [rsp + 0x70]
xor eax, eax
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x140170f30
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x60
cmp byte [0x1403c5340], 0
mov ebp, edx
mov rdi, rcx
je 0x140170f89
lea rcx, [0x1403c5600]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov r9, rbx
lea rcx, [0x1402ac728]
mov rdx, rax
mov r8d, ebp
call fcn.140172300
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, ebx
add rsp, 0x60
pop rdi
pop rbp
pop rbx
ret
lea rax, [rsp + 0x98]
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x40], rax
lea rdx, str.SoftwareDitto
lea rax, [rsp + 0x50]
xor esi, esi
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, rdi
test eax, eax
je 0x140170ff4
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rsi, qword [rsp + 0x80]
xor eax, eax
add rsp, 0x60
pop rdi
pop rbp
pop rbx
ret
mov dword [rsp + 0x90], ebp
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rcx
mov r9d, 4
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
test ebx, ebx
sete sil
mov eax, esi
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rbp
pop rbx
ret