joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a80
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x40753b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x134]
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
mov dword [esp + 0x12c], edi
push ecx
push 0x2001f
push edi
push edx
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, edi
jne 0x401af8
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, edi
je 0x401ae8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
cmp eax, edi
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x401b0a
jmp 0x401afc
mov ecx, dword [esp + 0xc]
cmp ecx, edi
je 0x401ba5
push ecx
jmp 0x401b9f
lea eax, [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push edi
push edi
lea edx, [esp + 0x1c]
push edi
lea eax, [esp + 0x34]
push edx
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x401b70
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401a80
mov ebx, eax
cmp ebx, edi
jne 0x401bc1
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x34]
push eax
push ecx
push edi
push edx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x401b32
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x401b83
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x134]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x401ba5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 4
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x401bd0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x401ba7
Function at 0x403d8d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x409570
cmp edx, dword [eax]
je 0x403daf
add eax, 8
inc ecx
cmp eax, 0x409600
jl 0x403da0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x409570]
jne 0x403edd
mov eax, dword [0x40bf58]
cmp eax, 1
je 0x403eb7
test eax, eax
jne 0x403de0
cmp dword [0x4092a4], 1
je 0x403eb7
cmp edx, 0xfc
je 0x403edd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403e17
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404a60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404c10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403e5a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404c10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40856c
push edi
call fcn.00406c80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404a60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404a70
lea eax, [ebp - 0xa0]
push 0x40854c
push eax
call fcn.00404a70
push dword [esi + 0x409574]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404a70
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406bee
add esp, 0x2c
pop edi
jmp 0x403edd
lea eax, [ebp + 8]
lea esi, [esi + 0x409574]
push 0
push eax
push dword [esi]
call fcn.00404c10
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401820
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407500
push 0x406b20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x3c]
push eax
push 0xf003f
push esi
mov ecx, dword [str.SOFTWAREMDCDriverInstallReboot]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
push str.CreateRebootReqRegValue
je 0x40189d
push str._s____failed_to_open_registry_key
push 6
call fcn.00403190
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call sub.MSVCRT.dll__local_unwind2
add esp, 0x14
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str._s____registry_key_opened
push 6
call fcn.00403190
add esp, 0xc
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
push esi
push 5
push 7
push 3
push str._d._d._d._d
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x18
lea ecx, [ebp - 0x38]
push ecx
push str.CreateRebootReqRegValue
push str._s____driver_version_to_be_installed__s
push 6
call fcn.00403190
add esp, 0x10
push 0x20
lea edx, [ebp - 0x38]
push edx
push 1
push esi
push str.DrvVersion
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x401937
push str.CreateRebootReqRegValue
push str._s____failed_to_set_value_in_registry_key
push 6
call fcn.00403190
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCRT.dll__local_unwind2
add esp, 0x14
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
call fcn.00401959
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401a80
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407520
push 0x406b20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push edi
mov ecx, dword [0x409988]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401b25
push edi
lea edx, [ebp - 0x1c]
push edx
push edi
push 0xf003f
push edi
push edi
push edi
mov eax, dword [0x409988]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x401b25
push str.CreateRunOnceKey
push str._s____failed_to_create_registry_key
push 6
call fcn.00403190
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCRT.dll__local_unwind2
add esp, 0x14
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.CreateRunOnceKey
push str._s____registry_key_opened
push 6
call fcn.00403190
add esp, 0xc
mov ecx, 0x468e90
call fcn.004027a0
test eax, eax
jne 0x401b56
push str.CreateRunOnceKey
push str._s____failed_to_get_AegisI5nstaller_path
jmp 0x401c16
mov dword [ebp - 0x20], 0x469ee0
mov eax, dword [ebp + 8]
push eax
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
call esi
mov ebx, eax
push 0x469ee0
call esi
lea eax, [ebx + eax + 4]
mov dword [ebp - 0x24], eax
lea ebx, [eax + eax]
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, edi
jne 0x401bb2
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, ebx
xor eax, eax
mov edi, esi
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
push 0x469ee0
push str.__s___s
push esi
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
push esi
push str.CreateRunOnceKey
push str._s____Set_RunOnce_registry_with:_s
push 6
call fcn.00403190
add esp, 0x10
push ebx
push esi
push 1
push 0
push str.RunAegisInst
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x401c40
push str.CreateRunOnceKey
push str._s____failed_to_set_registry_key_value
push 6
call fcn.00403190
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call sub.MSVCRT.dll__local_unwind2
add esp, 0x14
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0xffffffff
call fcn.00401c67
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401ca0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407530
push 0x406b20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3f4
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push esi
mov ecx, dword [0x40998c]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401d81
push str.DelAegisInst
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x401d4b
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x404]
call fcn.00403890
push eax
push str.DeleteDelAegisInst
push str._s:_failed_registry_key_value_deletion:__s
push 6
call fcn.00403190
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.DeleteDelAegisInst
push str._s____Reboot_registry_key_value_deleted
push 6
call fcn.00403190
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
call fcn.00401dba
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x40998c]
push ecx
push str.DeleteDelAegisInst
push str._s_____s_does_not_exist
push 6
call fcn.00403190
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call sub.MSVCRT.dll__local_unwind2
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401de0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407540
push 0x406b20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3f4
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push esi
mov ecx, dword [0x409990]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401ec1
push str.RunAegisInst
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x401e8b
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x404]
call fcn.00403890
push eax
push str.DeleteRunAegisInst
push str._s:_failed_registry_key_value_deletion:__s
push 6
call fcn.00403190
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.DeleteRunAegisInst
push str._s____Reboot_registry_key_value_deleted
push 6
call fcn.00403190
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
call fcn.00401efa
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x409990]
push ecx
push str.DeleteRunAegisInst
push str._s_____s_does_not_exist
push 6
call fcn.00403190
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call sub.MSVCRT.dll__local_unwind2
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401fa0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407550
push 0x406b20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x41c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push edi
mov ecx, dword [0x409994]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402185
mov dword [ebp - 0x42c], 0x400
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
lea edx, [ebp - 0x42c]
push edx
lea eax, [ebp - 0x428]
push eax
push edi
push edi
push str.RunAegisInst
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x402060
push eax
push str.IsPendingCmdDifferent
push str._s:_RegQueryValueEx_failed_with_error:__08x
push 6
call fcn.00403190
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call sub.MSVCRT.dll__local_unwind2
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov word [ebp - 0x2a], di
push str._install
mov esi, dword [ebp + 8]
push esi
mov ebx, dword [sym.imp.MSVCRT.dll_wcsstr]
call ebx
add esp, 8
test eax, eax
je 0x402084
mov edi, 1
mov dword [ebp - 0x24], edi
push str._uninstall
push esi
call ebx
add esp, 8
test eax, eax
je 0x40209d
mov esi, 1
mov dword [ebp - 0x28], esi
jmp 0x4020a0
mov esi, dword [ebp - 0x28]
test edi, edi
je 0x4020ac
test esi, esi
jne 0x4020b0
test edi, edi
jne 0x4020d4
test esi, esi
jne 0x4020d4
push str.IsPendingCmdDifferent
push str._s:_Invalid_CmdLine
push 6
call fcn.00403190
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
add esp, 0x14
jmp 0x40204b
push str._install
lea ecx, [ebp - 0x428]
push ecx
call ebx
add esp, 8
test eax, eax
je 0x402124
test edi, edi
jne 0x402124
push str.IsPendingCmdDifferent
push str._s:Pending_reqinstall__current_requninstall
push 6
call fcn.00403190
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call sub.MSVCRT.dll__local_unwind2
add esp, 0x14
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str._uninstall
lea eax, [ebp - 0x428]
push eax
call ebx
add esp, 8
test eax, eax
je 0x402174
test esi, esi
jne 0x402174
push str.IsPendingCmdDifferent
push str._s:Pending_requninstall__current_reqinstall
push 6
call fcn.00403190
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCRT.dll__local_unwind2
add esp, 0x14
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0xffffffff
call fcn.004021a8
jmp 0x40204b
mov edx, dword [0x409994]
push edx
push str.IsPendingCmdDifferent
push str._s_____s_does_not_exist
push 6
call fcn.00403190
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
jmp 0x402043
Function at 0x402420
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x3f0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x400]
push edi
push esi
push str.FC.EtCreatFile
push str._s___path__s___pf__
push 6
call fcn.00403190
add esp, 0x10
mov byte [esp + 0x13], 0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40249c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.00403890
mov ebp, dword [sym.imp.MSVCRT.dll_fwprintf]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push esi
add eax, 0x40
push str.AegisP_Protocol___s_:_Failed_to_Create:__s_n
push eax
call ebp
add esp, 0x10
jmp 0x4024ff
mov eax, dword [esp + 0x408]
lea ecx, [esp + 0x14]
push 0
push ecx
mov edx, dword [eax]
mov eax, dword [eax + 4]
push edx
push eax
push ebx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.MSVCRT.dll_fwprintf]
test eax, eax
jne 0x4024f6
call edi
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.00403890
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push eax
push esi
add ecx, 0x40
push str.AegisP_Protocol___s_:_Failed_to_write:__s_n
push ecx
call ebp
add esp, 0x10
jmp 0x4024fb
mov byte [esp + 0x13], 1
test ebx, ebx
je 0x402536
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x402536
mov al, byte [esp + 0x13]
test al, al
je 0x402543
call edi
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.00403890
mov edx, dword [sym.imp.MSVCRT.dll__iob]
push eax
push esi
add edx, 0x40
push str.AegisP_Protocol___s_:_Failed_to_close:__s_n
push edx
call ebp
add esp, 0x10
mov al, byte [esp + 0x13]
test al, al
mov eax, str.true
jne 0x402548
mov eax, str.false
push eax
push 0x4075d0
push 0x409e94
push 6
call fcn.00402d80
mov al, byte [esp + 0x23]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3f0
ret 8

