joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405fd0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push 0
mov byte [ebp - 1], 0
call fcn.0042d5c0
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x14], eax
call fcn.0042c770
add esp, 8
push 0
push ebx
mov byte [ebp - 0xc], al
call fcn.0041b220
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
mov dword [ebp - 0x10], esi
je 0x40613f
push 0x12
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
mov dword [ebp - 8], eax
je 0x406123
push edi
push str.ConfigureServiceRecovery:_Will_attempt_to_set_service_recovery_actions_n
call fcn.0040ef30
mov edi, dword [ebp + 0x10]
lea eax, [edi*8 + 8]
push eax
call fcn.0043c073
mov esi, eax
add esp, 8
test esi, esi
je 0x406106
xor eax, eax
test edi, edi
jbe 0x406082
mov ecx, dword [ebp + 0x14]
imul ecx, ecx, 0x3e8
jmp 0x406070
mov dword [esi + eax*8], 1
mov dword [esi + eax*8 + 4], ecx
add eax, 1
cmp eax, edi
jb 0x406070
mov ebx, dword [ebp + 0xc]
xor eax, eax
cmp ebx, eax
mov dword [esi + edi*8], 0
mov dword [esi + edi*8 + 4], 0
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
jne 0x4060a8
mov dword [ebp - 0x1c], eax
jmp 0x4060ae
lea ecx, [edi + 1]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x28]
push edx
push 2
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
je 0x4060e1
push str.ConfigureServiceRecovery:_Recovery_actions_set._n
call fcn.0040ef30
add esp, 4
push esi
mov byte [ebp - 1], 1
call fcn.0043c1ba
mov ebx, dword [ebp + 8]
jmp 0x406110
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
push eax
push ecx
push edi
push ebx
push str.ERROR__ConfigureServiceRecovery:_Failed_to_write_recovery_actions:_____ResetPeriod:___d_n____RestartCount:__d_n____RestartDelay:__d_n____GetLastError_d_n
call fcn.0040ef30
add esp, 0x14
push esi
call fcn.0043c1ba
mov ebx, dword [ebp + 8]
jmp 0x406110
push str.ERROR__ConfigureServiceRecovery:_Failed_to_allocate_memory_for_service_recovery_actions_array_n
call fcn.0040ef30
mov edx, dword [ebp - 8]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x10]
pop edi
jmp 0x406138
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.ERROR__ConfigureServiceRecovery:_Failed_to_open_service__S_to_change_config__u_n
call fcn.0040ef30
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042d5c0
add esp, 4
cmp byte [ebp - 0xc], 0
je 0x40615b
mov ecx, dword [ebp - 0xc]
push ecx
push ebx
call fcn.0041b220
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406170
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov esi, eax
test esi, esi
je 0x4061b8
push esi
push edi
push str.Unable_to_open_safe_boot_key__S:__u_n
call fcn.0040ef30
push esi
push edi
push str.Unable_to_open_safe_boot_key__S:__u_n
call fcn.0043cb2a
add esp, 0x18
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push edi
push edx
call ebx
mov esi, eax
test esi, esi
je 0x406201
cmp esi, 2
je 0x4061ec
push esi
push edi
push str.Unable_to_open_driver_key__S:__u_n
call fcn.0040ef30
push esi
push edi
push str.Unable_to_open_driver_key__S:__u_n
call fcn.0043cb2a
add esp, 0x18
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00402fe0
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, eax
test esi, esi
je 0x40622d
cmp esi, 0xffffffff
je 0x40622d
push 0
lea ecx, [ebp + 0xc]
push ecx
push 0
push 0
push 0
push 0
push 0x9edb6510
push esi
call ebx
mov edx, dword [ebp - 4]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40624b
push eax
push str.Unable_to_delete_driver_value:__u_n
call fcn.0040ef30
add esp, 8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x406265
cmp esi, 0xffffffff
je 0x406265
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00402fe0
mov esi, eax
test esi, esi
je 0x40628b
cmp esi, 0xffffffff
je 0x40628b
push 0
lea ecx, [ebp + 0xc]
push ecx
push 0
push 0
push 0
push 0
push 0x9edb6510
push esi
call ebx
mov edx, dword [ebp + 8]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x4062a8
push eax
push str.Unable_to_delete_driver_key:__u_n
call fcn.0040ef30
add esp, 8
test esi, esi
je 0x4062b8
cmp esi, 0xffffffff
je 0x4062b8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4062d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
je 0x406316
push esi
push edi
push str.Unable_to_open_safe_boot_key__S:__u_n
call fcn.0040ef30
push esi
push edi
push str.Unable_to_open_safe_boot_key__S:__u_n
call fcn.0043cb2a
add esp, 0x18
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
call fcn.00402fe0
mov esi, eax
test esi, esi
je 0x406340
cmp esi, 0xffffffff
je 0x406340
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0
push 0
push 0x9edb6510
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
lea edx, [ebp - 4]
push edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov edi, eax
test edi, edi
je 0x406380
push edi
push ebx
push str.Unable_to_create_safe_boot_key__S:__u_n
call fcn.0040ef30
push edi
push ebx
push str.Unable_to_create_safe_boot_key__S:__u_n
call fcn.0043cb2a
mov ecx, dword [ebp + 8]
add esp, 0x18
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4063d4
push str.Driver
call fcn.00428150
mov edx, dword [ebp - 4]
add esp, 4
add eax, eax
push eax
push str.Driver
push 1
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov edi, eax
test edi, edi
je 0x4063ef
push edi
push str.Unable_to_set_safe_boot_value:__u_n
call fcn.0040ef30
push edi
push str.Unable_to_set_safe_boot_value:__u_n
call fcn.0043cb2a
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x10
push eax
call edi
mov ecx, dword [ebp - 4]
push ecx
call edi
test esi, esi
je 0x4063e4
cmp esi, 0xffffffff
je 0x4063e4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call edi
mov eax, dword [ebp - 4]
push eax
call edi
test esi, esi
je 0x406411
cmp esi, 0xffffffff
je 0x406411
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push str._S_enabled_for_SafeBoot_n
call fcn.0040ef30
add esp, 8
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x408d50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
push str.GetDriverDest__S_n
call fcn.0040ef30
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
add esp, 8
test esi, esi
je 0x408d89
test edi, edi
je 0x408d89
push edi
push esi
mov word [esi], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov word [esi + edi*2 - 2], 0
push 0x4534a8
push edi
push esi
call fcn.004294d0
push ebx
push edi
push esi
call fcn.004294d0
add esp, 0x18
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x408db0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
push esi
push edi
mov eax, ebx
jne 0x408dc4
mov eax, 0x45278c
push eax
push str.GetSystemDest__S_n
call fcn.0040ef30
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add esp, 8
test esi, esi
je 0x408df4
test edi, edi
je 0x408df4
push edi
push esi
mov word [esi], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov word [esi + edi*2 - 2], 0
push 0x4534d0
push edi
push esi
call fcn.004294d0
push ebx
push edi
push esi
call fcn.004294d0
add esp, 0x18
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x408e20
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test bl, bl
setne al
push esi
push 1
push 0
lea eax, [eax*4 + 0x26]
push eax
push 0
call edi
test eax, eax
je 0x408e84
test bl, bl
je 0x408e6e
push str.Failed_to_get_x86_program_files_location_n
call fcn.0040ef30
add esp, 4
push esi
push 1
push 0
push 0x26
push 0
call edi
test eax, eax
je 0x408e84
push str.Failed_to_get_program_files_location_n
call fcn.0040ef30
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0x10
mov edi, dword [ebp + 0x14]
push 0x4534d0
push edi
push esi
call fcn.004294d0
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push esi
call fcn.004294d0
add esp, 0x18
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 0x10

Function at 0x408eb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test bl, bl
setne al
push esi
push 1
push 0
add eax, 0x2b
push eax
push 0
call edi
test eax, eax
je 0x408f10
test bl, bl
je 0x408efa
push str.Failed_to_get_x86_common_program_files_location_n
call fcn.0040ef30
add esp, 4
push esi
push 1
push 0
push 0x2b
push 0
call edi
test eax, eax
je 0x408f10
push str.Failed_to_get_common_program_files_location_n
call fcn.0040ef30
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0x10
mov edi, dword [ebp + 0x14]
push 0x4534d0
push edi
push esi
call fcn.004294d0
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push esi
call fcn.004294d0
add esp, 0x18
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 0x10

Function at 0x408f40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push esi
push 1
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x408f6e
push str.Failed_to_get_common_program_files_location_n
call fcn.0040ef30
add esp, 4
xor al, al
pop esi
pop ebp
ret 0xc
push edi
mov edi, dword [ebp + 0x10]
push 0x4534d0
push edi
push esi
call fcn.004294d0
mov eax, dword [ebp + 8]
push eax
push edi
push esi
call fcn.004294d0
add esp, 0x18
pop edi
mov al, 1
pop esi
pop ebp
ret 0xc
Function at 0x4090d0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push str.RemoveSystemCoreDest_here_n
call fcn.0040ef30
push str.SoftwareMcAfee
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0042a650
mov edi, eax
add esp, 0xc
test edi, edi
je 0x409148
push esi
call fcn.00402fe0
mov esi, eax
test esi, esi
je 0x409122
cmp esi, 0xffffffff
je 0x409122
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
push 0x9edb6510
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push str.SystemCore
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push edi
call fcn.0042a5f0
add esp, 4
test esi, esi
je 0x409147
cmp esi, 0xffffffff
je 0x409147
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40c8e0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4703d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push ebx
push str.SYSTEMCurrentControlSetServicesEventLogSystem_s
lea eax, [ebp - 0x25c]
push 0x12c
push eax
call fcn.0042a4b0
add esp, 0x10
push esi
lea ecx, [ebp - 0x25c]
push ecx
call fcn.0040c500
push 1
lea edx, [ebp - 0x25c]
push edx
call fcn.00409150
test eax, eax
jne 0x40c9d3
push ebx
push str.RemoveServiceEventSource___removing_event_source_for__S_n
call fcn.0040ef30
add esp, 8
call fcn.00402fe0
mov esi, eax
test esi, esi
je 0x40c973
cmp esi, 0xffffffff
je 0x40c973
push 0
lea eax, [ebp - 0x260]
push eax
push 0
push 0
push 0
push 0
push 0x9edb6510
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
push str.SYSTEMCurrentControlSetServicesEventLogSystem
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0042a610
mov edi, eax
add esp, 8
test edi, edi
je 0x40c9b0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x40c9a5
push str.RemoveServiceEventSource:_RegDeleteKey_failed_n
call fcn.0040ef30
add esp, 4
push edi
call fcn.0042a5f0
add esp, 4
jmp 0x40c9c2
push str.SYSTEMCurrentControlSetServicesEventLogSystem
push str.Failed_to_open__S_n
call fcn.0040ef30
add esp, 8
test esi, esi
pop edi
je 0x40c9d3
cmp esi, 0xffffffff
je 0x40c9d3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0043c015
mov esp, ebp
pop ebp
ret 8
Function at 0x41b800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
push edi
mov dword [ebp - 8], 7
mov dword [ebp - 4], 0
mov edi, 8
je 0x41b829
mov dword [ebx], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41b836
mov dword [eax], 0
push 0x20000
call fcn.0043c073
mov esi, eax
add esp, 4
test esi, esi
jne 0x41b866
push 0x20000
push str.Failed_alloc_memory__size__Id__n
call fcn.0040ef30
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [str.FilterClasses]
mov ecx, dword [str.SystemCurrentControlSetControlNetwork]
push eax
push ecx
push str.Reading_reg_val_HKLM_ls_ls_n
mov dword [ebp - 4], 0x20000
call fcn.0040ef30
mov ecx, dword [str.FilterClasses]
add esp, 0xc
lea edx, [ebp - 4]
push edx
mov edx, dword [str.SystemCurrentControlSetControlNetwork]
push esi
lea eax, [ebp - 8]
push eax
push ecx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edi, eax
xor ecx, ecx
cmp edi, ecx
je 0x41b8d3
push edi
push str.Failed_to_read_registry__err0x_x_n
call fcn.0040ef30
add esp, 8
push esi
call fcn.0043c1ba
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 8]
cmp eax, 7
je 0x41b902
push eax
push str.Got_unexpected_value_type___d_n
call fcn.0040ef30
add esp, 8
push esi
mov edi, 0x70c
call fcn.0043c1ba
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp ebx, ecx
mov word [esi + 0x1fffc], cx
mov word [esi + 0x1fffe], cx
je 0x41b916
mov dword [ebx], esi
mov eax, dword [ebp + 0xc]
cmp eax, ecx
je 0x41b8c8
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41cd40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4703d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x105
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x41cd92
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41cdaa
and eax, 0xffff
or eax, 0x80070000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c015
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x210]
push ecx
push str._sinf
call fcn.0042a590
add esp, 8
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043c015
mov esp, ebp
pop ebp
ret 4
Function at 0x41d480
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44efbb
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x4703d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
push str.Deleteing_oemxxx.inf_corresponding_to__ls_n
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x264], 0
call fcn.0040ef30
add esp, 8
lea eax, [ebp - 0x264]
push eax
call fcn.0041cd40
mov esi, eax
test esi, esi
je 0x41d4f6
push esi
push str.ERROR:_Failed_to_get_the_inf_dir__hr__HRESULT__n
call fcn.0040ef30
add esp, 8
mov eax, esi
jmp 0x41d69b
mov edi, dword [ebp - 0x264]
push edi
push str._soem.inf
call fcn.0042a590
add esp, 8
lea ecx, [ebp - 0x260]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x268], eax
jne 0x41d543
push str.No_oem_files__we_are_done__n
call fcn.0040ef30
push edi
call fcn.004280a0
push esi
call fcn.004280a0
add esp, 0xc
jmp 0x41d699
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esp, [esp]
push esi
call fcn.004280a0
lea edx, [ebp - 0x234]
push edx
push edi
push 0x451f20
call fcn.0042a590
add esp, 0x10
mov esi, eax
push esi
lea ecx, [ebp - 0x288]
call fcn.0041d190
mov ecx, dword [ebp - 0x278]
mov eax, dword [ebp - 0x26c]
mov eax, dword [eax + 0x10]
push ecx
push eax
mov dword [ebp - 4], 0
call fcn.0041ca60
add esp, 8
test eax, eax
jne 0x41d64f
mov edx, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x280]
mov eax, dword [edx + 8]
push ecx
push eax
call fcn.0041ca60
add esp, 8
test eax, eax
jne 0x41d64f
push str.Oem_file_matches__uninstalling_it..._n
call fcn.0040ef30
add esp, 4
push str.setupapi.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x41d61c
push str.SetupUninstallOEMInfW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41d615
push 0
push 1
lea edx, [ebp - 0x234]
push edx
call eax
test eax, eax
jne 0x41d615
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:_Failed_to_uninstall_oem_file__err_u_n
call fcn.0040ef30
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x288]
call fcn.0041cac0
push esi
call ebx
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d630
sub eax, edx
sar eax, 1
push esi
mov word [esi + eax*2 - 6], 0x70
call ebx
mov edi, dword [ebp - 0x264]
lea ecx, [ebp - 0x288]
mov dword [ebp - 4], 0xffffffff
call fcn.0041cdc0
mov ecx, dword [ebp - 0x268]
lea eax, [ebp - 0x260]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41d550
mov edx, dword [ebp - 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call fcn.004280a0
push esi
call fcn.004280a0
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043c015
mov esp, ebp
pop ebp
ret 4
Function at 0x41dd00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x4703d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
call fcn.004280e0
mov dword [0x47160c], eax
xor esi, esi
lea eax, [ebp - 0x306]
push str.mfehidin
push eax
mov dword [ebp - 0x328], 0xfffffff
mov dword [ebp - 0x324], 0xdbba0
mov dword [ebp - 0x320], esi
mov dword [ebp - 0x31c], esi
mov dword [ebp - 0x318], esi
mov dword [ebp - 0x314], 1
mov dword [ebp - 0x310], esi
mov word [ebp - 0x308], 0x3778
call fcn.00428490
mov ecx, dword [0x47160c]
push ecx
lea edx, [ebp - 0x206]
push edx
call fcn.00428490
add esp, 0x14
lea eax, [ebp - 0x106]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x106]
push 0x45b004
push ecx
call fcn.00428510
push esi
lea edx, [ebp - 0x328]
push edx
push 0x41dc30
push 0x41da80
push 0x41da50
push 0x41da00
push 0x41d9d0
push 0x41d9a0
push 0x41d930
push 0x41d920
push fcn.00428090
push 0x41db00
push 0x471600
call fcn.00421b05
add esp, 0x3c
cmp eax, esi
mov dword [0x471614], eax
je 0x41de3c
mov eax, dword [0x46500c]
cmp eax, 0x46500c
je 0x41de29
test byte [eax + 0x3c], 2
je 0x41de29
cmp byte [eax + 0x39], 5
jb 0x41de29
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x30]
push 0x45aff0
push 0x13
push ecx
push edx
call fcn.0041b140
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c015
mov esp, ebp
pop ebp
ret 4
cmp dword [0x471608], esi
je 0x41de7e
mov eax, dword [0x46500c]
cmp eax, 0x46500c
je 0x41de7e
test byte [eax + 0x3c], 2
je 0x41de7e
cmp byte [eax + 0x39], 5
jb 0x41de7e
mov ecx, dword [0x471604]
mov edx, dword [0x471600]
push ecx
mov ecx, dword [eax + 0x34]
push edx
mov edx, dword [eax + 0x30]
push 0x45aff0
push 0x14
push ecx
push edx
call fcn.0043a1b0
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.0043c015
mov esp, ebp
pop ebp
ret 4

