joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006acf
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1ac]
sub esp, 0x22c
mov eax, dword [0x10171b0]
push ebx
push esi
push edi
xor ebx, ebx
push 0x10013e0
push ebx
push ebx
lea ecx, [ebp - 0x80]
mov dword [ebp + 0x1a8], eax
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
call fcn.01004750
push 0xffffffffffffffff
lea ecx, [ebp - 0x80]
call fcn.0100479a
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x104
push edi
lea eax, [ebp - 0x60]
push eax
push ebx
jmp 0x1006b7c
lea eax, [ebp - 0x6c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 0x1b4]
mov dword [ebp - 0x70], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x1006b88
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0x10
push 0x1001b6c
push ebx
push dword [ebp - 0x6c]
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x1006b68
mov eax, dword [ebp - 0x74]
or dword [ebp - 0x64], eax
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x68]
push edi
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x68]
push dword [ebp + 0x1b4]
call esi
cmp eax, ebx
je 0x1006b1f
cmp eax, 0x103
je 0x1006ba1
mov eax, dword [ebp + 0x1b8]
cmp eax, 0xffffffff
je 0x1006bbb
cmp eax, ebx
je 0x1006bbb
mov dword [ebp - 0x64], eax
push 4
lea eax, [ebp - 0x64]
push eax
push 4
push ebx
push 0x1001b6c
push dword [ebp + 0x1b4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x1b4]
call fcn.01005bfb
lea ecx, [ebp - 0x80]
call fcn.010047c3
lea ecx, [ebp - 0x80]
call fcn.01004775
mov ecx, dword [ebp + 0x1a8]
pop edi
pop esi
pop ebx
call fcn.0101204b
add ebp, 0x1ac
leave
ret 8

Function at 0x1006bee
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov esi, 0x20019
push esi
push 4
call fcn.01006072
mov edi, eax
cmp edi, ebx
je 0x1006c50
lea eax, [ebp + 8]
push eax
push esi
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006c50
mov eax, dword [ebp + 0x10]
add eax, eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push ebx
push 0x10000002
push 0x1001c00
push ebx
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x1006c47
inc ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x1006d09
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 4
pop ecx
xor edi, edi
lea eax, [esi + 0x204]
push edi
mov dword [ebp - 0x14], eax
mov dword [eax], edi
lea eax, [esi + 0x214]
push 0x20019
lea ebx, [esi + 0x230]
push ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], eax
mov dword [eax], edi
mov dword [ebx], edi
mov dword [esi + 0x234], edi
call fcn.01006072
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x1006e27
lea ecx, [ebp + 8]
push ecx
push 0x20019
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006e1e
lea eax, [ebp - 4]
push eax
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
push edi
push 0x10
push 0x1001c88
push edi
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x1006e15
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x234]
push eax
push edi
push 0x10
push 0x1001c64
push edi
push dword [ebp + 8]
mov dword [ebp - 4], 4
call ebx
test eax, eax
jne 0x1006e15
lea eax, [ebp - 8]
push eax
push 0x20019
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006e15
push 4
pop esi
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 4], esi
push edi
push 0x10
push 0x1001c3c
push edi
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x1006e0c
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], esi
push edi
push 0x10
push 0x1001c1c
push edi
push dword [ebp - 8]
call ebx
test eax, eax
je 0x1006e2b
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1006e43
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp + 8]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1006e4a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push 0x10013e0
push esi
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], esi
call fcn.01004750
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.0100479a
push 1
mov ebx, 0x2001f
push ebx
push 4
call fcn.01006072
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x1006f48
lea ecx, [ebp - 4]
push ecx
push ebx
push dword [ebp + 0xc]
push eax
call fcn.010049f0
test eax, eax
jne 0x1006f3f
push edi
mov edi, dword [ebp + 8]
push 4
lea eax, [edi + 0x230]
push eax
push 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1001c88
push dword [ebp - 4]
call esi
test eax, eax
jne 0x1006f35
push 4
lea eax, [edi + 0x234]
push eax
push 4
push 0
push 0x1001c64
push dword [ebp - 4]
call esi
test eax, eax
jne 0x1006f35
lea eax, [ebp - 8]
push eax
push ebx
push edi
push dword [ebp - 4]
call fcn.010049f0
test eax, eax
jne 0x1006f35
push 4
pop ebx
push ebx
lea eax, [edi + 0x214]
push eax
push ebx
push 0
push 0x1001c3c
push dword [ebp - 8]
call esi
test eax, eax
jne 0x1006f2c
push ebx
add edi, 0x204
push edi
push ebx
push eax
push 0x1001c1c
push dword [ebp - 8]
call esi
test eax, eax
jne 0x1006f2c
mov dword [ebp - 0xc], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.010047c3
lea ecx, [ebp - 0x1c]
call fcn.01004775
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret 8