Function at 0x402860
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x407a60
push str._s___
mov ebp, ecx
push 6
call fcn.00402d80
lea esi, [ebp + 0x20a]
xor ebx, ebx
add esp, 0xc
cmp word [esi], bx
jne 0x4028c1
push 0x105
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
test edi, edi
je 0x4028a1
cmp edi, 0x104
jbe 0x4028c1
push str.windows_system32_directory
push str.Windows_system32_directory
push 0x105
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
mov ecx, ebp
call fcn.00402630
jmp 0x4028c9
mov ebx, esi
test ebx, ebx
mov eax, ebx
jne 0x4028ce
mov eax, 0x40a814
push eax
push str.FC.GetSystemDirectoryOrNil
push str._s:____s
push 6
call fcn.00403190
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4028f0
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
push edi
push str.FC.RemoveInstallerExeFile
push str._s___OUTPUT_error__lx___
push 6
call fcn.00402d80
add esp, 0x10
mov ecx, esi
xor bl, bl
mov dword [edi], 0
call fcn.004027a0
test eax, eax
je 0x402949
lea ebp, [esi + 0x1050]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40296c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push str.AegisP_protocol_device_driver
push eax
mov ecx, esi
mov dword [edi], eax
call fcn.00402570
mov eax, str.false
push eax
push str.FC.RemoveInstallerExeFile
push 0x409e94
push 6
call fcn.00402d80
add esp, 0x10
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov bl, 1
mov eax, str.true
jmp 0x40294e
Function at 0x4059f0
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x14]
xor bl, bl
mov eax, dword [esi + 0xc]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x405a1a
cmp eax, 2
mov dword [esi + 0x1c], eax
jne 0x405a3a
mov al, byte [esp + 0x18]
test al, al
je 0x405a22
pop edi
pop esi
mov al, 1
pop ebx
ret 0xc
mov ecx, dword [esi + 0x10]
push edi
add ecx, 8
mov edx, 0x74
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00406090
jmp 0x405a51
mov edx, dword [esi + 0x10]
mov ecx, dword [esp + 0x10]
push eax
add edx, 8
push edi
push edx
mov edx, 0x75
call fcn.004060b0
mov dword [esi + 0x14], 3
add esi, 0x20
push edi
push esi
xor edx, edx
mov ecx, 0x4684f0
call fcn.00405840
pop edi
mov al, bl
pop esi
pop ebx
ret 0xc

