joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005218
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x50
and qword [r11 - 0x18], 0
lea rax, [r11 + 0x20]
mov qword [r11 - 0x20], rax
mov rdi, r8
and qword [r11 - 0x28], 0
mov rbx, rdx
mov dword [rsp + 0x28], 0x20006
lea rdx, str.SOFTWAREMicrosoftShared_ToolsGrapheditFavorites
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400052a2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsp + 0x78]
mov r9d, 1
add eax, r9d
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1400052c3
mov r9d, 0x30
lea r8, [0x140023538]
lea rdx, str.There_was_an_error_adding_this_filter_to_your_favorites_list.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0x80004005
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x1400052d4
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x50
and qword [rsp + 0x68], 0
mov rbx, rdx
test rdx, rdx
jne 0x1400052f2
mov eax, 0x80004003
jmp 0x140005377
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREMicrosoftShared_ToolsGrapheditFavorites
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x2001f
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140005356
mov rcx, qword [rsp + 0x68]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x68]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140005356
xor eax, eax
jmp 0x140005377
mov r9d, 0x30
lea r8, str.DeleteFavorite
lea rdx, str.There_was_an_error_removing_this_favorite.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0x80004005
add rsp, 0x50
pop rbx
ret

Function at 0x140005384
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
and qword [r11 + 0x18], 0
mov rbx, rdx
mov dword [rsp + 0x68], COleDropTarget::XDropTarget::AddRef
test rdx, rdx
je 0x14000541e
and qword [r11 - 0x18], 0
lea rax, [r11 + 0x18]
mov qword [r11 - 0x20], rax
lea rdx, str.SOFTWAREMicrosoftShared_ToolsGrapheditFavorites
and qword [r11 - 0x28], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x20019
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x14000541e
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor r9d, r9d
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x70]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000541e
cmp dword [rsp + 0x68], ebx
jbe 0x14000541e
lea eax, [rbx + 1]
jmp 0x140005420
xor eax, eax
add rsp, 0x50
pop rbx
ret
Function at 0x1400075d8
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x448
mov rax, qword [0x1400380f0]
xor rax, rsp
mov qword [rsp + 0x430], rax
and dword [rsp + 0x30], 0
lea r9, [r11 + 0x20]
mov rdi, rdx
lea rcx, [rsp + 0x40]
mov ebx, reloc.MFC42.dll_CPtrList::AddHead
mov edx, ebx
call sub.msvcrt.dll__vsnprintf
test eax, eax
js 0x140007626
cdqe
cmp rax, rbx
jb 0x14000762e
mov byte [rsp + reloc.MFC42.dll_COleControl::XPointerInactive::AddRef], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140007661
cmp dword [rsp + 0x30], ebx
je 0x140007671
or r8d, 0xffffffff
xor edx, edx
mov ecx, 0xef50
call sub.MFC42.dll_Ordinal_1505
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.14001ea00
add rsp, 0x448
pop rdi
pop rbx
ret
Function at 0x140009cc0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rbx, rcx
mov rax, qword [rcx + 0x200]
test rax, rax
je 0x140009cfb
cmp qword [rcx + 0x208], 0
je 0x140009cfb
mov eax, 1
jmp 0x140009edd
test rax, rax
jne 0x140009d3b
lea ecx, [rax + 0x18]
call fcn.14001cf98
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140009d34
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8, [0x14002cb08]
lea rdx, [0x14002d898]
mov rcx, rax
call fcn.140009360
nop
mov qword [rbx + 0x200], rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.14001cf98
mov rdi, rax
mov qword [rsp + 0x58], rax
test rdi, rdi
je 0x140009d9a
mov rcx, qword [rbx + 0x200]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x1400038d5.0]
mov r9, rax
lea rax, vtable.CQCOMInt_struct_IMediaEvent_.0
mov qword [rdi], rax
and qword [rdi + 0x10], 0
mov rcx, qword [r9]
lea r8, [rdi + 8]
mov rax, qword [rcx]
lea rdx, [0x14002d788]
mov rcx, r9
call qword [case.0x1400038d5.0]
test eax, eax
js 0x140009ee8
mov qword [rbx + 0x208], rdi
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x20]
call qword [case.0x1400038d5.0]
mov r8, rax
mov rcx, qword [rax]
lea rdx, [rbx + 0x1e0]
mov rax, qword [rcx + 0x38]
mov rcx, r8
call qword [case.0x1400038d5.0]
test eax, eax
js 0x140009f06
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x1e8], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x1f0], rax
mov dword [rsp + 0x20], 1
mov r9, rax
mov edx, 1
mov rcx, 0xffffffff80000000
lea r8d, [rdx + 3]
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
cmp qword [rbx + 0x1e8], 0
je 0x140009ecd
mov rcx, qword [rbx + 0x200]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x1400038d5.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
lea rdx, [0x14002d918]
mov rcx, r9
call qword [case.0x1400038d5.0]
test eax, eax
js 0x140009ea3
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400038d5.0]
mov rcx, qword [rbx + 0x208]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x1400038d5.0]
lea r8, [rbx + 0x210]
mov rdx, rax
lea rcx, [0x14002d788]
call qword [sym.imp.ole32.dll_CoMarshalInterThreadInterfaceInStream]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x14000a4e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + reloc.MFC42.dll_CView::CView], rax
mov rcx, rbx
call fcn.1400035f8
nop
jmp 0x140009cf1
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.140001578
lea rdx, [0x140035868]
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll__CxxThrowException
nop
mov edx, 0x80004005
lea rcx, [rsp + 0x34]
call fcn.140001578
lea rdx, [0x140035868]
lea rcx, [rsp + 0x34]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1400121d0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
xor edx, edx
xor ecx, ecx
lea r8d, [rbx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
test rax, rax
je 0x140012277
lea r8d, [rbx + 4]
mov rcx, rax
lea rdx, str.ehrecvr
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbp, rax
test rax, rax
je 0x14001226e
lea edx, [rbx + 0x1c]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140012265
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalSize]
xor edx, edx
mov rcx, rdi
mov r8, rax
call sub.msvcrt.dll_memset
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14001225c
cmp dword [rdi + 4], 4
lea eax, [rbx + 1]
cmove ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140015e90
Capabilities:
Get file version info

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x210
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x208], rbx
mov qword [rbp + 0x210], rsi
mov qword [rbp + 0x218], rdi
mov rax, qword [0x1400380f0]
xor rax, rbp
mov qword [rbp + 0x1c0], rax
mov r13, rcx
call sub.MFC42.dll_CToolBar::OnUpdateCmdUI
mov r15d, eax
call sub.MFC42.dll_Ordinal_1469
mov r8d, 0x80
lea rdx, [rbp + 0x140]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor ebx, ebx
test eax, eax
je 0x14001606b
lea rdx, [rbp + 4]
lea rcx, [rbp + 0x140]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test eax, eax
je 0x14001606b
mov edx, esi
lea ecx, [rbx + 0x42]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x14001606b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalLock]
mov r14, rax
test rax, rax
je 0x140016062
mov r9, rax
lea rcx, [rbp + 0x140]
mov r8d, esi
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x140016059
lea r9, [rbp]
mov rcx, r14
lea r8, [rbp + 8]
lea rdx, str.StringFileInfo040904E4ProductVersion
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x140016059
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x140]
call sub.MFC42.dll_AFX_INTERFACEMAPconstCOleDropSource::interfaceMap
test eax, eax
je 0x140016059
mov eax, dword [rbp]
add eax, 0x14
mov ecx, eax
add rax, 0xf
cmp rax, rcx
ja 0x140015fb1
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14001f210
sub rsp, rax
lea rcx, [rbp + 0x18]
xor edx, edx
lea r12, [rsp + 0x40]
call sub.MFC42.dll_CRecordset::GetODBCFieldInfo
test rax, rax
je 0x140015fd8
mov r14d, dword [rax + 0xc]
jmp 0x140015fdb
mov r14d, ebx
xor edx, edx
lea rcx, [rbp + 0x18]
call sub.MFC42.dll_CRecordset::GetODBCFieldInfo
test rax, rax
je 0x140015ff2
mov esi, dword [rax + 0x10]
inc esi
jmp 0x140015ff4
mov esi, ebx
xor edx, edx
lea rcx, [rbp + 0x18]
call sub.MFC42.dll_CRecordset::GetODBCFieldInfo
test rax, rax
je 0x14001600d
mov ebx, dword [rax + 0x14]
add ebx, 0x76c
mov r9, qword [rbp + 8]
lea r8, str._s___Build:__2.2u_2.2u_2.2u
mov eax, 0x51eb851f
mov dword [rsp + 0x30], r14d
imul ebx
mov dword [rsp + 0x28], esi
mov rcx, r12
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x64
mov edx, dword [rbp]
add edx, 0x14
sub ebx, eax
mov dword [rsp + 0x20], ebx
call fcn.14000aa80
mov r8, r12
mov edx, 0x76
mov rcx, r13
call sub.MFC42.dll_CWnd::UpdateDialogControls
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, r15d
mov rcx, qword [rbp + 0x1c0]
xor rcx, rbp
call fcn.14001ea00
mov rbx, qword [rbp + 0x208]
mov rsi, qword [rbp + 0x210]
mov rdi, qword [rbp + 0x218]
lea rsp, [rbp + 0x1d0]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400175a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x1400380f0]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rax, qword [rcx]
and qword [rsp + 0x50], 0
mov rax, qword [rax + 0x188]
call qword [case.0x1400038d5.0]
mov r9d, 0xf003f
lea rdx, str.SOFTWAREMicrosoftShared_ToolsGrapheditFavorites
mov rdi, rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400176f4
lea rax, [rsp + 0x40]
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x38], rax
xor ebx, ebx
lea rax, [rsp + 0x60]
mov dword [rsp + 0x44], 0x100
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rbx
xor edx, edx
mov dword [rsp + 0x40], 0x80
jmp 0x1400176ca
lea rdx, str._device
lea rcx, [rbp - 0x20]
call qword [sym.imp.msvcrt.dll_strstr]
test rax, rax
jne 0x14001768d
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.1400052d4
lea r8, [rsp + 0x60]
mov rcx, rdi
lea rdx, [rbp - 0x20]
call fcn.140005218
test eax, eax
js 0x14001768d
dec ebx
inc ebx
mov dword [rsp + 0x44], 0x100
mov dword [rsp + 0x40], 0x80
cmp ebx, 0x28
jae 0x1400176e9
lea rax, [rsp + 0x40]
mov edx, ebx
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x44]
lea r8, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x140017654
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.14001ea00
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x140017800
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
and dword [rcx + 0x33c], 0
lea rbx, [rcx + 0x338]
and dword [rcx + 0x34c], 0
lea rdx, str.SOFTWAREMicrosoftShared_ToolsGraphedit
and dword [rbx], 0
mov eax, 1
mov dword [rcx + 0x348], eax
mov r9d, 0x20019
mov dword [rcx + 0x350], eax
xor r8d, r8d
mov dword [rcx + 0x354], eax
mov dword [rcx + 0x358], eax
lea rax, [rsp + 0x50]
mov dword [rcx + reloc.MFC42.dll_COleDateTime::operator], 0x1f4
mov dword [rcx + 0x344], CCtrlView::CCtrlView
mov dword [rcx + 0x35c], 3
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400178c8
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.Settings
mov dword [rsp + 0x40], 0x28
mov dword [rsp + 0x48], 3
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x30
pop rbx
ret
Function at 0x140017d1c
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x50
cmp dword [rcx + 0x358], 0
je 0x140017db5
lea rbx, [rcx + 0x338]
mov rcx, qword [rcx + 0x40]
mov rdx, rbx
call qword [sym.imp.USER32.dll_GetWindowRect]
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREMicrosoftShared_ToolsGraphedit
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140017db5
mov rcx, qword [rsp + 0x60]
lea r9d, [rax + 3]
mov dword [rsp + 0x28], 0x28
lea rdx, str.Settings
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x50
pop rbx
ret
Function at 0x140019adc
Capabilities:
Query or enumerate registry value

