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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x1001c10
push SysReAllocString
mov dword [ebp - 4], 0x80004005
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x10096f1
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push 0x1001bec
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call edi
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x10096d2
cmp dword [ebp - 0xc], eax
je 0x10096d2
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0x1001bd0
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call edi
mov esi, eax
test esi, esi
jne 0x10096c3
cmp dword [ebp - 0xc], eax
jne 0x10096de
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
mov dword [eax], 2
jmp 0x10096de
mov ecx, dword [ebp + 8]
mov dword [ecx], 1
mov dword [ebp - 4], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
pop edi
pop ebx
je 0x1009702
test esi, esi
jle 0x10096ff
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop esi
leave
ret 4

Function at 0x1009735
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x2001f
xor edi, edi
push edi
push 0x1001c10
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x10097bd
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
je 0x1009780
dec eax
push 1
pop ecx
je 0x100977d
dec eax
dec eax
je 0x100977a
push 0x57
pop esi
jmp 0x10097b4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
push 4
lea eax, [ebp - 8]
push eax
push 4
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1001bec
push dword [ebp - 4]
call edi
mov esi, eax
test esi, esi
jne 0x10097b4
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push esi
push 0x1001bd0
push dword [ebp - 4]
call edi
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jle 0x10097cd
and esi, 0xffff
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x100b221
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x10171b0]
push ebx
push esi
push edi
push 0x1001540
xor edi, edi
push edi
push edi
lea ecx, [ebp - 0x80]
mov dword [ebp + 0x194], eax
call fcn.01004604
push 0xffffffffffffffff
lea ecx, [ebp - 0x80]
call fcn.0100464e
mov ebx, dword [ebp + 0x1a4]
cmp ebx, edi
je 0x100b2e7
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x100b2e7
lea eax, [ebp - 0x70]
push eax
push 0x10008
push edi
push ebx
push dword [ebp + 0x1a0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x100b2ec
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
je 0x100b2cd
cmp esi, edi
jne 0x100b2dc
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x70]
call fcn.0100b221
mov esi, eax
cmp esi, edi
je 0x100b28e
jmp 0x100b2dc
push ebx
push dword [ebp + 0x1a0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100b2ec
mov esi, 0x3f2
lea ecx, [ebp - 0x80]
call fcn.01004677
lea ecx, [ebp - 0x80]
call fcn.01004629
mov ecx, dword [ebp + 0x194]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.010120eb
add ebp, 0x198
leave
ret 8
Function at 0x100b316
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x10171b0]
push ebx
push esi
push edi
push 0x1001540
xor esi, esi
push esi
push esi
lea ecx, [ebp - 0x80]
mov dword [ebp + 0x2a4], eax
call fcn.01004604
push 0xffffffffffffffff
lea ecx, [ebp - 0x80]
call fcn.0100464e
lea eax, [ebp - 0x6c]
push eax
mov edi, 0x20019
push edi
push esi
push dword [ebp + 0x2d4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push dword [ebp + 0x2b0]
call esi
test eax, eax
jne 0x100b405
mov ebx, dword [sym.imp.ole32.dll_StringFromGUID2]
push 0x102
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x2b4]
push eax
call ebx
push 0x81
lea eax, [ebp + 0x1a0]
push eax
lea eax, [ebp + 0x2c4]
push eax
call ebx
lea eax, [ebp - 0x68]
push eax
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x6c]
call esi
test eax, eax
jne 0x100b3fc
lea eax, [ebp - 0x70]
push eax
push edi
push ebx
lea eax, [ebp + 0x1a0]
push eax
push dword [ebp - 0x68]
call esi
test eax, eax
jne 0x100b3f3
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x2d8]
mov dword [ebp - 0x74], 4
push ebx
push 0x10
push 0x1001d9c
push ebx
push dword [ebp - 0x70]
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
je 0x100b409
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x100b421
push dword [ebp - 0x6c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x70]
call esi
push dword [ebp - 0x68]
call esi
xor esi, esi
inc esi
lea ecx, [ebp - 0x80]
call fcn.01004677
lea ecx, [ebp - 0x80]
call fcn.01004629
mov ecx, dword [ebp + 0x2a4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.010120eb
add ebp, 0x2a8
leave
ret 0x2c
Function at 0x100b44b
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2a4]
sub esp, 0x324
mov eax, dword [0x10171b0]
push esi
push edi
push 0x1001540
push 0
push 0
lea ecx, [ebp - 0x80]
mov dword [ebp + 0x2a0], eax
call fcn.01004604
push 0xffffffffffffffff
lea ecx, [ebp - 0x80]
call fcn.0100464e
lea eax, [ebp - 0x70]
push eax
mov edi, 0x2001f
push edi
push dword [ebp + 0x2d0]
push dword [ebp + 0x2ac]
call fcn.0100af39
test eax, eax
jne 0x100b52d
mov esi, dword [sym.imp.ole32.dll_StringFromGUID2]
push 0x102
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x2b0]
push eax
call esi
push 0x81
lea eax, [ebp + 0x19c]
push eax
lea eax, [ebp + 0x2c0]
push eax
call esi
lea eax, [ebp - 0x6c]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x70]
call fcn.0100af39
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x100b528
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp + 0x19c]
push eax
push dword [ebp - 0x6c]
call fcn.0100af39
test eax, eax
jne 0x100b523
push 4
lea eax, [ebp + 0x2d4]
push eax
push 4
push 0
push 0x1001d9c
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100b531
push dword [ebp - 0x6c]
call esi
push dword [ebp - 0x70]
call esi
xor esi, esi
jmp 0x100b549
push dword [ebp - 0x70]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x74]
call esi
push dword [ebp - 0x6c]
call esi
xor esi, esi
inc esi
lea ecx, [ebp - 0x80]
call fcn.01004677
lea ecx, [ebp - 0x80]
call fcn.01004629
mov ecx, dword [ebp + 0x2a0]
pop edi
mov eax, esi
pop esi
call fcn.010120eb
add ebp, 0x2a4
leave
ret 0x2c

