joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420e85
Capabilities:
Encode data using xor
Get file size
Hash data with crc32
Read file on windows

Disassembly:
push 0x414
mov eax, 0x5af705
call fcn.00499ab7
call fcn.004840f7
push dword [eax + 8]
lea eax, [ebp - 0x20]
push eax
call fcn.0041d525
pop ecx
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call fcn.004840f7
push dword [eax + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.0041d525
mov eax, dword [eax]
pop ecx
pop ecx
push esi
push 0x80
push 4
push esi
push 7
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov edi, eax
call fcn.00407130
cmp edi, esi
je 0x420f86
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, esi
je 0x420f86
push ebx
call fcn.0047b302
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x420f86
push esi
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
push edi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp - 0x14]
cmp edi, ebx
jne 0x420f7d
mov edx, dword [ebp - 0x18]
xor eax, eax
push 8
mov ecx, eax
pop ebx
test cl, 1
je 0x420f41
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x420f43
shr ecx, 1
dec ebx
jne 0x420f32
mov dword [ebp + eax*4 - 0x420], ecx
inc eax
cmp eax, 0x100
jl 0x420f2d
or eax, 0xffffffff
cmp dword [ebp - 0x14], esi
je 0x420f78
movzx ecx, byte [edx]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ebp + ecx*4 - 0x420]
dec edi
inc edx
cmp edi, esi
jne 0x420f5d
not eax
mov dword [ebp - 0x10], eax
push dword [ebp - 0x18]
call fcn.0047b2f7
pop ecx
mov ecx, dword [ebp - 0x20]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00407130
push 1
push dword [ebp - 0x10]
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.Color_Theme
call fcn.00408c50
push str.SoftwareCrystalIdea_SoftwareUninstall_Tool
push SysReAllocString
call fcn.0042035f
add esp, 0x14
call fcn.00499b8f
ret
Function at 0x421f98
Capabilities:
Set registry value

Disassembly:
push 0x10
mov eax, 0x5af91f
call fcn.00499ab7
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
call fcn.00421749
test eax, eax
je 0x421fc2
mov ecx, esi
call fcn.00421791
test eax, eax
jne 0x421fcb
cmp dword [ebp + 8], ebx
je 0x422116
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00421b45
lea eax, [ebp - 0x10]
push eax
push 2
push ebx
push str.SoftwareCrystalIdea_SoftwareUninstall_ToolCache
mov edi, SysReAllocString
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub eax, ebx
je 0x42201d
dec eax
dec eax
jne 0x42210b
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 6
push ebx
push ebx
push ebx
push str.SoftwareCrystalIdea_SoftwareUninstall_ToolCache
push edi
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00421dd2
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
je 0x42203a
mov ecx, esi
call fcn.00421642
test eax, eax
je 0x422049
mov ecx, esi
call fcn.00421791
mov byte [ebp + 0xb], 1
test eax, eax
jne 0x42204c
mov byte [ebp + 0xb], bl
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00407130
cmp byte [ebp + 0xb], bl
je 0x42206d
push 0x5caf38
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x42208f
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.00421dd2
push dword [eax]
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00407130
mov ecx, esi
call fcn.00421749
test eax, eax
je 0x4220b7
mov ecx, esi
call fcn.004216eb
or eax, edx
jne 0x4220b7
mov dword [esi + 0x418], 1
mov dword [esi + 0x41c], ebx
jmp 0x4220ca
mov ecx, esi
call fcn.004216eb
mov dword [esi + 0x418], eax
mov dword [esi + 0x41c], edx
push dword [esi + 0x498]
add esi, 0x210
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x418
push edi
push 3
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x422108
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 1
jmp 0x42210b
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00407130
mov eax, dword [ebp - 0x14]
call fcn.00499b8f
ret 4
Function at 0x42276f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x5afa58
call fcn.00499ab7
mov esi, ecx
lea eax, [ebp - 0x14]
push eax
xor ebx, ebx
call fcn.00421b45
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
push str.SoftwareCrystalIdea_SoftwareUninstall_ToolCache
push SysReAllocString
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x422816
lea eax, [ebp - 0x18]
push eax
lea edi, [esi + 8]
push edi
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x418
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42280d
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push edi
call fcn.00408c50
mov ecx, esi
call fcn.00421e25
push dword [esi + 0x41c]
mov ecx, esi
push dword [esi + 0x418]
call fcn.00421718
lea eax, [esi + 0x210]
push eax
lea ecx, [esi + 0x498]
call fcn.00408bd0
inc ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00407130
mov eax, ebx
call fcn.00499b8f
ret