Function at 0x405af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, ecx
lea eax, [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x1c]
push ecx
mov dword [ebp], 0
mov eax, dword [esi + 0xc]
push edx
push 0
push edi
push eax
mov dword [esp + 0x34], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x405b6e
cmp eax, 2
mov dword [esi + 0x1c], eax
jne 0x405b55
mov al, byte [esp + 0x20]
test al, al
je 0x405b46
pop edi
pop esi
mov al, 1
pop ebp
pop ecx
ret 0x10
mov ecx, dword [esi + 0x10]
push edi
add ecx, 8
mov edx, 0x72
push ecx
jmp 0x405b99
mov edx, dword [esi + 0x10]
mov ecx, dword [esp + 0x14]
push eax
add edx, 8
push edi
push edx
mov edx, 0x6f
call fcn.004060b0
jmp 0x405ba2
cmp dword [esp + 0x18], 4
jne 0x405b8c
cmp dword [esp + 0x1c], 4
jne 0x405b8c
mov eax, dword [esp + 0xc]
pop edi
mov dword [ebp], eax
pop esi
mov al, 1
pop ebp
pop ecx
ret 0x10
mov ecx, dword [esi + 0x10]
push edi
add ecx, 8
mov edx, 0x70
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00406090
lea edx, [esi + 0x20]
push edi
push edx
xor edx, edx
mov ecx, 0x468510
mov dword [esi + 0x14], 5
call fcn.00405840
mov dword [esi + 0x24], 1
pop edi
pop esi
xor al, al
pop ebp
pop ecx
ret 0x10
Function at 0x405bd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x7d8
push ebx
push esi
mov esi, ecx
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x7f0]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push edi
push eax
xor bl, bl
mov dword [esp + 0x24], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x405c76
cmp eax, 2
mov dword [esi + 0x1c], eax
jne 0x405c57
mov al, byte [esp + 0x7f8]
test al, al
je 0x405c39
mov ecx, dword [esp + 0x7f4]
call fcn.004058a0
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x7d8
ret 0x14
mov ecx, dword [esi + 0x10]
push edi
add ecx, 8
mov edx, 0x72
push ecx
mov ecx, dword [esp + 0x7f4]
call fcn.00406090
jmp 0x405cfa
mov edx, dword [esi + 0x10]
mov ecx, dword [esp + 0x7ec]
push eax
add edx, 8
push edi
push edx
mov edx, 0x6f
call fcn.004060b0
jmp 0x405cfa
cmp dword [esp + 0x10], 1
je 0x405c98
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x7ec]
add eax, 8
push edi
push eax
mov edx, 0x71
call fcn.00406090
jmp 0x405cfa
mov edx, dword [esp + 0xc]
mov eax, edx
shr eax, 1
je 0x405ce0
lea ecx, [eax + eax]
cmp edx, ecx
jne 0x405ce0
cmp word [esp + ecx + 0x12], 0
jne 0x405ce0
mov edx, dword [esp + 0x7f4]
dec eax
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esp + 0x7f0]
push edx
xor edx, edx
call fcn.00405740
test al, al
je 0x405cfa
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x7d8
ret 0x14
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x7ec]
push edx
add eax, 8
push edi
push eax
mov edx, 0x79
call fcn.004060a0
lea ecx, [esi + 0x20]
push edi
push ecx
xor edx, edx
mov ecx, 0x468530
mov dword [esi + 0x14], 5
call fcn.00405840
mov dword [esi + 0x24], 2
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0x7d8
ret 0x14

