Function at 0x403c0c
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 0x403c3c
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.0x403c4f
mov eax, dword [ebp - 0xc]
jmp dword [eax*4 + 0x403e6c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
lea eax, [edx + ecx*8]
push eax
push 0x20019
push 0
push 0x41300c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403cad
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 0x413030
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 0x403d18
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 str.SOFTWAREIBMNPdirectDataCommon
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403d18
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 str.HotkeyFunction
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 0x403d4b
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 0x403d4b
mov dword [ebp - 0x10], 1
jmp 0x403d52
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
jmp case.default.0x403c4f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
lea edx, [ecx + eax*8]
push edx
push 0x20019
push 0
push 0x413074
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403def
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 0x403de2
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 0x403de2
mov dword [ebp - 0x14], 1
jmp 0x403de9
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
jmp case.default.0x403c4f
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
lea ecx, [eax + edx*8]
push ecx
push 0x20019
push 0
push str.SOFTWAREIBMNPDirect
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403e4e
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 0x403e5c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [edx + ecx*8 + 4], 0
jmp case.default.0x403c4f
mov eax, 1
jmp 0x403e68
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret