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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100950b6
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x100bc06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x41c], ebx
call fcn.10002ff0
mov edi, eax
test edi, edi
je 0x10036a47
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x100993c0]
mov ecx, edi
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x414], esi
push ecx
mov dword [ebp - 4], 0
mov ecx, esp
push str.CRLog
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x418], 0x400
call fcn.100097c0
lea ecx, [ebp - 0x420]
call fcn.10038250
add esp, 4
test al, al
jne 0x1003682a
lea ecx, [ebp - 0x414]
call fcn.10005140
mov esi, dword [ebp - 0x414]
add esi, 0xfffffff0
mov ecx, esi
call fcn.1000bff0
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10036a29
mov edi, dword [esi]
push esi
mov edx, dword [edi]
mov esi, dword [edx + 4]
jmp 0x10036a1d
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0
push str.GUID
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100368cf
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x414]
push 0x100ac224
push eax
call fcn.10022af0
add esp, 8
mov edi, esp
mov dword [ebp - 0x41c], edi
mov esi, dword [ebp - 0x414]
lea ecx, [esi - 0x10]
mov dword [ebp - 0x424], ecx
call fcn.1000bff0
add eax, 0x10
mov dword [edi], eax
call fcn.10036460
add esp, 4
test al, al
je 0x100368cf
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x424]
mov ecx, esi
call fcn.1000bff0
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jmp 0x10036a13
lea ecx, [ebp - 0x41c]
call fcn.10036670
mov byte [ebp - 4], 1
lea edi, [esi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x424], edi
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x10036955
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x10036940
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x10036940
call fcn.1000bff0
mov dword [ebp - 0x42c], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x10036935
mov edi, dword [edi]
push dword [ebp - 0x424]
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x100993c0]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x42c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x414], esi
jmp 0x10036955
push dword [edx - 0xc]
lea ecx, [ebp - 0x414]
push edx
call fcn.10005050
mov esi, dword [ebp - 0x414]
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov ecx, dword [ebp - 0x41c]
mov eax, edi
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1003698e
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x100993c0]
mov ecx, ebx
call edi
mov ebx, dword [ebp - 0x428]
or edi, 0xffffffff
cmp dword [esi - 4], 1
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x428], eax
jle 0x100369b5
push eax
lea ecx, [ebp - 0x414]
call fcn.10005280
mov esi, dword [ebp - 0x414]
mov eax, dword [ebp - 0x428]
lea eax, [eax*2 + 1]
push eax
mov eax, dword [ebp - 0x420]
push esi
push 1
push 0
push str.GUID
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100369e9
lea ecx, [ebp - 0x414]
call fcn.10005140
mov esi, dword [ebp - 0x414]
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
mov ecx, esi
call fcn.1000bff0
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x10036a29
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100993c0]
mov ecx, edi
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005540b
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10002d90
int3