joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004b10
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10005f50
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10004b33
xor eax, eax
jmp 0x10004b61
push str.Device_Parameters
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10004b5c
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10004b61
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10004eb0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10005ed0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10004ed6
xor eax, eax
jmp 0x10004fde
cmp dword [ebp + 0x10], 1
je 0x10004ef4
cmp dword [ebp + 0x10], 2
je 0x10004ef4
push 0x3ec
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10004fde
cmp dword [ebp + 0x18], 1
je 0x10004f18
cmp dword [ebp + 0x18], 2
je 0x10004f18
cmp dword [ebp + 0x18], 4
je 0x10004f18
push 0x3ec
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10004fde
mov edx, dword [ebp - 8]
cmp dword [edx + 8], 0
je 0x10004f33
push 0xe0000208
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10004fde
cmp dword [ebp + 0x10], 1
je 0x10004f4a
mov eax, dword [ebp + 0x10]
push eax
push str.unimplemented_for_scope__d_n
call 0x10000000
add esp, 8
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 1
je 0x10004f8c
cmp dword [ebp - 0xc], 2
je 0x10004f64
cmp dword [ebp - 0xc], 4
je 0x10004f75
jmp 0x10004fa3
mov edx, dword [ebp - 8]
push edx
call fcn.10006bf0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10004fbb
mov eax, dword [ebp - 8]
push eax
call fcn.10006bf0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10004f8c
jmp 0x10004fbb
push str.Device_Parameters
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 4], eax
jmp 0x10004fbb
mov eax, dword [ebp + 0x18]
push eax
push 0x1000d820
call 0x10000000
add esp, 8
mov dword [ebp - 4], 0x78
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 4], 0
jne 0x10004fd4
mov dword [ebp - 0x10], 1
jmp 0x10004fdb
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10005070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10005ed0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000509d
xor eax, eax
jmp 0x1000515d
cmp dword [ebp + 0x1c], 0
je 0x100050b8
cmp dword [ebp + 0x18], 0
jne 0x100050b8
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000515d
push 0x10009788
call 0x10000000
add esp, 4
cmp dword [ebp + 0x10], eax
jae 0x1000515a
imul edx, dword [ebp + 0x10], 0xc
cmp dword [edx + 0x1000978c], 0
je 0x1000515a
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0
imul ecx, dword [ebp + 0x10], 0xc
mov edx, dword [ecx + 0x1000978c]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jne 0x1000511a
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1000514c
cmp dword [ebp - 4], 0xea
je 0x10005129
cmp dword [ebp + 0x1c], 0
jne 0x10005133
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1000514c
cmp dword [ebp - 4], 0
jne 0x10005142
mov dword [ebp - 0x10], 1
jmp 0x1000514c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp + 0x20], 0
je 0x1000515a
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10005170
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10005ed0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000519d
xor eax, eax
jmp 0x1000525d
cmp dword [ebp + 0x1c], 0
je 0x100051b8
cmp dword [ebp + 0x18], 0
jne 0x100051b8
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000525d
push 0x10009788
call 0x10000000
add esp, 4
cmp dword [ebp + 0x10], eax
jae 0x1000525a
imul edx, dword [ebp + 0x10], 0xc
cmp dword [edx + 0x10009790], 0
je 0x1000525a
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0
imul ecx, dword [ebp + 0x10], 0xc
mov edx, dword [ecx + 0x10009790]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jne 0x1000521a
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1000524c
cmp dword [ebp - 4], 0xea
je 0x10005229
cmp dword [ebp + 0x1c], 0
jne 0x10005233
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1000524c
cmp dword [ebp - 4], 0
jne 0x10005242
mov dword [ebp - 0x10], 1
jmp 0x1000524c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp + 0x20], 0
je 0x1000525a
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x10005270
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10005ed0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000529a
xor eax, eax
jmp 0x10005305
push 0x10009788
call 0x10000000
add esp, 4
cmp dword [ebp + 0x10], eax
jae 0x10005302
imul edx, dword [ebp + 0x10], 0xc
cmp dword [edx + 0x1000978c], 0
je 0x10005302
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
imul edx, dword [ebp + 0x10], 0xc
mov eax, dword [edx + 0x10009788]
push eax
push 0
imul ecx, dword [ebp + 0x10], 0xc
mov edx, dword [ecx + 0x1000978c]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100052f8
mov dword [ebp - 0xc], 1
jmp 0x10005302
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10005700
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
push 1
push 0xf003f
mov edx, dword [ebp + 8]
push edx
call sym.vtvbtoyx.dll__SetupDiOpenClassRegKeyExW_20
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1000572e
xor eax, eax
jmp 0x100057b4
cmp dword [ebp + 0x14], 0
je 0x10005770
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x10009328
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10005766
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x100057b4
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
shl edx, 1
mov dword [ebp - 8], edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
push 0x10009328
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100057a5
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x100057b4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret 0x18
Function at 0x100058a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov dword [ebp - 4], 0
cmp dword [ebp + 0x14], 0
je 0x100058bf
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
push 1
push 0xf003f
push 0
call sym.vtvbtoyx.dll__SetupDiOpenClassRegKeyExW_20
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x100058e5
xor eax, eax
jmp 0x10005a52
mov dword [ebp - 0xc], 0
jmp 0x100058f7
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x68]
push ecx
call 0x10000000
add esp, 4
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1000593a
cmp dword [ebp - 0x14], 0xea
jne 0x10005a14
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10005968
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x10005a52
mov dword [ebp - 0x10], 0x200
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x268]
push edx
push 0
push 0
push 0x10009328
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10005a0a
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x268]
push edx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x10005a0a
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jae 0x10005a01
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx - 0x68]
cmp eax, 0x7b
jne 0x100059e4
mov ecx, 2
imul edx, ecx, 0x25
movzx eax, word [ebp + edx - 0x68]
cmp eax, 0x7d
jne 0x100059e4
mov ecx, 2
imul edx, ecx, 0x25
xor eax, eax
mov word [ebp + edx - 0x68], ax
mov ecx, dword [ebp - 4]
shl ecx, 4
add ecx, dword [ebp + 0xc]
push ecx
mov edx, 2
shl edx, 0
lea eax, [ebp + edx - 0x68]
push eax
call dword [0x10000000]
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
je 0x10005a1c
jmp 0x10005a21
jmp 0x100058ee
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x14], 0
je 0x10005a39
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 4]
jae 0x10005a4d
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10005a52
mov eax, 1
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10006650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push str.Control
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100066b9
mov dword [ebp - 0xc], 4
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push str.Linked
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100066af
cmp dword [ebp - 0x10], 4
jne 0x100066af
cmp dword [ebp - 0x14], 0
je 0x100066af
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x100069b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov dword [ebp - 0xc], 0x64
push 0
lea eax, [ebp - 8]
push eax
push 0
push 4
push 0
push 0
push 0
push str.SystemCurrentControlSetControlClass
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100069fc
mov ecx, dword [ebp - 4]
push ecx
push 0x1000d4b0
call 0x10000000
add esp, 8
mov eax, dword [ebp - 4]
jmp 0x10006a73
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x70]
push eax
push 0
push 2
push 0x1000958c
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10006a66
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
lea edx, [ebp - 0x70]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10006a55
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
jmp 0x10006a73
mov edx, dword [ebp - 4]
push edx
push str.Failed_to_open_driver_key__error__u._n
call 0x10000000
add esp, 8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10006a80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
push eax
push 0x2001f
mov ecx, dword [ebp + 8]
push ecx
call fcn.100069b0
add esp, 0xc
test eax, eax
jne 0x10006aad
xor eax, eax
jmp 0x10006bdf
push 0
lea edx, [ebp - 0xc]
push edx
push 0
push 4
push 0
push 0
push 0
push str.SystemCurrentControlSetControlClass
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10006aef
mov eax, dword [ebp - 4]
push eax
push str.Failed_to_open_driver_class_root_key__error__u._n
call 0x10000000
add esp, 8
mov eax, dword [ebp - 4]
jmp 0x10006bdf
lea ecx, [ebp - 0x78]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x10
push edx
call fcn.10006110
add esp, 8
push 0x10009784
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
push str._04u
lea eax, [ebp - 0x78]
push eax
call 0x10000000
add esp, 4
sub eax, 0x27
push eax
lea ecx, [ebp - 0x2a]
push ecx
call sub.MSVCRT.dll_swprintf
add esp, 0x10
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
lea edx, [ebp - 0x78]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10006b75
jmp 0x10006bc1
cmp dword [ebp - 0x14], 1
jne 0x10006bb0
lea ecx, [ebp - 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
lea edx, [ebp - 0x78]
push edx
push 1
push 0
push 0x1000958c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x10006bdf
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10006b11
mov edx, dword [ebp - 4]
push edx
push str.Failed_to_create_driver_key__error__u._n
call 0x10000000
add esp, 8
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10006bf0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
push 0x2001f
mov ecx, dword [ebp + 8]
push ecx
call fcn.100069b0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10006c30
push 0x100096ec
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10006c40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x10009788
call 0x10000000
add esp, 4
cmp dword [ebp + 0xc], eax
jae 0x10006caa
imul eax, dword [ebp + 0xc], 0xc
cmp dword [eax + 0x10009790], 0
je 0x10006caa
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
imul eax, dword [ebp + 0xc], 0xc
mov ecx, dword [eax + 0x10009788]
push ecx
push 0
imul edx, dword [ebp + 0xc], 0xc
mov eax, dword [edx + 0x10009790]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10006ca0
mov eax, 1
jmp 0x10006cac
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10006d80
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [ebp + 8]
push eax
call fcn.10006bf0
add esp, 4
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
push 0x100096ec
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea edx, [ebp - 8]
push edx
push 0
push 0
push str.SystemCurrentControlSetEnum
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10006e25
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
lea edx, [ebp - 0x198]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5c
lea eax, [ebp - 0x198]
push eax
call sub.MSVCRT.dll_wcsrchr
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10006e1b
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx], cx
lea eax, [ebp - 0x198]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x10006de6
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], 1
mov esp, ebp
pop ebp
ret
Function at 0x10006ee0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov dword [ebp - 0xc], 1
push 0x260
call 0x10000000
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10006f15
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000705c
mov eax, dword [ebp + 0x10]
push eax
call 0x10000000
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 0xc], edx
cmp dword [ebp - 8], 0
jne 0x10006f4e
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
push eax
call 0x10000000
add esp, 4
xor eax, eax
jmp 0x1000705c
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll__wcsupr]
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
push edx
call fcn.10006940
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
add ecx, 0x10
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov edx, dword [edx + 0xc]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
push eax
call fcn.10006020
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], 0x22c
cmp dword [ebp + 0x14], 0
je 0x10006fe8
push 4
lea ecx, [ebp - 0xc]
push ecx
push 4
push 0
push str.Phantom
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0xa0]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.10006110
add esp, 8
push 0x4e
lea eax, [ebp - 0xa0]
push eax
push 8
mov ecx, dword [ebp - 4]
push ecx
call fcn.10006c40
add esp, 0x10
push 0
lea edx, [ebp - 0x50]
push edx
call 0x10000000
add esp, 4
push eax
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sym.vtvbtoyx.dll__SetupDiClassNameFromGuidW_16
test eax, eax
je 0x10007059
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x50]
push edx
push 7
mov eax, dword [ebp - 4]
push eax
call fcn.10006c40
add esp, 0x10
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10007060
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
jmp 0x10007082
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x1000719f
lea ecx, [ebp - 0x220]
push ecx
call 0x10000000
add esp, 4
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000719a
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x220]
cmp edx, 0x23
jne 0x10007193
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10007193
mov eax, dword [ebp + 0x14]
and eax, 2
je 0x10007126
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10006650
add esp, 4
test eax, eax
je 0x10007193
lea edx, [ebp - 0x21e]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100066c0
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0x208
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push str.SymbolicLink
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10007189
cmp dword [ebp - 0x14], 1
jne 0x10007189
lea eax, [ebp - 0x428]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.10006900
add esp, 8
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0
jmp 0x10007079
mov esp, ebp
pop ebp
ret