Function at 0x10060d40
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087368
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x18], ecx
push ecx
mov eax, esp
push edi
push str.CAMEYO_HOOK__hs
push eax
call fcn.1003a800
add esp, 0xc
lea ecx, [ebp - 0x14]
mov edx, 0x104
call fcn.1003dc20
add esp, 4
mov ecx, 0x1008f1e4
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10060dbc
test dx, dx
je 0x10060db8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10060dbc
add eax, 4
add ecx, 4
test dx, dx
jne 0x10060d96
xor eax, eax
jmp 0x10060dc1
sbb eax, eax
or eax, 1
mov edx, dword [ebp - 0x14]
test eax, eax
sete byte [ebp - 0xd]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov eax, ebx
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10060de6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x10060e42
push edi
lea eax, [ebp - 0x14]
push str.Skipping_hook:__hs__ENV_
push eax
call fcn.1003a800
add esp, 0xc
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
call fcn.100394f0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x10060e2e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x100b31c4]
test eax, eax
jne 0x10060ee5
call fcn.10021470
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x10060e6b
push 0x80004005
call fcn.10021340
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
push dword [0x100b2ce4]
push str.SoftwareVOS_sHooks
push eax
call fcn.1003f740
mov esi, dword [ebp - 0x14]
add esp, 0xc
push 0x100b31c4
push esi
call fcn.1002b060
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ecx, dword [0x100b31c4]
test eax, eax
mov dword [ebp - 4], 0xffffffff
cmovne ecx, ebx
add esi, 0xfffffff0
mov dword [0x100b31c4], ecx
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10060edc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x100b31c4]
test eax, eax
je 0x10060f63
cmp eax, 0xffffffff
je 0x10060f63
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], 4
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], 4
push ecx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10060f4c
cmp dword [ebp - 0x14], eax
jne 0x10060f63
push ecx
mov eax, esp
push edi
push str.Skipping_hook:__hs
push eax
call fcn.1003a800
add esp, 0xc
call fcn.10021810
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push edi
push dword [0x100b31c4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [0x100b1b54], 0
je 0x10061035
mov ecx, str.NtCreateFile
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10060f97
test dl, dl
je 0x10060f93
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10060f97
add eax, 2
add ecx, 2
test dl, dl
jne 0x10060f77
xor eax, eax
jmp 0x10060f9c
sbb eax, eax
or eax, 1
test eax, eax
je 0x10061000
mov ecx, 0x100930f8
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10060fc7
test dl, dl
je 0x10060fc3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10060fc7
add eax, 2
add ecx, 2
test dl, dl
jne 0x10060fa7
xor eax, eax
jmp 0x10060fcc
sbb eax, eax
or eax, 1
test eax, eax
je 0x10061000
mov ecx, str.NtSetInformationFile
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10060ff7
test dl, dl
je 0x10060ff3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10060ff7
add eax, 2
add ecx, 2
test dl, dl
jne 0x10060fd7
xor eax, eax
jmp 0x10060ffc
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10061035
mov ecx, dword [ebp - 0x18]
mov edx, edi
call fcn.10060cc0
push 1
push 3
mov esi, eax
call fcn.1001a264
push 0x20
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.1001637c
push 0
push 3
mov esi, eax
call fcn.1001a264
jmp 0x100610e5
mov eax, dword [0x100b1b64]
mov esi, dword [ebp + 0xc]
push edi
push str.Before_hook:__S
mov dword [eax*4 + 0x100b1950], esi
inc eax
mov dword [0x100b1b64], eax
lea eax, [ebp - 0x14]
push eax
call fcn.1003a800
add esp, 0xc
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x14]
call fcn.100394f0
mov dword [ebp - 4], 0xffffffff
mov ecx, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1006108e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x20
push 0
push esi
push dword [ebp + 8]
push edi
push dword [ebp - 0x18]
call fcn.10016460
push edi
mov esi, eax
lea eax, [ebp - 0x18]
push str.After_hook:__S
push eax
call fcn.1003a800
add esp, 0xc
mov dword [ebp - 4], 3
mov edx, dword [ebp - 0x18]
call fcn.100394f0
mov dword [ebp - 4], 0xffffffff
mov ecx, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100610e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x10061132
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0x1c]
push str._Failed_hooking__S__LE_d
push eax
call fcn.1003a800
add esp, 0x10
mov dword [ebp - 4], 4
mov edx, dword [ebp - 0x1c]
call fcn.100394f0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x10061132
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret