Function at 0x4018d0
Capabilities:
Persist via print monitors registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x420
lea eax, [esp]
push ebx
mov word [eax], 0
push esi
lea ecx, [esp + 0x10]
push edi
mov byte [eax + 2], 0
push ebp
push ecx
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetControlPrintMonitorsLocal_Port
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401914
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x420
ret
lea eax, [esp + 0x20]
push str.Driver_ORG
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call esi
lea ecx, [esp + 0x14]
lea eax, [esp + 0x32c]
lea edx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push edx
push 0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
xor bl, bl
mov dword [esp + 0x28], 0x104
push eax
call ebp
test eax, eax
jne 0x40198d
mov ebx, 1
push str.Eplpmx01.DLL
lea eax, [esp + 0x330]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push eax
call edi
test eax, eax
je 0x401993
lea eax, [esp + 0x32c]
push str.Eplpmx01.DLL
mov byte [esp + 0x15], bl
push eax
call esi
jmp 0x401993
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [esp + 0x20]
push str.Driver
push eax
call esi
lea eax, [esp + 0x14]
lea ecx, [esp + 0x124]
lea edx, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov dword [esp + 0x20], 0x104
push 0
push eax
push ecx
call ebp
test eax, eax
jne 0x401a16
cmp bl, 1
jne 0x4019ef
lea eax, [esp + 0x124]
push str.EBPPMON.DLL
push eax
call edi
test eax, eax
je 0x401a16
mov byte [esp + 0x10], 1
push str.EBPPMON.DLL
jmp 0x401a0c
lea eax, [esp + 0x124]
push str.Eplpmx01.DLL
push eax
call edi
test eax, eax
je 0x401a16
mov byte [esp + 0x10], 1
push str.Eplpmx01.DLL
lea eax, [esp + 0x128]
push eax
call esi
lea eax, [esp + 0x20]
push str.Driver_BAK
push eax
call esi
lea eax, [esp + 0x14]
lea ecx, [esp + 0x228]
lea edx, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov dword [esp + 0x20], 0x104
push 0
push eax
push ecx
call ebp
test eax, eax
jne 0x401a61
lea eax, [esp + 0x228]
push str.LOCALMON.DLL
push eax
call edi
test eax, eax
je 0x401a75
lea eax, [esp + 0x228]
push str.LOCALMON.DLL
mov byte [esp + 0x16], 1
push eax
call esi
cmp byte [esp + 0x12], 1
jne 0x401aec
lea eax, [esp + 0x20]
push str.Driver_BAK
push eax
call esi
lea eax, [esp + 0x228]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call ebx
inc eax
lea ecx, [esp + 0x228]
lea edx, [esp + 0x20]
push eax
mov dword [esp + 0x18], eax
push ecx
mov eax, dword [esp + 0x20]
push 1
push 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0x2c], 1
push edx
push eax
call edi
test eax, eax
je 0x401ae0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x420
ret
mov dword [0x4082a8], 1
jmp 0x401af8
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp byte [esp + 0x11], 1
jne 0x401b61
lea eax, [esp + 0x20]
push str.Driver_ORG
push eax
call esi
lea eax, [esp + 0x32c]
push eax
call ebx
inc eax
lea ecx, [esp + 0x32c]
lea edx, [esp + 0x20]
push eax
mov dword [esp + 0x18], eax
push ecx
mov eax, dword [esp + 0x20]
push 1
mov dword [esp + 0x28], 1
push 0
push edx
push eax
call edi
test eax, eax
je 0x401b57
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x420
ret
mov dword [0x4082a8], 1
cmp byte [esp + 0x10], 1
jne 0x401bca
lea eax, [esp + 0x20]
push str.Driver
push eax
call esi
lea eax, [esp + 0x124]
push eax
call ebx
inc eax
lea ecx, [esp + 0x124]
lea edx, [esp + 0x20]
push eax
mov dword [esp + 0x18], eax
push ecx
mov eax, dword [esp + 0x20]
push 1
mov dword [esp + 0x28], 1
push 0
push edx
push eax
call edi
test eax, eax
je 0x401bc0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x420
ret
mov dword [0x4082a8], 1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x420
ret