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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x2001f
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x10020a1
push ebx
push 4
pop ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, 0x1001210
push esi
push dword [ebp - 4]
mov dword [ebp + 8], ebx
call edi
mov ecx, dword [ebp + 0x10]
test eax, eax
jne 0x1001e70
cmp dword [ebp - 8], ebx
jne 0x1001e70
cmp dword [ebp + 8], ebx
jne 0x1001e70
cmp dword [ebp - 0x10], ecx
je 0x1001ebe
mov dword [ebp - 0xc], 1
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001ea2
test dword [eax + 0x1c], 0x1000
je 0x1001ea2
push ecx
push dword [ebp + 0xc]
push 0x1001180
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010019c8
push ebx
lea eax, [ebp + 0x10]
push eax
push ebx
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x10020a0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov esi, 0x10011fc
push esi
push dword [ebp - 4]
mov dword [ebp + 8], ebx
call edi
mov ecx, dword [ebp + 0x14]
test eax, eax
jne 0x1001ef0
cmp dword [ebp - 8], ebx
jne 0x1001ef0
cmp dword [ebp + 8], ebx
jne 0x1001ef0
cmp dword [ebp - 0x14], ecx
je 0x1001f3e
mov dword [ebp - 0xc], 1
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001f22
test dword [eax + 0x1c], 0x1000
je 0x1001f22
push ecx
push dword [ebp + 0xc]
push 0x1001180
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010019c8
push ebx
lea eax, [ebp + 0x14]
push eax
push ebx
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x10020a0
push 8
pop ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov esi, 0x10011e8
push esi
push dword [ebp - 4]
mov dword [ebp + 8], ebx
call edi
test eax, eax
jne 0x1001f7d
cmp dword [ebp - 8], 0xb
jne 0x1001f7d
cmp dword [ebp + 8], ebx
jne 0x1001f7d
push dword [ebp + 0x18]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
je 0x1001fca
mov dword [ebp - 0xc], 1
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001fae
test dword [eax + 0x1c], 0x1000
je 0x1001fae
push dword [ebp + 0xc]
push 0x1001180
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100195b
push ebx
push dword [ebp + 0x18]
push 0xb
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x10020a0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp + 8], ebx
push 0
mov ebx, 0x10011d4
push ebx
push dword [ebp - 4]
call edi
mov esi, eax
test esi, esi
jne 0x1002009
cmp dword [ebp - 8], 0xb
jne 0x1002009
cmp dword [ebp + 8], 8
jne 0x1002009
push dword [ebp + 0x1c]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
je 0x1002053
mov dword [ebp - 0xc], 1
mov eax, dword [section..data]
cmp eax, section..data
je 0x100203a
test dword [eax + 0x1c], 0x1000
je 0x100203a
push dword [ebp + 0xc]
push 0x1001180
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100195b
push 8
push dword [ebp + 0x1c]
push 0xb
push 0
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x10020a0
cmp dword [ebp - 0xc], 0
je 0x10020a0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push 0x40000000
push 0x10011c0
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100208e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10020a0
push dword [ebp + 0xc]
push edi
call fcn.01003024
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
cmp dword [ebp - 4], 0
je 0x10020b0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret 0x18