Function at 0x1006f61
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push eax
push dword [ebp + 0xc]
xor edi, edi
push 0xbd1
push dword [0x10172a0]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov esi, 0x20019
push esi
push 4
call fcn.01006072
mov ebx, eax
cmp ebx, edi
je 0x1006fb4
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1006fb8
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1006fe4
push edi
push edi
push edi
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push edi
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1006fd4
xor edi, edi
inc edi
push dword [ebp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push ebx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1006feb
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x10171b0]
mov dword [ebp + 0x198], eax
push 0x104
lea eax, [ebp - 0x70]
push eax
call fcn.01013413
test eax, eax
je 0x10070be
push esi
push edi
push 0x10013e0
push 0
push 0
lea ecx, [ebp - 0x80]
call fcn.01004750
push 0xffffffffffffffff
lea ecx, [ebp - 0x80]
call fcn.0100479a
push 1
mov esi, 0x2001f
push esi
push 4
call fcn.01006072
mov edi, eax
test edi, edi
je 0x1007098
lea eax, [ebp - 0x74]
push eax
push esi
push dword [ebp + 0x1a4]
push edi
call fcn.010049f0
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x1007095
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x70]
push eax
push 1
push 0
push 0x1001ca8
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
push dword [ebp - 0x74]
je 0x100709c
call esi
push edi
call esi
xor esi, esi
jmp 0x10070aa
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push edi
call esi
xor esi, esi
inc esi
lea ecx, [ebp - 0x80]
call fcn.010047c3
lea ecx, [ebp - 0x80]
call fcn.01004775
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp + 0x198]
call fcn.0101204b
add ebp, 0x19c
leave
ret 4