Function at 0x100b572
Capabilities:
Delete file
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x10171b0]
mov dword [ebp + 0x3a0], eax
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push 0
push 0x1001dd0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100b60e
push edi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0x10000002
push 0x1001db4
push 0
push dword [ebp - 0x7c]
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
push dword [ebp - 0x7c]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x100b60e
push 0x104
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x3ac]
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x100b612
xor eax, eax
jmp 0x100b622
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x3a0]
call fcn.010120eb
add ebp, 0x3a4
leave
ret 4
Function at 0x100b908
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 4
pop ebx
xor esi, esi
push 0x1001540
push esi
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.01004604
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call fcn.0100464e
push 1
mov edi, 0x2001f
push edi
push 2
call fcn.0100afc2
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x100ba19
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push esi
mov esi, 0x1001e18
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
neg ecx
sbb ecx, ecx
mov edx, eax
and ecx, 0x40
neg edx
sbb edx, edx
and edx, 8
or ecx, edx
neg eax
sbb eax, eax
and eax, 2
or ecx, eax
mov eax, dword [ebp - 4]
and eax, 0xffffffb0
push ebx
or ecx, eax
lea eax, [ebp - 4]
push eax
push ebx
push 0
push esi
push dword [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], ecx
call esi
push dword [ebp - 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
lea eax, [ebp - 8]
push eax
push edi
push 0
push 0x1001ce8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100ba0e
cmp dword [ebp + 8], eax
je 0x100b9f9
mov edi, 0x1001d48
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push 2
push 0
push 0x10021a8
push dword [ebp - 8]
call esi
jmp 0x100ba07
push 0x10021a8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 8]
call ebx
jmp 0x100ba16
push dword [ebp + 8]
call fcn.0101263e
xor esi, esi
inc esi
lea ecx, [ebp - 0x20]
call fcn.01004677
lea ecx, [ebp - 0x20]
call fcn.01004629
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x100ba32
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x10171b0]
mov dword [ebp + 0x190], eax
lea eax, [ebp - 0x7c]
push eax
push 0x2001f
push 0
push 0x1001ce8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100bad5
push edi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0x10000002
mov edi, 0x10021a8
push edi
push 0
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x208
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x100bacb
push 0x1001e30
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x100bacb
push esi
mov esi, 0x1001d48
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push 2
push 0
push edi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp + 0x190]
xor eax, eax
inc eax
call fcn.010120eb
add ebp, 0x194
leave
ret
Function at 0x100baeb
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
push 0x1001540
push edi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
mov dword [ebp - 8], 4
call fcn.01004604
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0100464e
push 1
push 0x2001f
push 2
call fcn.0100afc2
mov ebx, eax
cmp ebx, edi
je 0x100bb75
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0x10
mov esi, 0x1001e18
push esi
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0x10
and ecx, 0x2f
or eax, ecx
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
pop esi
lea ecx, [ebp - 0x14]
call fcn.01004677
lea ecx, [ebp - 0x14]
call fcn.01004629
mov eax, edi
pop edi
pop ebx
leave
ret 4

