joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4122e8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4122ff
mov eax, 0x80070057
jmp 0x4124a2
push ebx
push edi
push 3
mov dword [ebp + 0xc], esi
call fcn.0042c3e0
mov ebx, str.CoMcUpdateMgrCore::ResumeUpdate
pop ecx
test eax, eax
je 0x412336
lea eax, [ebp + 0xc]
push eax
push str.Restore_saved_update_for_pkgids:__s
push 0xfd
push ebx
push str.CoMcUpdateMgrCore.cpp
push 3
call fcn.00402fc0
mov esi, dword [ebp + 0xc]
add esp, 0x18
mov edi, dword [ebp + 8]
lea ecx, [ebp - 4]
push esi
mov dword [edi + 0x20], 1
mov byte [0x4f5508], 1
call fcn.00408f27
lea eax, [ebp + 0xc]
xor esi, esi
push eax
push 0x4b8570
lea eax, [ebp - 8]
mov dword [ebp + 0xc], esi
push eax
lea ecx, [ebp - 4]
call fcn.00417fae
jmp 0x4123a0
lea eax, [ebp - 8]
mov ecx, edi
push eax
call fcn.0041a111
lea eax, [ebp + 0xc]
push eax
push 0x4b8570
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 4]
call fcn.00417fae
push eax
lea ecx, [ebp - 8]
call fcn.0041329e
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0040a044
cmp dword [ebp + 0xc], 0xffffffff
jne 0x41236c
cmp dword [edi + 0xa4], esi
jne 0x4123de
push 4
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x4123d4
push 0x4b8574
push 0x10e
push ebx
push str.CoMcUpdateMgrCore.cpp
push 4
call fcn.00402c10
add esp, 0x14
mov esi, 0x80070057
jmp 0x412488
mov ebx, 0x4f53b4
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], edi
push eax
mov ecx, 0x4f53d0
call fcn.00413554
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ebx, [edi + 0x38]
push ebx
push esi
push edi
push 0x418291
push esi
push esi
call fcn.0044a8e6
add esp, 0x18
test eax, eax
jne 0x41244c
push 4
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x412445
push str.Failed_to_create_update_thread_
push 0x120
push str.CoMcUpdateMgrCore::ResumeUpdate
push str.CoMcUpdateMgrCore.cpp
push 4
call fcn.00402c10
add esp, 0x14
mov esi, 0x80004005
jmp 0x412488
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 3
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x412488
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push ebx
push str.Started_update_thread__ID_u__for_package__s
push 0x125
push str.CoMcUpdateMgrCore::ResumeUpdate
push str.CoMcUpdateMgrCore.cpp
push 3
call fcn.00402c40
add esp, 0x1c
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.0040a044
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.0040a044
pop edi
mov eax, esi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x416493
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4ef340]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x110
xor esi, esi
lea eax, [ebp - 0x124]
push esi
push eax
call fcn.0043f630
add esp, 0xc
mov dword [ebp - 0x128], 0x114
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 2
jne 0x41653c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x12c], esi
push ecx
push 0x20
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41653c
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push esi
push dword [ebp - 0x12c]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0043cfdf
mov esp, ebp
pop ebp
ret