Function at 0x427f5a
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x427fb2
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push 0
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
movzx eax, byte [ebp + 8]
neg eax
push 0
sbb eax, eax
push 0
and eax, 2
push 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
xor eax, eax
leave
ret

Function at 0x427fb6
Capabilities:
Terminate process

Disassembly:
push edi
push dword [esp + 8]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x42800f
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x32
push edi
call esi
mov ebx, 0x102
jmp 0x428002
mov eax, dword [0x63fa58]
test eax, eax
je 0x427ffd
push 0
push eax
call esi
test eax, eax
jne 0x427ffd
push 1
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x32
push edi
call esi
cmp eax, ebx
je 0x427fe2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
pop edi
ret
Function at 0x42816a
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x1c4]
sub esp, 0x244
mov eax, dword [0x62ece4]
xor eax, ebp
mov dword [ebp + 0x1c0], eax
push ebx
push esi
push edi
lea esi, [ebp + 0x1cc]
lea edi, [ebp - 0x7c]
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 esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x32
push dword [ebp - 0x7c]
call esi
xor ebx, ebx
mov edi, 0x102
jmp 0x4281ce
mov eax, dword [0x63fa58]
cmp eax, ebx
je 0x4281c7
push ebx
push eax
call esi
test eax, eax
jne 0x4281c7
push 1
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x32
push dword [ebp - 0x7c]
call esi
cmp eax, edi
je 0x4281ab
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x6c], 0x22c
mov esi, str.UninstallModule::WaitForProcess
cmp byte [0x643648], bl
je 0x42820e
mov eax, dword [0x643644]
cmp eax, ebx
je 0x42820e
push str.Searching_Child_Processes
push 0x96
push esi
push ebx
push eax
call fcn.00402740
add esp, 0x14
lea eax, [ebp - 0x6c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4282ed
jmp 0x4282db
cmp dword [ebp + 0x1dc], ebx
je 0x428267
push ecx
lea eax, [ebp - 0x48]
mov ecx, esp
mov dword [ebp - 0x80], esp
push eax
call fcn.00408c50
call fcn.004280f9
pop ecx
cmp eax, ebx
je 0x428267
cmp byte [0x643648], bl
je 0x4282a6
mov eax, dword [0x643644]
cmp eax, ebx
je 0x4282a6
lea ecx, [ebp - 0x48]
push ecx
push str.Child_Mozilla_Process:__s
push 0x9e
jmp 0x42829b
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x74]
jne 0x4282db
push dword [ebp - 0x64]
call fcn.00428011
pop ecx
test eax, eax
jne 0x4282b1
cmp byte [0x643648], bl
je 0x4282a6
mov eax, dword [0x643644]
cmp eax, ebx
je 0x4282a6
lea ecx, [ebp - 0x48]
push ecx
push str.Child_Process:__s
push 0xa8
push esi
push ebx
push eax
call fcn.00402740
add esp, 0x18
push dword [ebp - 0x64]
call fcn.00427fb6
pop ecx
jmp 0x4282db
cmp byte [0x643648], bl
je 0x4282db
mov eax, dword [0x643644]
cmp eax, ebx
je 0x4282db
lea ecx, [ebp - 0x48]
push ecx
push str.Black_Listed_Process:__s
push 0xae
push esi
push ebx
push eax
call fcn.00402740
add esp, 0x18
lea eax, [ebp - 0x6c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x428225
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x1c0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00499aa8
add ebp, 0x1c4
leave
ret
Function at 0x428411
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x62ece4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x63fa60
push edi
mov ecx, esi
call fcn.00414947
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x428479
jmp 0x428468
lea eax, [ebp - 0x228]
push eax
mov ecx, esi
call fcn.00413c9f
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x42845a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00499aa8
leave
ret
Function at 0x4294f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x62ece4]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x54
mov eax, 0x5b0882
call fcn.00499ab7
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
call fcn.004840f7
mov eax, dword [eax + 8]
push 0x5cc58c
push 0xf2
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x429598
call fcn.004840f7
mov eax, dword [eax + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x429598
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [ebp - 0x60]
mov edi, eax
call fcn.00478890
push ebx
push ebx
push edi
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.0047a6d0
lea ecx, [ebp - 0x60]
call fcn.00477cc0
push eax
mov ecx, esi
call fcn.004294cf
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call fcn.00428556
push str.English.xml
lea ecx, [ebp + 0x214]
call fcn.00409980
test eax, eax
je 0x42964d
call fcn.004840f7
mov eax, dword [eax + 8]
push 0x104
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.languages
lea eax, [ebp]
push eax
call ebx
lea eax, [ebp]
push eax
call edi
push dword [ebp + 0x214]
lea eax, [ebp]
push eax
call ebx
lea eax, [ebp]
push 0x5cc56c
push eax
call fcn.0049c7cd
mov edi, eax
xor ebx, ebx
pop ecx
pop ecx
cmp edi, ebx
je 0x42964a
mov ecx, dword [esi]
push ebx
push edi
call fcn.00478920
test al, al
je 0x42963e
mov ecx, dword [esi]
call fcn.00477cc0
push eax
mov ecx, esi
call fcn.004294cf
mov ecx, dword [esi]
call fcn.00477bf0
jmp 0x429641
mov dword [ebp - 0x10], ebx
push edi
call fcn.0049c68b
pop ecx
jmp 0x42964d
mov dword [ebp - 0x10], ebx
lea eax, [ebp + 0x214]
add esi, 0x4c
push eax
mov ecx, esi
call fcn.00408700
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.0040cf80
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00408700
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00407130
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
call fcn.004287b2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.Interface_Language
mov byte [ebp - 4], 3
call fcn.00402800
mov ecx, 0x63f9a0
mov byte [ebp - 4], 0
call fcn.0042b76a
mov ecx, dword [ebp + 0x214]
add ecx, 0xfffffff0
call fcn.00407130
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00499aa8
add ebp, 0x20c
leave
ret 4
Function at 0x429c68
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
call esi
cmp al, 6
jb 0x429cf1
mov dword [ebp - 8], edi
mov ebx, 0x20019
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.004209f4
pop ecx
test eax, eax
je 0x429ca0
mov ebx, 0x20119
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 8]
push eax
push ebx
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionexplorerControlPanelNameSpace
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x429d63
lea eax, [ebp - 4]
push eax
push ebx
push edi
push str.9ce424a8_8388_495f_a400_2bd50eb35657
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], edi
je 0x429cea
push dword [ebp - 4]
mov dword [ebp - 0xc], 1
call esi
push dword [ebp - 8]
call esi
jmp 0x429d63
call esi
cmp al, 5
jb 0x429d63
call esi
cmp ax, 5
je 0x429d63
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov esi, 0x20019
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.004209f4
pop ecx
test eax, eax
je 0x429d20
mov esi, 0x20119
lea eax, [ebp - 8]
push eax
push esi
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionControl_PanelCpls
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x429d63
push edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0x5c6984
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x429d5a
mov dword [ebp - 0xc], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42a841
Capabilities:
Check os version
Delete registry value