Function at 0x100bb8d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 4
pop ebx
xor edi, edi
push edi
push 0x20019
push 2
mov dword [ebp - 4], ebx
mov dword [eax], edi
call fcn.0100afc2
cmp eax, edi
mov esi, dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
mov dword [ebp - 0xc], eax
je 0x100bc17
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push edi
push 0x10
push 0x1001e80
push edi
push eax
call esi
test eax, eax
jne 0x100bbe2
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [ebp - 8], edi
setne cl
or dword [eax], ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x10
push 0x1001e70
push edi
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x100bc0e
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
neg ecx
sbb ecx, ecx
and ecx, 2
or dword [eax], ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0x20019
push 3
call fcn.0100afc2
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x100bc5d
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push edi
push 0x10
push 0x1001e58
push edi
push eax
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x100bc54
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
neg ecx
sbb ecx, ecx
and ecx, ebx
or dword [eax], ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 4
Function at 0x100bd26
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x10171b0]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push edi
mov edi, 0x104
mov dword [ebp + 0x19c], eax
push edi
xor ebx, ebx
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], ebx
push ebx
jmp 0x100bdba
lea eax, [ebp - 0x78]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0x1a8]
mov dword [ebp - 0x80], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100bdaf
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push 0x10
push 0x10026cc
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x100bda6
mov eax, dword [ebp - 0x7c]
or dword [ebp - 0x70], eax
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x74]
push edi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
push dword [ebp + 0x1a8]
call esi
test eax, eax
je 0x100bd5d
and dword [ebp - 0x70], 7
push 4
lea eax, [ebp - 0x70]
push eax
push 4
push ebx
push 0x10026cc
push dword [ebp + 0x1a8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x1a8]
call fcn.0100bcb0
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
pop ebx
call fcn.010120eb
add ebp, 0x1a0
leave
ret 4

Function at 0x100be07
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10171b0]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov esi, 0x20019
xor ebx, ebx
push esi
mov dword [eax], ebx
call sym.mobsync.dll_RegGetHandlerTopLevelKey
cmp eax, ebx
mov dword [ebp - 0x10c], eax
jne 0x100be3a
xor eax, eax
jmp 0x100bea9
push edi
push 0x81
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromGUID2]
push ebx
push esi
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call fcn.0100b163
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, ebx
je 0x100be9e
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
mov dword [ebp + 8], 4
push ebx
push 0x10
push 0x10026cc
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
push edi
mov dword [ebp + 0xc], eax
call esi
xor eax, eax
cmp dword [ebp + 0xc], ebx
sete al
mov ebx, eax
push dword [ebp - 0x10c]
call esi
mov eax, ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.010120eb
leave
ret 8
Function at 0x100beb7
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5f4]
sub esp, 0x674
mov eax, dword [0x10171b0]
push edi
push 0x111
mov dword [ebp + 0x5f0], eax
push 0x1001828
lea eax, [ebp + 0x3cc]
xor edi, edi
push eax
mov dword [ebp - 0x54], edi
call fcn.010125ec
cmp dword [ebp + 0x608], edi
je 0x100bf06
lea eax, [ebp + 0x3cc]
push eax
push dword [ebp + 0x5fc]
call fcn.0100b221
push ebx
push esi
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 0x604]
lea eax, [ebp + 0x3cc]
push dword [ebp + 0x600]
push eax
push dword [ebp + 0x5fc]
call fcn.0100aeec
mov ebx, eax
cmp ebx, edi
je 0x100bf37
mov dword [ebp - 0x50], edi
cmp dword [ebp - 0x50], edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x100bfd7
lea eax, [ebp + 0x608]
push eax
lea eax, [ebp - 0x4c]
push eax
push edi
push 0x10000002
push 0x1001ce0
push edi
push dword [ebp - 0x50]
mov dword [ebp + 0x608], 0x20a
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
je 0x100bf8e
test byte [ebp + 0x600], 2
mov dword [ebp - 0x54], 1
jne 0x100bfd2
push dword [ebp - 0x50]
call esi
mov dword [ebp - 0x50], edi
jmp 0x100bfd2
push 0x105
lea eax, [ebp + 0x1c0]
push eax
call fcn.010126cf
test eax, eax
je 0x100bfd2
lea eax, [ebp + 0x1c0]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x100bfd2
push dword [ebp - 0x50]
call esi
lea eax, [ebp + 0x3cc]
push eax
push dword [ebp + 0x5fc]
mov dword [ebp - 0x50], edi
call fcn.0100b221
cmp dword [ebp - 0x50], edi
jne 0x100c013
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 0x604]
lea eax, [ebp + 0x3cc]
push dword [ebp + 0x600]
push eax
push dword [ebp + 0x5fc]
call fcn.0100aeec
mov ebx, eax
cmp ebx, edi
je 0x100c008
mov dword [ebp - 0x50], edi
jmp 0x100c013
xor eax, eax
inc eax
cmp dword [ebp - 0x58], eax
jne 0x100c071
mov dword [ebp - 0x54], eax
cmp ebx, edi
jne 0x100c071
cmp dword [ebp - 0x58], 1
jne 0x100c071
lea eax, [ebp - 0x5c]
push eax
push 0x40000
push 8
lea eax, [ebp + 0x3cc]
push eax
push dword [ebp + 0x5fc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100c071
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0100ad3f
test eax, eax
je 0x100c06c
lea eax, [ebp - 0x74]
push eax
push 4
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
push dword [ebp - 0x60]
call fcn.010127d5
pop ecx
push dword [ebp - 0x5c]
call esi
cmp dword [ebp - 0x50], edi
pop esi
pop ebx
je 0x100c0c5
cmp dword [ebp - 0x54], edi
je 0x100c0c5
test byte [ebp + 0x600], 2
je 0x100c0c5
push 0x105
lea eax, [ebp + 0x1c0]
push eax
call fcn.010126cf
test eax, eax
je 0x100c0c5
lea eax, [ebp + 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp + 0x1c0]
push eax
push 1
push edi
push 0x1001ce0
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp + 0x5f0]
mov eax, dword [ebp - 0x50]
pop edi
call fcn.010120eb
add ebp, 0x5f4
leave
ret 0x10
Function at 0x100c117
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10171b0]
mov dword [ebp - 4], eax
push 0x81
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x110], 1
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x100c20c
mov eax, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
push edi
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
mov esi, 0x20019
push esi
push 5
mov dword [eax], edi
call fcn.0100c0de
cmp eax, edi
mov dword [ebp - 0x114], eax
je 0x100c208
lea ecx, [ebp - 0x10c]
push ecx
push esi
push edi
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100c1ef
mov esi, dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
push ebx
push 4
pop ebx
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
mov dword [ebp + 8], ebx
push edi
push 0x10
push 0x1001e9c
push edi
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x100c1e2
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
mov dword [ebp + 8], ebx
push edi
push 0x10
push 0x1001e8c
push edi
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x100c1e2
mov dword [ebp - 0x110], edi
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x110], edi
jne 0x100c208
xor eax, eax
inc eax
jmp 0x100c20a
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
call fcn.010120eb
leave
ret 0xc

Function at 0x100c218
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x10171b0]
push ebx
mov dword [ebp + 0x9c], eax
push 0x81
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0xa8]
xor ebx, ebx
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x100c304
push esi
push 0x1001540
push ebx
push ebx
lea ecx, [ebp - 0x80]
call fcn.01004604
push 0xffffffffffffffff
lea ecx, [ebp - 0x80]
call fcn.0100464e
push 1
mov esi, 0x2001f
push esi
push 5
call fcn.0100c0de
cmp eax, ebx
mov dword [ebp - 0x74], eax
je 0x100c2f0
lea ecx, [ebp - 0x70]
push ecx
push esi
lea ecx, [ebp - 0x68]
push ecx
push eax
call fcn.0100af39
test eax, eax
jne 0x100c2e7
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp + 0xb0]
push eax
push 4
push ebx
push 0x1001e9c
push dword [ebp - 0x70]
mov dword [ebp - 0x6c], 1
call esi
test eax, eax
je 0x100c2c1
mov dword [ebp - 0x6c], ebx
push 4
lea eax, [ebp + 0xac]
push eax
push 4
push ebx
push 0x1001e8c
push dword [ebp - 0x70]
call esi
test eax, eax
jne 0x100c2de
mov dword [ebp - 0x6c], ebx
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x80]
call fcn.01004677
lea ecx, [ebp - 0x80]
call fcn.01004629
mov eax, dword [ebp - 0x6c]
pop esi
mov ecx, dword [ebp + 0x9c]
pop ebx
call fcn.010120eb
add ebp, 0xa0
leave
ret 0xc