joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eb40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42a188
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 4]
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 0x74]
lea ecx, [esp + 4]
push eax
push 0x435020
push ecx
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 8]
push 0x4350a0
call fcn.004284f2
lea edx, [esp + 4]
lea eax, [esp + 8]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x34], 2
call fcn.00408300
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
cmp dword [esp + 0x14], 7
je 0x40ec00
lea ecx, [esp + 4]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00428744
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_atoi]
push edi
xor edi, edi
test edi, edi
jne 0x40ec35
mov ecx, dword [esp + 0x18]
push edi
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esi + 0x218]
push eax
add edx, 0x1c
push 0x435020
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x40ed3c
cmp edi, 1
jne 0x40ec5c
mov eax, dword [esp + 0x18]
push 0
lea ecx, [eax + 4]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call ebp
mov ecx, dword [esi + 0x218]
add esp, 4
mov dword [ecx + 0x18], eax
jmp 0x40ed3c
cmp edi, 2
jne 0x40ec8c
mov edx, dword [esp + 0x18]
push 0
lea ecx, [edx + 8]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esi + 0x218]
add eax, 0x28
push 0x435020
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x40ed3c
cmp edi, 3
jne 0x40ecbc
mov ecx, dword [esp + 0x18]
push 0
add ecx, 0xc
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esi + 0x218]
push eax
add edx, 0x2c
push 0x435020
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x40ed3c
cmp edi, 4
jne 0x40ece9
mov eax, dword [esp + 0x18]
push 0
lea ecx, [eax + 0x10]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esi + 0x218]
push eax
add ecx, 0x34
push 0x435020
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x40ed3c
cmp edi, 5
jne 0x40ed16
mov edx, dword [esp + 0x18]
push 0
lea ecx, [edx + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esi + 0x218]
add eax, 0x3c
push 0x435020
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x40ed3c
cmp edi, 6
jne 0x40ed3c
mov ecx, dword [esp + 0x18]
push 0
add ecx, 0x18
call sub.MFC42.DLL_CString::GetBuffer
push eax
call ebp
mov edx, dword [esi + 0x218]
add esp, 4
mov word [edx + 0x80], ax
inc edi
cmp edi, 7
jl 0x40ec0a
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.00428744
mov ecx, dword [esp + 0x28]
pop edi
pop ebp
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x410fd0
Capabilities:
Get file version info

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42a425
push eax
mov eax, 0x1410
mov dword fs:[0], esp
call fcn.00428a90
push ebx
push esi
push edi
xor ebx, ebx
push 0x440b68
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebx
call fcn.004284f2
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x1424], 1
stosb byte es:[edi], al
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
lea ecx, [esp + 0x1c]
push 0x400
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x41c]
lea eax, [esp + 0x1c]
push edx
push 0x1000
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x41107a
mov esi, dword [esp + 0x142c]
push 0x440b68
mov ecx, esi
call fcn.004284f2
mov dword [esp + 0x10], 1
jmp 0x411102
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x424]
push 0x435084
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4110e7
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 8]
mov si, word [edx + 8]
mov ecx, dword [edx + 0xc]
mov dx, word [edx + 0xc]
shr ecx, 0x10
and edx, 0xffff
and ecx, 0xffff
shr eax, 0x10
push edx
and esi, 0xffff
push ecx
and eax, 0xffff
push esi
push eax
lea ecx, [esp + 0x1c]
push str._d._d._d._d
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x18
mov esi, dword [esp + 0x142c]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x1424], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x141c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x141c
ret 4
Function at 0x4115a0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x42a468
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
xor ebx, ebx
mov dword [esi], ebx
mov ecx, dword [eax - 8]
cmp ecx, ebx
mov dword [esp + 0x7c], ebx
jne 0x411606
lea ecx, [esp + 0x84]
mov dword [esi], 3
mov dword [esp + 0x7c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
add esp, 0x78
ret 8
lea ecx, [esp + 0x88]
lea edx, [esp + 0xc]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
push edx
mov dword [esp + 0xb4], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 1
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x411680
push ebx
push ebx
push str.CXSyncExeApp::CreateDirectory_GrantAccess___:_Fail_to_get_Everyone_SID___
call sub.MFC42.DLL_AfxMessageBox_1
lea ecx, [esp + 0x84]
mov dword [esp + 0x7c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
add esp, 0x78
ret 8
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x8c]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x3c]
push ebx
push edx
push 1
mov dword [esp + 0x48], 0x10000000
mov dword [esp + 0x4c], 2
mov dword [esp + 0x50], 3
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], 5
mov dword [esp + 0x64], eax
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
lea eax, [esp + 0x24]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov ecx, dword [esp + 0xc]
push ebx
push ecx
lea edx, [esp + 0x2c]
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea ecx, [esp + 0x18]
lea eax, [esp + 0x24]
push ecx
push ebx
lea ecx, [esp + 0x90]
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
pop edi
jne 0x41172e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, dword [esp + 0x88]
cmp eax, ebx
je 0x411740
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x41174f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esi]
xor edx, edx
cmp eax, ebx
lea ecx, [esp + 0x84]
sete dl
mov esi, edx
mov dword [esp + 0x7c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x74]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret 8
Function at 0x411f00
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42a518
push eax
mov dword fs:[0], esp
sub esp, 0x3c
xor eax, eax
push ebx
mov ebx, dword [esp + 0x50]
push esi
mov esi, ecx
push edi
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x411f61
mov esi, dword [esi + 0xd0]
test esi, esi
je 0x411f49
push str.CXSyncExeApp::StartExeByShellExecute__File_path_is_empty._So_return.
push 1
push esi
call fcn.00407c90
add esp, 0xc
pop edi
pop esi
or ax, 0xffff
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret 8
mov eax, dword [esi + 0xd0]
push ebp
mov ebp, dword [esp + 0x60]
test eax, eax
je 0x411f82
push ebp
push ebx
push str.CXSyncExeApp::StartExeByShellExecute__pProgramFilePath_s__pProgramArgument_s
push 1
push eax
call fcn.00407c90
add esp, 0x14
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
xor edi, edi
push eax
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], str.runas
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp eax, edi
pop ebp
jne 0x41204b
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x50], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [esp + 0x58]
push edi
push str.Cant_Execute_Version_Management_Program__ErrCode___d
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x64]
add esp, 0xc
push 0
push 0
push edx
call sub.MFC42.DLL_AfxMessageBox_1
mov esi, dword [esi + 0xd0]
test esi, esi
je 0x412022
push edi
push str.CXSyncExeApp::StartExeByShellExecute__Cant_Execute_Version_Management_Program__ErrCode___d
push 4
push esi
call fcn.00407c90
add esp, 0x10
lea ecx, [esp + 0x58]
mov dword [esp + 0x50], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
or ax, 0xffff
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret 8
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esi + 0xd0]
cmp esi, edi
je 0x412070
push str.CXSyncExeApp::StartExeByShellExecute__Success.
push 1
push esi
call fcn.00407c90
add esp, 0xc
mov ecx, dword [esp + 0x48]
pop edi
pop esi
xor ax, ax
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret 8
Function at 0x412090
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42a53b
push eax
mov edx, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x25c
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4120e5
mov esi, dword [esi + 0xd0]
test esi, esi
je 0x4120dc
push str.CXSyncExeApp::StartExeByCreateProcess__File_path_is_empty._So_return.
push 1
push esi
call fcn.00407c90
add esp, 0xc
or ax, 0xffff
jmp 0x412282
mov eax, dword [esi + 0xd0]
mov ebx, dword [esp + 0x280]
push ebp
mov ebp, dword [esp + 0x280]
test eax, eax
je 0x412111
push ebx
push ebp
push edx
push str.CXSyncExeApp::StartExeByCreateProcess__pProgramFilePath_s__pProgramArgument_s__pWndTitle_s
push 1
push eax
call fcn.00407c90
add esp, 0x18
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x69]
mov byte [esp + 0x68], 0
rep stosd dword es:[edi], eax
mov ecx, 0x11
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], eax
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x278], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [esp + 0x30], ebx
or ebx, 0xffffffff
mov edi, ebp
mov ecx, ebx
xor eax, eax
mov dword [esp + 0x50], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov word [esp + 0x54], 5
jne 0x4121a5
mov edx, dword [esp + 0x27c]
lea eax, [esp + 0x68]
push edx
push 0x435020
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
jmp 0x4121c1
mov ecx, dword [esp + 0x27c]
push ebp
push ecx
lea edx, [esp + 0x70]
push 0x438018
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov eax, dword [esi + 0xd0]
pop ebp
test eax, eax
je 0x4121e1
lea ecx, [esp + 0x64]
push ecx
push str.CXSyncExeApp::StartExeByCreateProcess__pCmdPath_s
push 1
push eax
call fcn.00407c90
add esp, 0x10
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push 0
push 0x30
push 0
push 0
lea ecx, [esp + 0x80]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x412241
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0xd0]
test esi, esi
je 0x41222c
push eax
push str.CXSyncExeApp::StartExeByCreateProcess__Cant_Execute_Version_Management_Program__ErrCode___d
push 4
push esi
call fcn.00407c90
add esp, 0x10
lea ecx, [esp + 0xc]
mov dword [esp + 0x270], ebx
call sub.MFC42.DLL_CString::CString
mov ax, bx
jmp 0x412282
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0x14]
push eax
call edi
mov esi, dword [esi + 0xd0]
test esi, esi
je 0x41226f
push str.CXSyncExeApp::StartExeByCreateProcess__Success.
push 1
push esi
call fcn.00407c90
add esp, 0xc
lea ecx, [esp + 0xc]
mov dword [esp + 0x270], ebx
call sub.MFC42.DLL_CString::CString
xor ax, ax
mov ecx, dword [esp + 0x268]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x268
ret 0xc
Function at 0x413070
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4130d2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x419580
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x42acc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push edi
mov edi, ecx
push 0x440b68
lea ecx, [edi + 0x37c]
call fcn.00405af0
push 0x43c688
mov ecx, edi
call fcn.004198e0
mov eax, dword [edi + 0x94]
mov ebp, dword [eax + 0xdc]
test ebp, ebp
je 0x4196c7
push ebx
push esi
mov eax, ebp
mov ebp, dword [ebp]
mov eax, dword [eax + 8]
cmp dword [eax + 0x1c], 4
jne 0x4196aa
lea esi, [eax + 0x14]
push 0
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [edi + 0x94]
push eax
push str.CXSyncExeDlg::HandleDeleteTypeFiles__Delete_Local_Flle___s
push 2
mov edx, dword [ecx + 0xd0]
push edx
call fcn.00407c90
mov eax, dword [esi]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4196aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [edi + 0x94]
push str.CXSyncExeDlg::HandleDeleteTypeFiles__DeleteFile__s__Error__ErrCode___d
push 2
mov ecx, dword [eax + 0xd0]
push ecx
call fcn.00407c90
mov eax, dword [edi + 0x94]
add esp, 0x14
lea edx, [esp + 0x10]
mov ecx, dword [eax + 0xd0]
push edx
call fcn.00407370
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], 0
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x419699
mov ecx, dword [esi]
push eax
lea ebx, [edi + 0x9c]
push ecx
push 0x43c5e8
push ebx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, ebx
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 1
mov ecx, edi
call fcn.00414bb0
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
test ebp, ebp
jne 0x4195cc
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 0xc]
pop edi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41a5c0
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, ecx
mov edx, dword [esp + 0x10]
lea eax, [esp + 4]
push edi
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x41a635
mov ecx, dword [esi + 0x94]
push eax
push str.CXSyncExeDlg::WritreRegisterDWORD__RegCreateKeyEx___Fail__RetVal___d
push 1
mov edx, dword [ecx + 0xd0]
push edx
call fcn.00407c90
mov ecx, dword [esi + 0x94]
add esp, 0x10
lea eax, [esp + 0x10]
mov ecx, dword [ecx + 0xd0]
push eax
call fcn.00407370
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 0x10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push 4
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
je 0x41a6a8
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x94]
push edi
push str.CXSyncExeDlg::WritreRegisterDWORD__RegSetValueEx___Fail__RetVal___d
push 1
mov ecx, dword [eax + 0xd0]
push ecx
call fcn.00407c90
mov eax, dword [esi + 0x94]
add esp, 0x10
lea edx, [esp + 0x10]
mov ecx, dword [eax + 0xd0]
push edx
call fcn.00407370
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
pop edi
mov eax, 0xfffffffe
pop esi
pop ecx
ret 0x10
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
pop ecx
ret 0x10
Function at 0x41a6c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x10]
lea eax, [esp + 4]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push 0
push 0x20019
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x41a73b
mov ecx, dword [esi + 0x94]
push eax
push str.CXSyncExeDlg::ReadRegisterDWORD__RegCreateKeyEx___Fail__RetVal___d
push 1
mov edx, dword [ecx + 0xd0]
push edx
call fcn.00407c90
mov ecx, dword [esi + 0x94]
add esp, 0x10
lea eax, [esp + 0x18]
mov ecx, dword [ecx + 0xd0]
push eax
call fcn.00407370
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 8
ret 0x14
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push edx
push ebx
push 0
push 0
push eax
push ecx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
je 0x41a7c2
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push eax
mov dword [ebx], edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esi + 0x94]
push edi
push str.CXSyncExeDlg::ReadRegisterDWORD__RegQueryValueEx___Fail__RetVal___d
push 1
mov edx, dword [ecx + 0xd0]
push edx
call fcn.00407c90
mov ecx, dword [esi + 0x94]
add esp, 0x10
lea eax, [esp + 0x18]
mov ecx, dword [ecx + 0xd0]
push eax
call fcn.00407370
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
add esp, 8
ret 0x14
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x14
Function at 0x41b030
Capabilities:
Delete file

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, ecx
push 0x440b68
mov dword [esp + 0xc], 1
lea ecx, [edi + 0x37c]
call fcn.00405af0
push 0x43d6c8
mov ecx, edi
call fcn.004198e0
mov eax, dword [edi + 0x94]
mov ebx, dword [eax + 0xdc]
test ebx, ebx
je 0x41b13c
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
mov eax, ebx
mov ebx, dword [ebx]
mov esi, dword [eax + 8]
cmp dword [esi + 0x1c], 6
jne 0x41b129
mov eax, dword [esi + 0x30]
test eax, eax
je 0x41b129
push esi
mov ecx, edi
call fcn.0041b150
test eax, eax
jge 0x41b129
add esi, 0x14
push 0
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [edi + 0x94]
push eax
push str.CSyncEngine::HandleRegistryTypeFiles__Delete_Local_Flle___s
push 3
mov edx, dword [ecx + 0xd0]
push edx
call fcn.00407c90
mov eax, dword [esi]
add esp, 0x10
push eax
call ebp
test eax, eax
jne 0x41b121
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [edi + 0x94]
push str.CSyncEngine::HandleRegistryTypeFiles__DeleteFile__s__Error__ErrCode___d
push 4
mov ecx, dword [eax + 0xd0]
push ecx
call fcn.00407c90
mov eax, dword [edi + 0x94]
add esp, 0x14
lea edx, [esp + 0x14]
mov ecx, dword [eax + 0xd0]
push edx
call fcn.00407370
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x10], 0
test ebx, ebx
jne 0x41b077
mov eax, dword [esp + 0x10]
pop esi
cmp eax, 1
pop ebp
jne 0x41b144
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
pop edi
or eax, 0xffffffff
pop ebx
add esp, 8
ret
Function at 0x41b150
Capabilities:
Access peb ldr_data
Create process on windows
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42ae90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x2c]
push 0
mov dword [esp + 0x28], 0
lea esi, [eax + 0x14]
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x10]
push str._s__s
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, esi
push 0
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [ebp + 0x94]
push eax
push str.CSyncEngine::ProcessRegistryFile__Cmd_Str_:_regedit__s__s
push 1
mov eax, dword [edx + 0xd0]
push eax
call fcn.00407c90
add esp, 0x10
mov ecx, esi
push 0x5c
call sub.MFC42.DLL_CString::ReverseFind
mov edi, eax
lea ecx, [esp + 0x10]
push edi
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::Left
inc edi
lea edx, [esp + 0x14]
push edi
push edx
mov ecx, esi
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::Mid
push 0x435084
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 2
call fcn.004284f2
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov edx, dword [esp + 0xc]
push 0
push eax
push edx
push str.regedit
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x2c]
mov edi, eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString
cmp edi, 0x20
push 0
mov ecx, esi
jle 0x41b2c0
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [ebp + 0x94]
push str.CSyncEngine::ProcessRegistryFile___s_Success_To_Regist_File.
push 1
mov ecx, dword [eax + 0xd0]
push ecx
call fcn.00407c90
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [ebp + 0x94]
push eax
push str.CSyncEngine::ProcessRegistryFile___s_Fail_To_Regist_File..
push 1
mov eax, dword [edx + 0xd0]
push eax
call fcn.00407c90
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 4