Disassembly:
test r8, r8
je 0x140019cba
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
mov rax, qword [0x1400380f0]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov rax, rdx
mov byte [r8], 0
mov rdi, r8
mov dword [rsp + 0x40], 0x50
mov rcx, rax
lea rdx, [rbp - 0x60]
mov r8d, 0x80
mov esi, r9d
call qword [sym.imp.ole32.dll_StringFromGUID2]
and qword [rsp + 0x38], 0
lea r8, [rbp - 0x60]
mov eax, dword [rsp + 0x40]
or r9d, 0xffffffff
and qword [rsp + 0x30], 0
xor edx, edx
mov dword [rsp + 0x28], eax
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea r9, [rsp + 0x50]
mov edx, 0x200
lea r8, str.CLSID_sHelpDir
lea rcx, [rbp + 0xa0]
call fcn.14000aa80
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0xa0]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140019be8
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
mov dword [rsp + 0x40], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140019c99
lea r9, [rsp + 0x50]
mov edx, 0x200
lea r8, str.CLSID_sInprocServer32
lea rcx, [rbp + 0xa0]
call fcn.14000aa80
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0xa0]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140019c96
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
mov dword [rsp + 0x40], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140019c96
mov rax, rdi
cmp byte [rdi], bl
je 0x140019c91
inc rax
cmp byte [rax], 0
jne 0x140019c6e
cmp rdi, rax
je 0x140019c91
lea rcx, [rax - 1]
cmp byte [rcx], 0x3a
je 0x140019c91
cmp byte [rcx], 0x5c
je 0x140019c91
mov rax, rcx
cmp rdi, rcx
jne 0x140019c7b
mov byte [rax], 0
jmp 0x140019c99
mov byte [rdi], 0
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.14001ea00
mov rbx, qword [rsp + 0x3d0]
add rsp, 0x3b0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001a780
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x90
mov rax, qword [0x1400380f0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
call sub.MFC42.dll_CToolBar::OnUpdateCmdUI
mov rcx, qword [rdi + 0x100]
mov r15d, 0x824
mov r9d, r15d
mov edx, 0x161
mov r8d, 6
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, qword [rdi + 0x100]
xor r9d, r9d
mov r8d, r15d
mov edx, 0x141
call qword [sym.imp.USER32.dll_SendMessageA]
and qword [rsp + 0x58], 0
lea rax, [rsp + 0x50]
and dword [rsp + 0x50], 0
lea rdx, str.SoftwareMicrosoftActiveMovieGraphEditURLPersistList
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 1
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x14001a84c
xor r8d, r8d
lea rcx, str.Failed_to_open_create_registry_key
xor edx, edx
call sub.MFC42.dll_Ordinal_1506
xor ebx, ebx
lea esi, [rbx + 0xa]
mov r8d, esi
lea rdx, [rsp + 0x70]
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__itoa]
lea r8, str.URL_s
mov rdx, rsi
mov r9, rax
lea rcx, [rsp + 0x60]
call fcn.14000aa80
movsxd rax, ebx
lea rdx, [rsp + 0x60]
imul rcx, rax, 0x824
lea rax, [rdi + reloc.MFC42.dll_CDumpContext::CDumpContext]
mov dword [rsp + 0x54], r15d
add rax, rcx
xor r9d, r9d
lea rcx, [rsp + 0x54]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001a8c1
inc ebx
cmp ebx, 6
jl 0x14001a851
mov rcx, qword [rsp + 0x58]
mov esi, ebx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rdi + 0x140], ebx
sub ebx, 1
js 0x14001a91d
movsxd rax, ebx
lea rsi, [rdi + reloc.MFC42.dll_CDumpContext::CDumpContext]
imul rcx, rax, 0x824
add rsi, rcx
mov eax, dword [rdi + 0x140]
mov r9, rsi
mov rcx, qword [rdi + 0x100]
sub eax, ebx
dec eax
mov edx, 0x14a
movsxd r8, eax
call qword [sym.imp.USER32.dll_SendMessageA]
sub rsi, r15
sub ebx, 1
jns 0x14001a8ed
mov esi, dword [rdi + 0x140]
lea rbx, [rdi + 0xc0]
test esi, esi
je 0x14001a947
lea eax, [rsi - 1]
mov rcx, rbx
movsxd rdx, eax
imul rax, rdx, 0x824
lea rdx, [rdi + reloc.MFC42.dll_CDumpContext::CDumpContext]
add rdx, rax
call sub.MFC42.dll_COleControlSite::CreateControl
mov rcx, rbx
call sub.MFC42.dll_CToolTipCtrl::UpdateTipText
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001ea00
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
Function at 0x14001a990
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x1400380f0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rcx
add rcx, 0xc0
mov r8d, dword [rdi + 0x150]
mov rdx, qword [rdi + 0x148]
call sub.MFC42.dll_CRuntimeClass::Load
mov r9, qword [rdi + 0x148]
or rax, 0xffffffffffffffff
inc rax
cmp byte [r9 + rax], 0
jne 0x14001a9e0
test rax, rax
je 0x14001abb7
mov rcx, qword [rdi + 0x100]
xor r8d, r8d
mov edx, 0x158
call qword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x14001abaf
and qword [rbp + 7], 0
lea rax, [rbp + 0xf]
and dword [rbp + 0xf], 0
lea rdx, str.SoftwareMicrosoftActiveMovieGraphEditURLPersistList
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea rax, [rbp + 7]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 2
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x14001aa73
lea rcx, str.Failed_to_open_create_registry_key
xor r8d, r8d
xor edx, edx
call sub.MFC42.dll_Ordinal_1506
jmp 0x14001abb7
mov eax, dword [rdi + 0x140]
mov esi, 5
cmp eax, 6
cmovne esi, eax
xor ebx, ebx
lea r12d, [rbx + 0xa]
test esi, esi
jle 0x14001ab24
mov r8d, r12d
lea rdx, [rbp + 0x27]
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__itoa]
lea r8, str.URL_s
mov rdx, r12
mov r9, rax
lea rcx, [rbp + 0x17]
call fcn.14000aa80
xor r8d, r8d
mov dword [rsp + 0x28], 0x824
cmp dword [rdi + 0x140], 6
lea rdx, [rbp + 0x17]
mov r9d, 1
jne 0x14001aaf3
lea eax, [rbx + 1]
movsxd rcx, eax
imul rax, rcx, 0x824
lea rcx, [rdi + reloc.MFC42.dll_CDumpContext::CDumpContext]
add rcx, rax
mov qword [rsp + 0x20], rcx
jmp 0x14001ab0c
movsxd rax, ebx
imul rcx, rax, 0x824
lea rax, [rdi + reloc.MFC42.dll_CDumpContext::CDumpContext]
add rax, rcx
mov qword [rsp + 0x20], rax
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14001ab92
inc ebx
cmp ebx, esi
jl 0x14001aa92
mov r8d, r12d
lea rdx, [rbp + 0x27]
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__itoa]
lea r8, str.URL_s
mov rdx, r12
mov r9, rax
lea rcx, [rbp + 0x17]
call fcn.14000aa80
mov eax, dword [rdi + 0x150]
lea rdx, [rbp + 0x17]
mov rcx, qword [rbp + 7]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rax, qword [rdi + 0x148]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp + 7]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14001abaf
lea rcx, str.Failed_to_write_to_a_registry_key
jmp 0x14001aa64
xor r8d, r8d
lea rcx, str.Failed_to_write_to_a_registry_key
xor edx, edx
call sub.MFC42.dll_Ordinal_1506
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001abb7
mov rcx, rdi
call sub.MFC42.dll_CMDIChildWnd::PreCreateWindow
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14001ea00
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret