Function at 0x403b0c
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 4
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + eax*8], 0
je 0x403b3c
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx*8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 3
ja case.default.0x403b4f
mov eax, dword [ebp - 0xc]
jmp dword [eax*4 + 0x403d6c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
lea eax, [edx + ecx*8]
push eax
push 0x20019
push 0
push 0x412fbc
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403bad
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
lea ecx, [eax + edx*8 + 4]
push ecx
push 0
push 0
push 0x412fe0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx*8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 8], eax
jmp 0x403c18
push 0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
lea ecx, [eax + edx*8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x412ff0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403c18
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [eax + edx*8 + 4], 1
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
lea ecx, [eax + edx*8 + 4]
push ecx
push 4
push 0
push 0x413014
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx*8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403c4b
push 1
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4]
push ecx
push 4
push 0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx*8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
jne 0x403c4b
mov dword [ebp - 0x10], 1
jmp 0x403c52
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
jmp case.default.0x403b4f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
lea edx, [ecx + eax*8]
push edx
push 0x20019
push 0
push 0x413024
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403cef
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
lea eax, [edx + ecx*8 + 4]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + ecx*8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403ce2
push 1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4]
push eax
push 4
push 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + ecx*8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
jne 0x403ce2
mov dword [ebp - 0x14], 1
jmp 0x403ce9
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
jmp case.default.0x403b4f
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
lea ecx, [eax + edx*8]
push ecx
push 0x20019
push 0
push 0x413068
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403d4e
push 1
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4]
push ecx
push 1
push 0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx*8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [eax + edx*8 + 4], 1
jmp 0x403d5c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [edx + ecx*8 + 4], 0
jmp case.default.0x403b4f
mov eax, 1
jmp 0x403d68
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret