joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42efef
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov dword [ebp - 0xc], ebx
jne 0x42f018
push 0x100000
lea ecx, [ebp - 0xc]
call fcn.0042459d
mov eax, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
push 5
pop ecx
xor eax, eax
mov esi, 0x47aadc
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
push 0x1b
lea eax, [edi + 4]
pop ecx
or word [eax - 4], 0xffff
or word [eax - 2], 0xffff
mov word [eax], bx
add eax, 6
dec ecx
jne 0x42f038
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], 0x41
add edi, 2
mov dword [ebp - 0x14], 0x1a
mov ax, word [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov word [ebp - 0x38], ax
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ebx
test ecx, eax
je 0x42f13e
mov ax, word [ebp - 8]
mov word [edi + 2], ax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x42f0a6
cmp eax, 2
jne 0x42f13e
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80000000
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 4]
call fcn.00403993
cmp dword [ebp - 4], ebx
je 0x42f13e
mov esi, dword [ebp + 0xc]
push 0x20
push ebx
push esi
mov dword [ebp - 0x1d0], ebx
call fcn.00461780
or dword [esi + 0x14], 0xffffffff
add esp, 0xc
push ebx
lea eax, [ebp - 0x1d0]
push eax
push 0x20
push esi
push ebx
push ebx
push 0x74004
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42f107
mov ax, word [esi + 0x14]
mov word [edi - 2], ax
push ebx
mov dword [ebp - 0x1d0], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [esi + 4], 0xffffffff
push ebx
lea eax, [ebp - 0x1d0]
push eax
push 0xc
push esi
push ebx
push ebx
push 0x2d1080
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42f13e
mov ax, word [esi + 4]
mov word [edi], ax
lea ecx, [ebp - 4]
call fcn.00402905
inc dword [ebp - 8]
inc dword [ebp - 0x10]
add edi, 6
dec dword [ebp - 0x14]
jne 0x42f068
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0xc]
call fcn.00424686
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430536
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi]
and word [eax], 0
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x43057a
push esi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x430572
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.0042a1b7
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop esi
pop edi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
ret
Function at 0x4605c3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax - 0x6b75b], al
inc dword [eax]
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.0045f8d6
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0045f88b
add esp, 0xc
mov dword [ebp - 0x690], eax
mov byte [ebp - 0x6a0], 0x8b
or byte [ebp - 0x69f], 0xff
mov byte [ebp - 0x69e], 0x55
mov byte [ebp - 0x69d], 0x8b
mov byte [ebp - 0x69c], 0xec
lea eax, [ebp - 0x694]
push eax
push 5
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x33c]
push 0xffffffffffffffff
call dword [ebp - 0x690]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6bc], eax
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x698], eax
call fcn.0045f8c6
dec ecx
sbb dword [ecx - 2], esp
push dword [ebp - 0x698]
lea eax, [ebp - 0x6c0]
push eax
push dword [ebp + 8]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0045faa2
add esp, 0x14
call fcn.0045f8c6
cmpsb byte [esi], byte es:[edi]
dec ebp
ficomp dword [ebx - 1]
mov ch, 0x68
stc
invalid
Function at 0x460c4c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0045f88b
add esp, 0xc
mov dword [ebp - 0x6c8], eax
push 0
lea eax, [ebp - 0x6e0]
push eax
push dword [ebp - 0x378]
push dword [ebp - 4]
push dword [ebp - 0x66c]
call dword [ebp - 0x6c8]
mov dword [ebp - 0x6cc], eax
push dword [ebp - 0x66c]
call dword [ebp - 0x680]
cmp dword [ebp - 0x6cc], 0
je 0x461a59
push 5
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.0045f837
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x460cd3
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x460d1c
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x460cc6
call fcn.0045f8c6
push esi
movsd dword es:[edi], dword [esi]
dec esi
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.0045f8c6
xor al, 8
and dword [ebp - 0x72b7a73], edi
invalid
Function at 0x5346cc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x536168
sub eax, eax
test esi, esi
je 0x5347a4
sub eax, 1
test ecx, ecx
je 0x5347a2
test esi, 3
je 0x53470a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x5346ef
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x534789
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x534714
mov ecx, edx
test ecx, ecx
je 0x5347a2
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x53478f
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x5347ac
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0053482f
jae 0x5347ba
xor ecx, ecx
call fcn.0053482f
jae 0x5347e9
xor eax, eax
call fcn.0053482f
jae 0x5347f9
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0053482f
adc al, al
jae 0x5347db
jne 0x534825
stosb byte es:[edi], al
jmp 0x5347bd
call fcn.0053483b
sub ecx, ebx
jne 0x534802
call fcn.00534839
jmp 0x534821
lodsb al, byte [esi]
shr eax, 1
je 0x53484b
adc ecx, ecx
jmp 0x53481e
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00534839
cmp eax, 0x7d00
jae 0x53481e
cmp ah, 5
jae 0x53481f
cmp eax, 0x7f
ja 0x534820
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5347bd
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
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 0x409fb4
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 0x40a0cc
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 0x40a2c0
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 0x40a1e4
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 0x40a1e4
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 0x40a1e4
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 0x4075e0
push 0x40a71c
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, 0x409ea8
jne 0x402548
mov eax, 0x409ea0
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 0x40995c
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 0x40abe4
push 0x40abac
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 0x407a7c
push 0x40aab4
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 0x407b34
push 0x40ac1c
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 0x40aac8
push eax
mov ecx, esi
mov dword [edi], eax
call fcn.00402570
mov eax, 0x409ea0
push eax
push 0x407b34
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, 0x409ea8
jmp 0x40294e