joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4958d7
Capabilities:
Manipulate boot configuration

Disassembly:
push 4
mov eax, 0x673f61
call fcn.00645482
push str.NTFSFindFiles
lea ecx, [ebp - 0x10]
call fcn.0061a2cd
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp byte [0x7cf824], bl
mov dword [ebp - 4], ebx
jne 0x495921
cmp esi, ebx
jne 0x495935
push 0x87
push str..._ntcheck.cpp
push 0x6db4f4
push str.Assertion_failed:__s__file__s__line__d
push ebx
call fcn.0041ca03
add esp, 0x14
cmp esi, ebx
jne 0x495935
lea ecx, [ebp - 0x10]
call fcn.006193de
xor eax, eax
call fcn.0064555a
ret
push dword [esi + 0xc4]
push ebx
push 5
push esi
call fcn.0049c33b
add esp, 0x10
test al, al
jne 0x49596f
cmp byte [0x7ca070], bl
je 0x495963
call fcn.005f3ac4
push 0x22e
call fcn.0044c672
pop ecx
lea ecx, [ebp - 0x10]
call fcn.006193de
mov eax, ebx
jmp 0x49592f
lea edi, [esi + 0x68]
push edi
push 8
push str.BOOT.INI
push dword [esi + 0xc4]
or ebx, 0xffffffff
push esi
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
call fcn.0049df81
add esp, 0x14
test al, al
jne 0x49599b
mov dword [edi], ebx
mov dword [edi + 4], ebx
push 2
pop ebx
jmp 0x495963
Function at 0x4d7eca
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67a668
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
push str.deleteChildKey
push dword [0x6ed2c8]
lea ecx, [ebp - 0x14]
call fcn.0061a2ae
and dword [ebp - 4], 0
mov byte [ebp - 0xd], 0
and dword [ebp - 0x18], 0
push str.ADVAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4d7f7d
and dword [ebp - 0x20], 0
push str.RegDeleteKeyExW
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4d7f74
mov byte [ebp - 0xd], 1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x4d7f4e
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], eax
jmp 0x4d7f57
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x24], eax
push 0
mov eax, dword [ebp - 0x2c]
push dword [eax + 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x24]
call dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x4d7f8d
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
jmp 0x4d7fc2
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x4d7fa1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], eax
jmp 0x4d7faa
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x38]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x34], eax
push 0xb6
push str.r:depot_contGhostGSSTrunkGhostWindowsRegistry_Win32RegistryKey.cpp
push dword [ebp - 0x34]
call fcn.004daaed
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x18], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.006193de
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4d7ff8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67a682
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
mov dword [ebp - 0x5c], ecx
push str.getValue
push dword [0x6ed2c8]
lea ecx, [ebp - 0x10]
call fcn.0061a2ae
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
and dword [ebp - 0x20], 0
jmp 0x4d8049
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
jge 0x4d80ee
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x4d8070
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x60], eax
jmp 0x4d8079
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x38]
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 0x60]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 2
jne 0x4d80b9
mov byte [ebp - 0x21], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.006193de
mov al, byte [ebp - 0x21]
jmp 0x4d8137
cmp dword [ebp - 0x1c], 0xea
jne 0x4d80d2
push dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
call fcn.0058ab20
jmp 0x4d8042
push 0xd5
push str.r:depot_contGhostGSSTrunkGhostWindowsRegistry_Win32RegistryKey.cpp
push dword [ebp - 0x1c]
call fcn.004daaed
add esp, 0xc
jmp 0x4d80ee
and dword [ebp - 0x2c], 0
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x64]
mov eax, dword [ebp - 0x5c]
mov al, byte [eax + 0x11]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
call fcn.0058ac4a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.005904dd
mov byte [ebp - 0x2d], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.006193de
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4d8145
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67a694
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 0x24], ecx
push str.setValue
push dword [0x6ed2c8]
lea ecx, [ebp - 0x10]
call fcn.0061a2ae
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0058afda
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x4d81a7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x28], eax
jmp 0x4d81b0
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
push 0xf4
push str.r:depot_contGhostGSSTrunkGhostWindowsRegistry_Win32RegistryKey.cpp
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call fcn.004daaed
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x18], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.006193de
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4d8204
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67a6a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x18], ecx
push str.deleteValue
push dword [0x6ed2c8]
lea ecx, [ebp - 0x10]
call fcn.0061a2ae
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x4d824d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
jmp 0x4d8256
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
push 0xff
push str.r:depot_contGhostGSSTrunkGhostWindowsRegistry_Win32RegistryKey.cpp
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push eax
call fcn.004daaed
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x18], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.006193de
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4d89a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67a781
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov dword [ebp - 0x70], ecx
push str.getValueByIndex
push dword [0x6ed2c8]
lea ecx, [ebp - 0x14]
call fcn.0061a2ae
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x70]
call fcn.004d8b3c
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x2c], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x28]
push dword [ebp + 8]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xea
jne 0x4d8a95
mov eax, dword [ebp - 0x70]
cmp dword [eax + 0x30], 0x4000
jb 0x4d8a43
mov byte [ebp - 0x19], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.006193de
mov al, byte [ebp - 0x19]
jmp 0x4d8b2e
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x30]
shl eax, 1
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0x30], eax
xor ecx, ecx
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x30]
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b9b3
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x70]
add eax, 0x34
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x20]
je 0x4d8a95
mov ecx, dword [ebp - 0x3c]
call fcn.004d8db5
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x3c]
call fcn.004d8d62
cmp dword [ebp - 0x18], 0xea
je 0x4d89dd
cmp dword [ebp - 0x18], 0x103
jne 0x4d8ac0
mov byte [ebp - 0x21], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.006193de
mov al, byte [ebp - 0x21]
jmp 0x4d8b2e
push 0x22b
push str.r:depot_contGhostGSSTrunkGhostWindowsRegistry_Win32RegistryKey.cpp
push dword [ebp - 0x18]
call fcn.004daaed
add esp, 0xc
cmp dword [ebp - 0x10], 0
jbe 0x4d8af4
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x34]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 2]
test eax, eax
jne 0x4d8af4
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x40], eax
push dword [ebp - 0x10]
push dword [ebp - 0x40]
mov ecx, dword [ebp + 0x10]
call fcn.00409128
push dword [ebp + 0xc]
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x70]
call dword [eax + 0x1c]
mov byte [ebp - 0x22], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.006193de
mov al, byte [ebp - 0x22]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4d9b65
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67a95c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
push str.deleteChildKey
push dword [0x6ed604]
lea ecx, [ebp - 0x14]
call fcn.0061a2ae
and dword [ebp - 4], 0
mov byte [ebp - 0xd], 0
and dword [ebp - 0x18], 0
push str.ADVAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4d9c18
and dword [ebp - 0x20], 0
push str.RegDeleteKeyExA
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4d9c0f
mov byte [ebp - 0xd], 1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x4d9be9
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], eax
jmp 0x4d9bf2
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x24], eax
push 0
mov eax, dword [ebp - 0x2c]
push dword [eax + 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x24]
call dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x4d9c28
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
jmp 0x4d9c5d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x4d9c3c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], eax
jmp 0x4d9c45
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x38]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0x34], eax
push 0xb6
push str.r:depot_contGhostGSSTrunkGhostWindowsRegistry_Win32RegistryKey.cpp
push dword [ebp - 0x34]
call fcn.004daaed
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x18], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.006193de
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4d9c93
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67a976
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
mov dword [ebp - 0x5c], ecx
push str.getValue
push dword [0x6ed604]
lea ecx, [ebp - 0x10]
call fcn.0061a2ae
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
and dword [ebp - 0x20], 0
jmp 0x4d9ce4
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
jge 0x4d9d89
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x4d9d0b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x60], eax
jmp 0x4d9d14
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x38]
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 0x60]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 2
jne 0x4d9d54
mov byte [ebp - 0x21], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.006193de
mov al, byte [ebp - 0x21]
jmp 0x4d9dd2
cmp dword [ebp - 0x1c], 0xea
jne 0x4d9d6d
push dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
call fcn.0058ab20
jmp 0x4d9cdd
push 0xd5
push str.r:depot_contGhostGSSTrunkGhostWindowsRegistry_Win32RegistryKey.cpp
push dword [ebp - 0x1c]
call fcn.004daaed
add esp, 0xc
jmp 0x4d9d89
and dword [ebp - 0x2c], 0
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x64]
mov eax, dword [ebp - 0x5c]
mov al, byte [eax + 0x11]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
call fcn.0058ac4a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.005904dd
mov byte [ebp - 0x2d], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.006193de
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4d9de0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67a988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov dword [ebp - 0x2c], ecx
push str.setValue
push dword [0x6ed604]
lea ecx, [ebp - 0x10]
call fcn.0061a2ae
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004daa14
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0058aff3
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x4d9e48
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], eax
jmp 0x4d9e51
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x28], eax
push 0xf4
push str.r:depot_contGhostGSSTrunkGhostWindowsRegistry_Win32RegistryKey.cpp
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x24]
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
call fcn.004daaed
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x18], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.006193de
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4d9ea5
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67a99a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x18], ecx
push str.deleteValue
push dword [0x6ed604]
lea ecx, [ebp - 0x10]
call fcn.0061a2ae
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x4d9eee
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
jmp 0x4d9ef7
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
push 0xff
push str.r:depot_contGhostGSSTrunkGhostWindowsRegistry_Win32RegistryKey.cpp
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push eax
call fcn.004daaed
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x18], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.006193de
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4d9f40
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67a9ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x20], ecx
push str.getSecurityDescriptorLength
push dword [0x6ed604]
lea ecx, [ebp - 0x14]
call fcn.0061a2ae
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
push 0x115
push str.r:depot_contGhostGSSTrunkGhostWindowsRegistry_Win32RegistryKey.cpp
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push eax
call fcn.004daaed
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.006193de
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x4da147
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67aa1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
mov dword [ebp - 0xc0], ecx
and dword [ebp - 0x44], 0
push str.getClassName
push dword [0x6ed604]
lea ecx, [ebp - 0x10]
call fcn.0061a2ae
mov dword [ebp - 4], 1
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x48], eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xea
je 0x4da1db
push 0x15d
push str.r:depot_contGhostGSSTrunkGhostWindowsRegistry_Win32RegistryKey.cpp
push dword [ebp - 0x3c]
call fcn.004daaed
add esp, 0xc
cmp dword [ebp - 0x1c], 0
jne 0x4da210
lea eax, [ebp - 0x51]
mov dword [ebp - 0x50], eax
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0040544c
mov eax, dword [ebp - 0x44]
or eax, 1
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.006193de
mov eax, dword [ebp + 8]
jmp 0x4da2f6
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
call fcn.0040b9b3
pop ecx
mov dword [ebp - 0x40], eax
push dword [ebp - 0x40]
lea ecx, [ebp - 0x18]
call fcn.0053dfdd
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x70], eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x3c], eax
push 0x173
push str.r:depot_contGhostGSSTrunkGhostWindowsRegistry_Win32RegistryKey.cpp
push dword [ebp - 0x3c]
call fcn.004daaed
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0x7d]
mov dword [ebp - 0x7c], eax
push 0
push 0
lea ecx, [ebp - 0x38]
call fcn.0040234a
push dword [ebp - 0xa0]
push dword [ebp - 0x74]
lea ecx, [ebp - 0x38]
call fcn.00402bbc
mov byte [ebp - 4], 3
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call fcn.004da304
pop ecx
pop ecx
mov eax, dword [ebp - 0x44]
or eax, 1
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.0040234a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.005c214e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.006193de
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4da684
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67aa75
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov dword [ebp - 0x70], ecx
push str.getValueByIndex
push dword [0x6ed604]
lea ecx, [ebp - 0x14]
call fcn.0061a2ae
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x70]
call fcn.004da811
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x2c], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x28]
push dword [ebp + 8]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xea
jne 0x4da76a
mov eax, dword [ebp - 0x70]
cmp dword [eax + 0x30], 0x4000
jb 0x4da727
mov byte [ebp - 0x19], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.006193de
mov al, byte [ebp - 0x19]
jmp 0x4da803
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x30]
shl eax, 1
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0x30], eax
mov eax, dword [ebp - 0x70]
push dword [eax + 0x30]
call fcn.0040b9b3
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x70]
add eax, 0x34
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x20]
je 0x4da76a
mov ecx, dword [ebp - 0x3c]
call fcn.005c214e
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x3c]
call fcn.0053dfdd
cmp dword [ebp - 0x18], 0xea
je 0x4da6c1
cmp dword [ebp - 0x18], 0x103
jne 0x4da795
mov byte [ebp - 0x21], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.006193de
mov al, byte [ebp - 0x21]
jmp 0x4da803
push 0x22b
push str.r:depot_contGhostGSSTrunkGhostWindowsRegistry_Win32RegistryKey.cpp
push dword [ebp - 0x18]
call fcn.004daaed
add esp, 0xc
cmp dword [ebp - 0x10], 0
jbe 0x4da7c9
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x34]
mov ecx, dword [ebp - 0x10]
movsx eax, byte [eax + ecx - 1]
test eax, eax
jne 0x4da7c9
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x40], eax
push dword [ebp - 0x10]
push dword [ebp - 0x40]
mov ecx, dword [ebp + 0x10]
call fcn.00402bbc
push dword [ebp + 0xc]
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x70]
call dword [eax + 0x20]
mov byte [ebp - 0x22], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.006193de
mov al, byte [ebp - 0x22]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0xc