Function at 0x41f760
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4703d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
mov eax, 0x20019
jne 0x41f7a9
cmp dword [ebp - 0x110], 0
je 0x41f7ae
mov eax, 0x20219
test esi, esi
je 0x41f7e0
lea ecx, [ebp - 0x11c]
push ecx
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x11c]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c015
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0043c015
mov esp, ebp
pop ebp
ret
Function at 0x41f800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push str.SoftwareMcAfee
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, 3
call fcn.0041f760
add esp, 8
test eax, eax
je 0x41f828
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareMcAfeeSystemCore
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0041f760
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x41f8b2
mov eax, dword [ebp + 0x14]
add eax, eax
cmp byte [ebp + 8], 0
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
je 0x41f864
lea eax, [ebp - 4]
push eax
push esi
lea ecx, [ebp + 8]
push ecx
push 0
push str.szInstallDir32
jmp 0x41f874
lea edx, [ebp - 4]
push edx
push esi
lea eax, [ebp + 8]
push eax
push 0
push str.szInstallDir64
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x41f8aa
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x41f8aa
push eax
push 0x4534d0
push esi
mov word [esi + eax*2 - 2], di
call fcn.0043db9d
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push esi
call fcn.0043db9d
add esp, 0x18
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
test edi, edi
pop edi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 0x10