Function at 0x405e40
Capabilities:
Set registry value

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x1c]
mov esi, ecx
push 4
push eax
mov ecx, dword [esi + 0xc]
push 4
push 0
push edi
push ecx
xor bl, bl
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x405eb7
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x10]
push edx
add eax, 8
push edi
push eax
mov edx, 0x76
call fcn.004060a0
lea ecx, [esi + 0x20]
push edi
push ecx
xor edx, edx
mov ecx, 0x468554
mov dword [esi + 0x14], 6
call fcn.00405840
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], ebp
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0xc
Function at 0x405ec0
Capabilities:
Set registry value

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ecx
push edi
xor bl, bl
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ebp, dword [esp + 0x1c]
add esp, 4
lea eax, [eax + eax + 2]
push eax
mov eax, dword [esi + 0xc]
push edi
push 1
push 0
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x405f46
mov ecx, dword [esi + 0x10]
push edi
add ecx, 8
push ebp
push ecx
mov ecx, dword [esp + 0x20]
mov edx, 0x78
mov dword [esi + 0x1c], eax
call fcn.004060a0
lea edx, [esi + 0x20]
push ebp
push edx
xor edx, edx
mov ecx, 0x468594
mov dword [esi + 0x14], 6
call fcn.00405840
mov dword [esi + 0x24], 2
add esi, 0x2c
push edi
push esi
xor edx, edx
mov ecx, 0x468574
call fcn.00405840
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0xc