Function at 0x4173fe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x4ac515
call fcn.0043d0c9
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x41747b
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x41747b
call fcn.00413e3a
mov esi, eax
jmp 0x417552
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41749e
call fcn.00413e3a
jmp 0x417545
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x417494
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4174ce
mov esi, 0x8007000e
jmp 0x417547
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00413bbb
jmp 0x4174f4
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x4174c7
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x417494
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004172c3
mov esi, eax
test edi, edi
je 0x417552
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x41756b
lea ecx, [ebp - 0x418]
call fcn.004149d1
mov eax, esi
call fcn.0043d016
ret 0x10
Function at 0x41e7bd
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x894
mov eax, dword [0x4ef340]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x894], esi
test esi, esi
je 0x41e9b1
xor eax, eax
cmp ax, word [esi]
je 0x41e9b1
test ebx, ebx
je 0x41e9b1
cmp dword [ebp + 0x10], eax
je 0x41e9b1
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0043f630
and dword [ebp - 0x62c], 0
xor eax, eax
mov dword [ebp - 0x63c], edi
lea edi, [ebp - 0x638]
stosd dword es:[edi], eax
push esi
push str._s___
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x628]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x61c]
push eax
call fcn.0041d13f
push 0x250
xor esi, esi
lea eax, [ebp - 0x88c]
push esi
push eax
call fcn.0043f630
add esp, 0x24
lea eax, [ebp - 0x88c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x890], edi
cmp edi, 0xffffffff
je 0x41e9a1
cmp dword [ebp - 0x88c], 0x10
jne 0x41e94f
xor eax, eax
cmp ax, word [ebp - 0x860]
je 0x41e94f
cmp ax, word [ebp - 0x20c]
jne 0x41e8e7
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x860]
push eax
call fcn.00421548
pop ecx
pop ecx
test eax, eax
je 0x41e94f
lea eax, [ebp - 0x860]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00443be1
add esp, 0xc
jmp 0x41e94f
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x860]
push eax
call fcn.00421548
pop ecx
pop ecx
test eax, eax
je 0x41e94f
mov ecx, esi
mov eax, dword [ebp + ecx*4 - 0x62c]
cmp eax, dword [ebp + ecx*4 - 0x63c]
jne 0x41e91a
inc ecx
cmp ecx, 4
jl 0x41e902
jmp 0x41e94f
jbe 0x41e94f
lea eax, [ebp - 0x860]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00443be1
lea esi, [ebp - 0x62c]
add esp, 0xc
lea edi, [ebp - 0x63c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x890]
xor esi, esi
lea eax, [ebp - 0x88c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41e888
cmp ax, word [ebp - 0x20c]
je 0x41e9a1
push dword [ebp - 0x894]
push dword [ebp + 0x10]
push ebx
call fcn.00443be1
push 0x4b4444
push dword [ebp + 0x10]
push ebx
call fcn.0044ae7c
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
push ebx
call fcn.0044ae7c
xor esi, esi
add esp, 0x24
inc esi
test edi, edi
je 0x41e9ac
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
jmp 0x41e9b3
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043cfdf
mov esp, ebp
pop ebp
ret
Function at 0x41ea20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4ef340]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x230]
push edi
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMcAfeeSystemCoremfehidin_install_references_system_core_version
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x228], eax
test eax, eax
jne 0x41eb1f
mov edi, 0x208
lea eax, [ebp - 0x20c]
push edi
push ebx
push eax
call fcn.0043f630
add esp, 0xc
mov dword [ebp - 0x22c], edi
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x234]
push eax
push ebx
push str.INSTALLREFERENCE.WSS4.0_AVDRIVER
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x228], eax
test eax, eax
jne 0x41eb00
push dword [ebp - 0x22c]
mov word [ebp - 0x224], ax
lea ecx, [ebp - 0x224]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 7
push eax
mov dword [ebp - 0x214], ebx
call fcn.00403c60
lea eax, [ebp - 0x224]
mov ecx, esi
push eax
call fcn.0043c2af
push ebx
push 1
lea ecx, [ebp - 0x224]
call fcn.00403ea0
jmp 0x41eb65
push 4
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x41eb50
lea eax, [ebp - 0x228]
push eax
push str.Failed_to_query_registry_value__using_default_value._Error:__d
push 0xc1
jmp 0x41eb3c
push 4
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x41eb50
lea eax, [ebp - 0x228]
push eax
push str.Failed_to_open_registry_value__using_default_value._Error:__d
push 0xc6
push str.GetRegistryValue
push str.McUpdateMgr.cpp
push 4
call fcn.00402fc0
add esp, 0x18
mov edi, str.C:Program_FilesCommon_FilesMcAfeeVSCore_4_0mfehidin.exe
push edi
call fcn.00443c45
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00403c60
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043cfdf
mov esp, ebp
pop ebp
ret
Function at 0x41f44a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x238
mov eax, 0x4ac966
call fcn.0043d05b
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x228]
push eax
push 0x4c6f90
call dword [sym.imp.ole32.dll_CoGetPSClsid]
test eax, eax
jne 0x41f5fa
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], ebx
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jne 0x41f5fa
call fcn.004041d0
push eax
lea ecx, [ebp - 0x230]
call fcn.00408efe
push dword [ebp - 0x22c]
lea eax, [ebp - 0x230]
mov dword [ebp - 4], ebx
push str.CLSID_sInProcServer32
push eax
call fcn.004092d4
add esp, 0xc
push dword [ebp - 0x22c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
mov esi, dword [ebp - 0x230]
lea ecx, [ebp - 0x23c]
push 0x20019
push esi
push 0x80000000
mov byte [ebp - 4], 1
call fcn.00416a89
test eax, eax
jne 0x41f5e7
mov edi, 0x208
lea eax, [ebp - 0x218]
push edi
push ebx
push eax
call fcn.0043f630
add esp, 0xc
mov dword [ebp - 0x244], ebx
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], edi
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x244]
push eax
push ebx
push ebx
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41f5e7
push 1
call fcn.0042c3e0
mov edi, str.IsAPIcorePSRegistered
pop ecx
test eax, eax
je 0x41f591
lea eax, [ebp - 0x218]
push eax
push str.Found_APIcore_PS_file_path:__s
push 0x18e
push edi
push str.McUpdateMgr.cpp
push 1
call fcn.004128f2
add esp, 0x18
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004090aa
pop ecx
pop ecx
test eax, eax
jne 0x41f5e7
push 1
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x41f5ca
push str.APIcore_PS_already_registered
push 0x191
push edi
push str.McUpdateMgr.cpp
push 1
call fcn.00402c10
add esp, 0x14
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x23c]
call fcn.00414295
lea ecx, [esi - 0x10]
call fcn.0040a044
mov al, 1
jmp 0x41f602
lea ecx, [ebp - 0x23c]
call fcn.00414295
lea ecx, [esi - 0x10]
call fcn.0040a044
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
call fcn.0043d005
ret
Function at 0x41fa35
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x31c
mov eax, 0x4ac999
call fcn.0043d0c9
mov ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push 0x208
xor esi, esi
mov dword [ebp - 0x328], ebx
push esi
push eax
call fcn.0043f630
add esp, 0xc
test edi, edi
je 0x41fa9e
cmp word [edi], si
je 0x41fa9e
push edi
mov edi, 0x104
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.00443be1
lea eax, [ebp - 0x21c]
push eax
call fcn.00443c45
add esp, 0x10
cmp word [ebp + eax*2 - 0x21e], 0x5c
je 0x41faef
jmp 0x41fada
mov edi, 0x104
lea eax, [ebp - 0x21c]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x41fac1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41fbcf
lea eax, [ebp - 0x21c]
push 0x5c
push eax
call fcn.0043f8bb
pop ecx
pop ecx
test eax, eax
je 0x41faef
xor ecx, ecx
mov word [eax], cx
push 0x4b4444
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.0044ae7c
add esp, 0xc
push dword [ebx]
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.0044ae7c
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41fb1b
push 2
pop eax
jmp 0x41fbcf
lea edi, [ebx + 4]
push edi
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x41fb3c
cmp dword [edi], esi
je 0x41fb3c
xor eax, eax
jmp 0x41fbcf
lea eax, [ebp - 0x31c]
mov dword [ebp - 4], esi
mov dword [ebp - 0x320], eax
lea ecx, [ebp - 0x320]
lea eax, [ebp - 0x21c]
push eax
call fcn.0041ed15
push dword [ebp - 0x320]
mov byte [ebp - 4], 1
call fcn.0043242a
mov edi, eax
lea eax, [ebp - 0x31c]
pop ecx
cmp dword [ebp - 0x320], eax
je 0x41fba9
push dword [ebp - 0x320]
call fcn.00443bd1
pop ecx
jmp 0x41fba9
test edi, edi
je 0x41fbb1
mov eax, edi
jmp 0x41fbcf
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 4], eax
test eax, eax
jne 0x41fbcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
call fcn.0043d016
ret 4
Function at 0x41fbd7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x4ef340]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 8
pop ecx
push 8
mov esi, str.CommonFiles_Dir
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, str.McAfeePlatform
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
push 0x410
lea eax, [ebp - 0x458]
movsw word es:[edi], word [esi]
xor esi, esi
push esi
push eax
call fcn.0043f630
add esp, 0xc
mov dword [ebp - 0x45c], esi
test ebx, ebx
je 0x41fd6c
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x41fd6c
push 0x10
lea eax, [ebp - 0x460]
mov dword [ebp - 0x460], 0x410
push eax
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x24]
push eax
push str.SOFTWAREMcAfeePlatform
push 0x80000002
call fcn.00409d65
add esp, 0x1c
test eax, eax
jne 0x41fc91
cmp dword [ebp - 0x45c], 1
jne 0x41fc91
lea eax, [ebp - 0x458]
push eax
call fcn.00443c45
pop ecx
test eax, eax
jne 0x41fccc
xor eax, eax
mov word [ebp - 0x458], ax
lea eax, [ebp - 0x458]
push eax
push esi
push esi
push 0x2b
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x41fd60
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x458]
push 0x208
push eax
call fcn.0044ae7c
add esp, 0xc
lea eax, [ebp - 0x458]
push eax
call fcn.00443c45
pop ecx
push 0x5c
pop esi
lea ecx, [ebp + eax*2 - 0x45a]
mov eax, dword [ebp + 0x10]
movzx edx, word [ecx]
cmp si, dx
je 0x41fd18
test eax, eax
je 0x41fd13
push 0x4b4444
lea eax, [ebp - 0x458]
push 0x208
push eax
call fcn.0044ae7c
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x41fd6f
jmp 0x41fd1f
cmp si, dx
jne 0x41fd1f
test eax, eax
jne 0x41fd1f
mov word [ecx], ax
push 0x22
pop ecx
cmp cx, word [ebp - 0x458]
lea edx, [ebp - 0x458]
lea eax, [ebp - 0x456]
cmovne eax, edx
push eax
push edi
push ebx
call fcn.00443be1
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x41fd6f
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x41fd6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x41fd6f
xor eax, eax
mov esi, 0xe8
mov word [ebx], ax
jmp 0x41fd6f
push 0x57
pop esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043cfdf
mov esp, ebp
pop ebp
ret
Function at 0x41fd82
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4ef340]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
test edi, edi
je 0x41fda8
mov dword [edi], ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41feb4
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov esi, ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x41fdf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41fe88
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x41fe88
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push esi
push 2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x41fe88
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x41fe88
mov dword [ebp - 0x1c], ebx
cmp dword [esi], ebx
jbe 0x41fe88
lea ecx, [esi + 4]
mov dword [ebp - 0x20], ecx
push dword [ecx]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
mov eax, dword [ebp - 0x1c]
jne 0x41fe72
mov ecx, dword [ebp - 0x20]
inc eax
add ecx, 8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
cmp eax, dword [esi]
jb 0x41fe4d
jmp 0x41fe88
test byte [esi + eax*8 + 8], 4
je 0x41fe7e
xor ebx, ebx
inc ebx
jmp 0x41fe88
test edi, edi
je 0x41fe88
mov dword [edi], 1
cmp dword [ebp - 0x18], 0
je 0x41fe97
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test esi, esi
je 0x41fea2
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x10], 0
pop esi
je 0x41feb2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043cfdf
mov esp, ebp
pop ebp
ret
Function at 0x420e7c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0xf8
mov esi, ecx
call fcn.0043cf9e
mov dword [ebp - 4], eax
pop ecx
test eax, eax
je 0x420ea0
mov ecx, eax
call fcn.0041d277
jmp 0x420ea2
xor eax, eax
mov ecx, eax
mov dword [esi + 0x44], eax
call fcn.0041f134
mov eax, dword [esi + 0x44]
mov eax, dword [eax + 0xe0]
test eax, eax
je 0x420f69
lea edi, [esi + 0x54]
push edi
lea ebx, [esi + 0x50]
lea ecx, [esi + 0x4c]
push ebx
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x420f69
push 3
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x420f17
cmp dword [edi], 0
mov eax, 0x4c0e30
push ebx
cmovne eax, dword [edi]
mov dword [ebp - 4], eax
lea eax, [esi + 0x4c]
push eax
lea eax, [ebp - 4]
push eax
push str.McBeginCSMonitor_returned___s__with_events__d_and__d
push 0x370
push str.CMcUpdateMgrModule::StartCSMonitor
push str.McUpdateMgr.cpp
push 3
call fcn.004129e6
add esp, 0x20
xor eax, eax
push eax
push eax
push esi
push 0x41e0af
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x48], eax
test eax, eax
jne 0x420f93
push 4
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x420f93
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push str.Failed_to_create_CS_monitor_thread__Error:__d
push 0x37c
push str.CMcUpdateMgrModule::StartCSMonitor
push str.McUpdateMgr.cpp
push 4
call fcn.00402fc0
add esp, 0x18
jmp 0x420f93
push 3
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x420f93
push str.McBeginCSMonitor_failed
push 0x381
push str.CMcUpdateMgrModule::StartCSMonitor
push str.McUpdateMgr.cpp
push 3
call fcn.00402c10
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x420f9a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
je 0x420fde
push edi
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x41fec4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x420fdb
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421471
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 0x18]
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0041e2a3
add esp, 0xc
test al, al
je 0x421524
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x42149b
mov eax, dword [eax]
push ebx
push esi
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 3
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov dword [ebp - 8], eax
mov esi, str.WriteRegistryValue
mov edi, str.McUpdateMgr.cpp
sete bl
test bl, bl
jne 0x4214ee
push 4
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x4214ee
lea eax, [ebp - 8]
push eax
push str.Failed_to_set_registry_value._Error:__d
push 0x9e
push esi
push edi
push 4
call fcn.00402fc0
add esp, 0x18
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x42151d
push 2
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x42151d
push str.Failed_to_close_registry_key
push 0xa3
push esi
push edi
push 2
call fcn.00402c10
add esp, 0x14
pop edi
pop esi
mov al, bl
pop ebx
jmp 0x421526
xor al, al
mov esp, ebp
pop ebp
ret