Disassembly:
push 8
mov eax, 0x5b0a99
call fcn.00499ab7
mov edi, ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
call esi
cmp al, 6
jb 0x42a900
mov ecx, edi
call fcn.0042a79e
push str.SOFTWAREMicrosoftWindowsCurrentVersionexplorerControlPanelNameSpace
lea ecx, [ebp - 0x14]
call fcn.00408c50
xor edi, edi
push 0x60409c
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.0040d0c0
push str.9ce424a8_8388_495f_a400_2bd50eb35657
lea ecx, [ebp - 0x14]
call fcn.0040d0c0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.004209f4
pop ecx
mov esi, reloc.OLEAUT32.dll_SysReAllocString
test eax, eax
je 0x42a8e7
lea eax, [ebp - 0x10]
push eax
push 0xf013f
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x10], edi
je 0x42a8e7
push edi
push dword [ebp - 0x10]
call fcn.0042010f
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x100
push dword [ebp - 0x14]
push esi
call fcn.0042032d
add esp, 0xc
push dword [ebp - 0x14]
push esi
call fcn.0042010f
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00407130
jmp 0x42a9e8
call esi
cmp al, 5
jb 0x42a9e8
call esi
cmp ax, 5
je 0x42a9e8
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ebx, 0x20006
push ebx
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionControl_PanelCpls
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call edi
test eax, eax
jne 0x42a954
push 0x5c6984
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
push eax
push ebx
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionControl_Paneldont_load
push esi
call edi
test eax, eax
jne 0x42a97e
push str.appwiz.cpl
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.004209f4
pop ecx
test eax, eax
je 0x42a9e8
lea eax, [ebp - 0x10]
push eax
mov ebx, 0x20106
push ebx
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionControl_PanelCpls
push esi
call edi
test eax, eax
jne 0x42a9be
push 0x5c6984
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
push eax
push ebx
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionControl_Paneldont_load
push esi
call edi
test eax, eax
jne 0x42a9e8
push str.appwiz.cpl
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
call fcn.00499b8f
ret
Function at 0x42abb9
Capabilities:
Check os version

Disassembly:
push 0xc
mov eax, 0x5b0ae7
call fcn.00499ab7
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x42ac64
mov ecx, esi
call fcn.00429c68
test eax, eax
je 0x42ac64
push str.CLSID_
lea ecx, [ebp - 0x10]
call fcn.00408c50
and dword [ebp - 4], 0
push str.9ce424a8_8388_495f_a400_2bd50eb35657
lea ecx, [ebp - 0x10]
call fcn.0040d0c0
push 0
push 1
push ecx
mov esi, esp
mov dword [ebp - 0x14], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.Misc_UninstallToolDescription
call fcn.00408c50
push esi
mov byte [ebp - 4], 1
call fcn.0040d754
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.00429411
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.InfoTip
mov byte [ebp - 4], 2
call fcn.00408c50
push dword [ebp - 0x10]
mov byte [ebp - 4], 0
push SysReAllocString
call fcn.004204ed
mov ecx, dword [ebp - 0x10]
add esp, 0x18
add ecx, 0xfffffff0
call fcn.00407130
call fcn.00499b8f
ret
Function at 0x42af91
Capabilities:
Check if file exists
Check os version
Set registry value

Disassembly:
push 0x14
mov eax, 0x5b0b3b
call fcn.00499ab7
mov edi, ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x1c], 1
call esi
cmp al, 6
jb 0x42b026
mov ecx, edi
call fcn.0042a4be
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov esi, 0x20006
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.004209f4
pop ecx
test eax, eax
je 0x42afd9
mov esi, 0x20106
lea eax, [ebp - 0x20]
push eax
push esi
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionexplorerControlPanelNameSpace
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42b15c
lea eax, [ebp - 0x18]
push eax
push str.9ce424a8_8388_495f_a400_2bd50eb35657
push dword [ebp - 0x20]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], ebx
je 0x42b01c
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x20]
call esi
jmp 0x42b15c
call esi
cmp al, 5
jb 0x42b15c
call esi
cmp ax, 5
je 0x42b15c
call fcn.004840f7
push dword [eax + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.0041d576
pop ecx
pop ecx
xor ebx, ebx
push str.utool.cpl
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.00408c50
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040d962
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00407130
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42b147
mov dword [ebp - 0x20], 0xf003f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.004209f4
pop ecx
test eax, eax
je 0x42b0ac
mov dword [ebp - 0x20], 0xf013f
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 0x20]
mov dword [ebp - 0x10], ebx
push ebx
push ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionControl_PanelCpls
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 0x10], ebx
je 0x42b14e
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push ebx
push 0x5c6984
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x20]
mov dword [ebp - 0x14], ebx
push ebx
push ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionControl_Paneldont_load
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 0x14], ebx
je 0x42b14e
push 0x60584c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push 0x60584c
push 1
push ebx
push str.appwiz.cpl
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x14]
call edi
jmp 0x42b151
mov ecx, edi
call fcn.0042a841
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00407130
mov eax, dword [ebp - 0x1c]
call fcn.00499b8f
ret
Function at 0x42bc2e
Capabilities:
Check if file exists
Gather total-commander information
Get file version info
Query or enumerate registry value

Disassembly:
push 0x20
mov eax, 0x5b0ca9
call fcn.00499ab7
mov dword [ebp - 0x24], ecx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea esi, [ecx + 0x10]
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x42bd2c
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push ebx
push str.SoftwareGhislerTotal_Commander
push SysReAllocString
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42bd2c
push 0x208
mov dword [ebp - 0x18], 0x104
call fcn.0047b302
pop ecx
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.InstallDir
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42bd2c
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.totalcmd.exe
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x1c]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42bd2a
push ebx
call fcn.0047b302
pop ecx
push eax
push ebx
push 0
push edi
mov dword [ebp - 0x14], eax
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x60409c
push dword [ebp - 0x14]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42bd1a
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
mov ecx, eax
shr ecx, 0x10
cmp cx, 6
jb 0x42bd1a
jne 0x42bd12
cmp ax, 5
jb 0x42bd1a
push edi
mov ecx, esi
call fcn.00408bd0
push dword [ebp - 0x14]
call fcn.0047b2f7
push edi
call fcn.0047b2f7
pop ecx
pop ecx
xor ebx, ebx
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42bd73
push 0x60584c
mov ecx, esi
call fcn.00408bd0
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x14], esp
push ebx
call fcn.0042a005
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.General_UseTC
mov dword [ebp - 4], ebx
call fcn.00402800
mov ecx, dword [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
call fcn.0042b76a
mov ecx, dword [ebp + 8]
push esi
call fcn.00408810
mov eax, dword [ebp + 8]
call fcn.00499b8f
ret 4