Function at 0x10070d3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
mov esi, 0x20019
push esi
push 4
mov word [ebx], di
call fcn.01006072
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x1007116
lea ecx, [ebp - 8]
push ecx
push esi
push edi
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100711a
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1007177
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0x10000002
mov ebx, 0x1001ca8
push ebx
push edi
push dword [ebp - 8]
mov edi, dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
add esi, esi
mov dword [ebp - 4], esi
call edi
test eax, eax
je 0x1007164
push dword [ebp + 0x10]
call fcn.01006feb
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0
push 0x10000002
push ebx
push 0
push dword [ebp - 8]
call edi
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10071dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x10013e0
xor ebx, ebx
push ebx
push ebx
lea ecx, [ebp - 0x18]
call fcn.01004750
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.0100479a
mov edi, dword [ebp + 8]
push ebx
lea eax, [edi + 0x218]
push 0x20019
lea esi, [edi + 0x21c]
push 3
mov dword [ebp - 0xc], eax
mov dword [eax], ebx
mov dword [esi], 0xf
mov dword [edi + 0x220], 0x3c
mov dword [edi + 0x224], 0x7d0
mov dword [edi + 0x228], 1
mov dword [edi + 0x22c], ebx
call fcn.01006072
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x1007340
push 4
pop ebx
lea ecx, [ebp - 4]
push ecx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
push 0
push 0x10
push 0x1002714
push 0
push eax
mov dword [ebp - 4], ebx
call esi
lea eax, [ebp - 4]
push eax
lea eax, [edi + 0x228]
push eax
push 0
push 0x10
push 0x10026e8
push 0
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call esi
lea eax, [ebp - 4]
push eax
lea eax, [edi + 0x220]
push eax
push 0
push 0x10
push 0x10026a0
push 0
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call esi
lea eax, [ebp - 4]
push eax
lea eax, [edi + 0x224]
push eax
push 0
push 0x10
push 0x10026c4
push 0
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call esi
lea eax, [ebp - 4]
push eax
lea eax, [edi + 0x22c]
push eax
push 0
push 0x10
push 0x1002740
push 0
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call esi
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1007313
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
jmp 0x1007340
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
push 0
push 0x10
push 0x1001b6c
push 0
push dword [ebp - 8]
call esi
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp + 8]
call esi
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x18]
call fcn.010047c3
lea ecx, [ebp - 0x18]
call fcn.01004775
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x100743c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1ac]
sub esp, 0x22c
mov eax, dword [0x10171b0]
push ebx
push esi
mov dword [ebp + 0x1a8], eax
mov eax, dword [ebp + 0x1b8]
xor esi, esi
push 0x20019
mov dword [eax], esi
call sym.mobsync.dll_RegGetHandlerTopLevelKey
mov ebx, eax
cmp ebx, esi
je 0x1007528
push edi
mov edi, 0x105
push edi
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x100750a
lea eax, [ebp - 0x70]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x64]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10074ff
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x70]
call fcn.01005bb2
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x1b4]
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jge 0x10074f6
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0x10
push 0x100275c
push 0
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 4
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x10074f6
mov eax, dword [ebp - 0x78]
or dword [ebp - 0x6c], eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x68]
push edi
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x68]
push ebx
call esi
test eax, eax
je 0x100748f
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp + 0x1b8]
push ebx
mov dword [ecx], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp + 0x1a8]
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.0101204b
add ebp, 0x1ac
leave
ret 8

Function at 0x10078c6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x10013e0
xor edi, edi
push edi
push edi
lea ecx, [ebp - 0x18]
call fcn.01004750
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.0100479a
push 1
mov esi, 0x2001f
push esi
push 2
call fcn.01004a79
cmp eax, edi
mov ebx, dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
mov dword [ebp - 4], eax
je 0x100793a
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push 0x10
push 0x1001b94
push edi
push eax
mov dword [ebp - 8], 4
call ebx
test eax, eax
je 0x1007931
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 4]
call fcn.01006826
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push esi
push 3
call fcn.01004a79
mov esi, eax
cmp esi, edi
je 0x1007978
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x10
push 0x1001b6c
push edi
push esi
mov dword [ebp - 8], 4
call ebx
test eax, eax
je 0x1007971
push 0xffffffffffffffff
push esi
call fcn.01006acf
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x18]
call fcn.010047c3
lea ecx, [ebp - 0x18]
call fcn.01004775
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100798d
Capabilities:
Delete registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x10171b0]
push esi
push edi
push 0x10013e0
push 0
push 0
lea ecx, [ebp - 0x80]
mov dword [ebp + 0x90], eax
call fcn.01004750
push 0xffffffffffffffff
lea ecx, [ebp - 0x80]
call fcn.0100479a
mov esi, 0x2001f
push esi
call sym.mobsync.dll_RegGetHandlerTopLevelKey
mov edi, eax
test edi, edi
jne 0x10079de
lea ecx, [ebp - 0x80]
call fcn.010047c3
jmp 0x1007a30
push 0x81
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x9c]
call dword [sym.imp.ole32.dll_StringFromGUID2]
push 0
push esi
lea eax, [ebp - 0x74]
push eax
push edi
call fcn.01004c1a
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x1007a1e
push eax
call esi
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push edi
call fcn.01005c71
push 0
call fcn.01007542
lea ecx, [ebp - 0x80]
call fcn.010047c3
push edi
call esi
lea ecx, [ebp - 0x80]
call fcn.01004775
mov ecx, dword [ebp + 0x90]
xor eax, eax
pop edi
inc eax
pop esi
call fcn.0101204b
add ebp, 0x94
leave
ret 4
Function at 0x1007ad4
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x10171b0]
push esi
push edi
xor edi, edi
push edi
mov esi, 0x20019
push esi
push 4
mov dword [ebp + 0x1ac], eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
call fcn.01006072
cmp eax, edi
mov dword [ebp - 0x80], eax
jne 0x1007b16
xor eax, eax
jmp 0x1007c03
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x6c]
push ecx
push esi
push edi
push dword [ebp + 0x1c0]
push eax
call ebx
test eax, eax
jne 0x1007c3d
lea eax, [ebp - 0x68]
push eax
push esi
push edi
push dword [ebp + 0x1bc]
push dword [ebp - 0x6c]
call ebx
test eax, eax
jne 0x1007c30
lea eax, [ebp - 0x64]
push eax
push esi
push edi
push dword [ebp + 0x1b8]
push dword [ebp - 0x68]
call ebx
test eax, eax
jne 0x1007c23
push 0x104
lea eax, [ebp - 0x60]
push eax
push edi
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1007be5
lea eax, [ebp - 0x74]
push eax
push esi
push 0
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x64]
call ebx
test eax, eax
jne 0x1007c29
lea eax, [ebp + 0x1c0]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0x10
push 0x1001a14
push 0
push dword [ebp - 0x74]
mov dword [ebp + 0x1c0], 4
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
push dword [ebp - 0x74]
call edi
cmp dword [ebp - 0x78], 0
jne 0x1007c1a
inc dword [ebp - 0x70]
push 0x104
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1007b81
push dword [ebp - 0x64]
call edi
push dword [ebp - 0x68]
call edi
push dword [ebp - 0x6c]
call edi
mov esi, dword [ebp - 0x7c]
push dword [ebp - 0x80]
call edi
mov eax, esi
pop ebx
mov ecx, dword [ebp + 0x1ac]
pop edi
pop esi
call fcn.0101204b
add ebp, 0x1b0
leave
ret 0xc
mov dword [ebp - 0x7c], 1
jmp 0x1007be9
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x68]
call edi
jmp 0x1007c36
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x6c]
call edi
jmp 0x1007c43
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x1007bfb
Function at 0x1007c47
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
or dword [ebp - 0x14], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
push ebx
push esi
push edi
push 0x10013e0
xor ebx, ebx
xor edi, edi
push ebx
inc edi
push ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xc], edi
call fcn.01004750
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
call fcn.0100479a
call fcn.010078c6
push edi
mov esi, 0x2001f
push esi
push 2
call fcn.01004a79
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1007e4c
push dword [ebp + 0x14]
push edi
push esi
push eax
call fcn.01005e4b
mov esi, eax
cmp esi, ebx
mov dword [ebp + 0x14], esi
je 0x1007e41
cmp dword [ebp + 0x1c], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
je 0x1007deb
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push 0x1001d78
push esi
call ebx
test eax, eax
jne 0x1007e34
and dword [ebp + 0x1c], 0
cmp dword [ebp + 0xc], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jle 0x1007da4
mov edi, dword [ebp + 8]
add edi, 0x20c
lea eax, [ebp - 4]
push eax
push 0x2001f
lea eax, [edi - 0x20c]
push eax
push dword [ebp + 0x14]
call fcn.010049f0
test eax, eax
jne 0x1007e3a
lea eax, [edi - 4]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1007d3f
test ecx, ecx
je 0x1007d26
mov dword [ebp - 0x14], ecx
push 4
push eax
push 4
push 0
push 0x1001b94
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x1007e2d
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x1007d66
test eax, eax
je 0x1007d4d
mov dword [ebp - 0x10], eax
push 4
push edi
push 4
push 0
push 0x1001b84
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x1007e2d
lea eax, [edi + 4]
cmp dword [eax], 0xffffffff
je 0x1007d87
push 4
push eax
push 4
push 0
push 0x1001be4
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x1007e2d
push dword [ebp - 4]
call esi
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 0x1c]
add edi, 0x238
cmp eax, dword [ebp + 0xc]
jl 0x1007cf5
xor edi, edi
inc edi
push edi
push dword [ebp + 0x14]
call fcn.010066cb
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 8]
call fcn.01006826
push dword [ebp + 0x14]
call esi
push dword [ebp - 8]
call esi
cmp dword [ebp + 0x18], 0
je 0x1007dd2
push 0
call fcn.01007542
lea ecx, [ebp - 0x24]
call fcn.010047c3
lea ecx, [ebp - 0x24]
call fcn.01004775
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x18
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x10
push 0x1001d78
push 0
push esi
mov dword [ebp - 0x18], 4
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x1007cd8
cmp dword [ebp - 0xc], eax
je 0x1007cd8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
jmp 0x1007dd2
push dword [ebp - 4]
call esi
jmp 0x1007e3a
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x14]
call esi
jmp 0x1007e47
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call esi
xor edi, edi
jmp 0x1007dd2
Function at 0x1007e50
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x6d8]
sub esp, 0x758
mov eax, dword [0x10171b0]
push esi
push edi
mov dword [ebp + 0x6d4], eax
lea eax, [ebp - 0x60]
push eax
push 0x10015f0
push 1
xor esi, esi
push esi
push 0x10015d0
mov dword [ebp - 0x60], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp edi, esi
je 0x1007e90
mov dword [ebp - 0x60], esi
push esi
push 0x20019
push 4
call fcn.01004a79
cmp eax, esi
mov dword [ebp - 0x64], eax
je 0x1007fa9
cmp edi, esi
mov dword [ebp - 0x68], esi
jne 0x1007fa0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebx
mov ebx, 0x103
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x1a4]
push eax
push dword [ebp - 0x68]
mov dword [ebp - 0x74], 0x100
push dword [ebp - 0x64]
call edi
inc dword [ebp - 0x68]
cmp eax, ebx
mov dword [ebp - 0x80], eax
je 0x1007f9f
lea eax, [ebp - 0x70]
push eax
push 0x20019
push esi
lea eax, [ebp + 0x1a4]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1007f96
mov dword [ebp - 0x6c], esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x6c]
mov dword [ebp - 0x7c], 0x100
push dword [ebp - 0x70]
call edi
inc dword [ebp - 0x6c]
cmp eax, ebx
mov dword [ebp - 0x78], eax
je 0x1007f88
lea eax, [ebp - 0x5c]
push eax
push 0x197
lea eax, [ebp + 0x3a4]
push eax
call fcn.010046d8
mov eax, dword [ebp - 0x60]
cmp eax, esi
je 0x1007f62
mov ecx, dword [eax]
lea edx, [ebp + 0x3a4]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x1007f88
push 0x1001d98
push 0x197
lea eax, [ebp + 0x3a4]
push eax
call fcn.01005e19
test eax, eax
jl 0x1007f88
lea eax, [ebp + 0x3a4]
push eax
call fcn.010054bd
cmp dword [ebp - 0x78], esi
je 0x1007f10
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x80], esi
je 0x1007ebf
pop ebx
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x60]
pop edi
cmp eax, esi
pop esi
je 0x1007fb8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x1002510
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.01004cd8
mov ecx, dword [ebp + 0x6d4]
xor eax, eax
inc eax
call fcn.0101204b
add ebp, 0x6d8
leave
ret