Function at 0x42bfe0
Capabilities:
Create service
Delete registry key
Delete service
Modify service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x462d68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcf0
mov eax, dword [0x47d97c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x18], eax
xor esi, esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0xd08], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push str.OPCDrv
lea ecx, [esp + 0x30]
mov byte [esp + 0xd0c], 3
mov dword [esp + 0x48], esi
mov dword [esp + 0x18], esi
xor edi, edi
mov dword [esp + 0x20], 0x10
call fcn.00447f7a
mov eax, dword [0x47d97c]
mov dword [esp + 0x38], eax
push str.OPC_Server
lea ecx, [esp + 0x34]
mov byte [esp + 0xd0c], 5
call fcn.00447f7a
mov bl, 6
mov byte [esp + 0xd08], bl
call fcn.0042dd10
push 0x4821b8
lea ecx, [esp + 0x24]
call fcn.00448045
lea ecx, [esp + 0x10]
push 1
push ecx
lea ecx, [esp + 0x28]
call fcn.00445788
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xd0c], 7
call fcn.00448045
lea ecx, [esp + 0x10]
mov byte [esp + 0xd08], bl
call fcn.00447f0c
push 0x4821b8
lea ecx, [esp + 0x28]
call fcn.00448045
lea edx, [esp + 0x10]
push 3
push edx
lea ecx, [esp + 0x2c]
call fcn.00445788
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xd0c], 8
call fcn.00448045
lea ecx, [esp + 0x10]
mov byte [esp + 0xd08], bl
call fcn.00447f0c
push 0x4821c4
lea eax, [esp + 0x2c]
push str.Intellution.
push eax
call fcn.00448215
push 0x47d270
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0xd14], 9
call fcn.004481a1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd0c], 0xa
call fcn.00448045
lea ecx, [esp + 0x10]
mov byte [esp + 0xd08], 9
call fcn.00447f0c
lea ecx, [esp + 0x28]
mov byte [esp + 0xd08], bl
call fcn.00447f0c
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x358]
push edx
push eax
call ebp
push 0x4821c4
lea ecx, [esp + 0x38]
push str.Intellution.
push ecx
call fcn.00448215
push str.Drv.
lea edx, [esp + 0x2c]
push eax
push edx
mov byte [esp + 0xd14], 0xb
call fcn.004481a1
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
push eax
push edx
mov byte [esp + 0xd14], 0xc
call fcn.0044813b
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd0c], 0xd
call fcn.00448045
lea ecx, [esp + 0x10]
mov byte [esp + 0xd08], 0xc
call fcn.00447f0c
lea ecx, [esp + 0x28]
mov byte [esp + 0xd08], 0xb
call fcn.00447f0c
lea ecx, [esp + 0x34]
mov byte [esp + 0xd08], bl
call fcn.00447f0c
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x254]
push eax
push ecx
call ebp
push 0x4821bc
lea ecx, [esp + 0x1c]
call fcn.00448045
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x8f0]
push edx
push eax
call ebp
push 0x47a324
lea ecx, [esp + 0x2c]
push 0x4821bc
push ecx
call fcn.004481a1
lea edx, [esp + 0x24]
mov byte [esp + 0xd08], 0xe
push edx
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0044813b
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd0c], 0xf
call fcn.00448045
lea ecx, [esp + 0x10]
mov byte [esp + 0xd08], 0xe
call fcn.00447f0c
lea ecx, [esp + 0x28]
mov byte [esp + 0xd08], bl
call fcn.00447f0c
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x9f4]
push ecx
push edx
call ebp
mov eax, dword [0x4821c8]
lea ecx, [esp + 0xbfc]
push eax
push ecx
call ebp
mov edx, dword [0x4821c8]
lea eax, [esp + 0x6e8]
push edx
push eax
call ebp
lea ecx, [esp + 0x6e8]
push str.__Automation
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x1d0]
push 0x80
push edx
push 0x4668d0
call fcn.0042dbf0
test eax, eax
jge 0x42c312
push 0x9c46
mov ecx, 0x4822f4
call fcn.004484ff
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4822f4
call fcn.00447c81
push edi
push 1
push ecx
mov byte [esp + 0xd18], 0x10
mov ecx, esp
mov dword [esp + 0x20], esp
jmp 0x42ca0a
lea eax, [esp + 0xcc]
push str.CLSID_
push eax
call ebp
lea ecx, [esp + 0x1d0]
lea edx, [esp + 0xcc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x1d0]
lea ecx, [esp + 0x48]
push eax
push ecx
call ebp
lea edx, [esp + 0x45c]
push str.AppID_
push edx
call ebp
lea eax, [esp + 0x48]
lea ecx, [esp + 0x45c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x560]
push 0x80
push edx
push 0x4668c0
call fcn.0042dbf0
test eax, eax
jge 0x42c3bb
push 0x9c47
mov ecx, 0x4822f4
call fcn.004484ff
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4822f4
call fcn.00447c81
push 0
push 1
push ecx
mov byte [esp + 0xd18], 0x11
mov ecx, esp
mov dword [esp + 0x20], esp
jmp 0x42ca0a
lea eax, [esp + 0x9f4]
lea ecx, [esp + 0x254]
push eax
push 0
push ecx
call fcn.0042d980
add esp, 0xc
test eax, eax
je 0x42c9d7
lea edx, [esp + 0x1d0]
lea eax, [esp + 0x254]
push edx
push str.CLSID
push eax
call fcn.0042d980
add esp, 0xc
test eax, eax
je 0x42c9d7
lea ecx, [esp + 0x8f0]
lea edx, [esp + 0x358]
push ecx
push 0
push edx
call fcn.0042d980
add esp, 0xc
test eax, eax
je 0x42c9d7
lea eax, [esp + 0x254]
lea ecx, [esp + 0x358]
push eax
push str.CurVer
push ecx
call fcn.0042d980
add esp, 0xc
test eax, eax
je 0x42c9d7
lea edx, [esp + 0x1d0]
lea eax, [esp + 0x358]
push edx
push str.CLSID
push eax
call fcn.0042d980
add esp, 0xc
test eax, eax
je 0x42c9d7
lea ecx, [esp + 0x45c]
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea edx, [esp + 0x8f0]
lea eax, [esp + 0xcc]
push edx
push 0
push eax
call fcn.0042d980
add esp, 0xc
test eax, eax
je 0x42c9d7
lea ecx, [esp + 0x14]
lea edx, [esp + 0xcc]
push ecx
push 0xf003f
push 0
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42c9d7
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x48]
push eax
push ecx
push 1
push 0
push str.AppID
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x42c503
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42c9d7
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xd10]
test eax, eax
je 0x42c6e9
lea edx, [esp + 0xcc]
push str.LocalServer32
push edx
lea eax, [esp + 0xb00]
push 0x47d218
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0xaf8]
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [0x4820c8]
xor esi, esi
cmp dword [edx - 8], esi
jne 0x42c56e
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], 0x110
jmp 0x42c5ac
push 0x4820c8
lea eax, [esp + 0x44]
push 0x47d214
push eax
call fcn.00448215
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0xd0c], 0x12
call fcn.00448045
lea ecx, [esp + 0x40]
mov byte [esp + 0xd08], bl
call fcn.00447f0c
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
mov edx, dword [0x4820c8]
cmp dword [edx - 8], esi
je 0x42c5c5
mov eax, dword [0x4820c4]
mov dword [esp + 0x28], eax
cmp dword [eax - 8], esi
jne 0x42c5c9
mov dword [esp + 0x28], esi
cmp dword [0x4820d4], esi
jne 0x42c5db
mov dword [0x4820d4], 3
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, esi
je 0x42c9d7
lea eax, [esp + 0xbfc]
lea ecx, [esp + 0x34]
push eax
call fcn.00447f7a
push str.__Service
lea ecx, [esp + 0x38]
mov byte [esp + 0xd0c], 0x13
call fcn.004482e8
mov ecx, dword [esp + 0x2c]
push 0xf01ff
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x42c670
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x38]
push eax
push ecx
push 0
push 0
push 0
push edx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x42c6c6
lea ecx, [esp + 0x34]
mov byte [esp + 0xd08], bl
call fcn.00447f0c
jmp 0x42c9c1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [0x4820d4]
push ecx
mov ecx, dword [esp + 0x24]
push str.RPCSS
push 0
push 0
push edx
mov edx, dword [esp + 0x48]
push 1
push eax
mov eax, dword [esp + 0x4c]
push ecx
push 0xf01ff
push edx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x42c6c6
lea ecx, [esp + 0x34]
mov byte [esp + 0xd08], bl
call fcn.00447f0c
jmp 0x42c9c1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [esp + 0x34]
mov byte [esp + 0xd08], bl
call fcn.00447f0c
jmp 0x42c774
lea ecx, [esp + 0x6e8]
lea edx, [esp + 0xcc]
push ecx
push str.LocalServer32
push edx
call fcn.0042d980
add esp, 0xc
test eax, eax
je 0x42c9d7
mov ecx, dword [esp + 0x40]
call fcn.0042d370
test eax, eax
je 0x42c774
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x42c9d7
mov eax, dword [esp + 0x2c]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x42c76d
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
push esi
jne 0x42c767
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebp
push edi
call ebp
jmp 0x42c9c1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x4815c8
lea ecx, [esp + 0xd0]
push str.NotInsertable
push ecx
call fcn.0042d980
add esp, 0xc
test eax, eax
je 0x42c9c1
lea edx, [esp + 0x254]
lea eax, [esp + 0xcc]
push edx
push str.ProgID
push eax
call fcn.0042d980
add esp, 0xc
test eax, eax
je 0x42c9c1
push 0x4815c8
lea ecx, [esp + 0xd0]
push str.Programmable
push ecx
call fcn.0042d980
add esp, 0xc
test eax, eax
je 0x42c9c1
lea edx, [esp + 0x560]
lea eax, [esp + 0xcc]
push edx
push str.TypeLib
push eax
call fcn.0042d980
add esp, 0xc
test eax, eax
je 0x42c9c1
lea ecx, [esp + 0x358]
lea edx, [esp + 0xcc]
push ecx
push str.VersionIndependentProgID
push edx
call fcn.0042d980
add esp, 0xc
test eax, eax
je 0x42c9c1
lea eax, [esp + 0x9f4]
lea ecx, [esp + 0x48]
push eax
push ecx
push str.AppID
call fcn.0042d980
add esp, 0xc
test eax, eax
je 0x42c9c1
lea edx, [esp + 0x14]
lea eax, [esp + 0x45c]
push edx
push 0xf003f
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42c9c1
mov eax, dword [esp + 0xd10]
test eax, eax
je 0x42c8ed
push str.OPCDrv
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x14]
push eax
push str.OPCDrv
push 1
push 0
push str.LocalService
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x42c8b4
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42c9c1
push str.__Service
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esp + 0x18]
push str.__Service
push 1
push 0
push str.ServiceParameters
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x42c926
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42c9c1
push str.Interactive_User
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x14]
push eax
push str.Interactive_User
push 1
push 0
push str.RunAs
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x42c926
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42c9c1
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4821c8]
push 0x5c
push eax
call fcn.00439ac0
add esp, 8
test eax, eax
jne 0x42c951
mov edx, dword [0x4821c8]
mov dword [esp + 0x1c], edx
jmp 0x42c956
inc eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x7ec]
push str.AppID_
push eax
call ebp
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x7ec]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x7ec]
push eax
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x42c9c1
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x14]
push eax
lea eax, [esp + 0x4c]
push eax
push 1
push 0
push str.AppID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x42caa9
test esi, esi
je 0x42c9cc
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x42c9d7
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x9c4d
mov ecx, 0x4822f4
call fcn.004484ff
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4822f4
call fcn.00447c81
push 0
push 1
push ecx
mov byte [esp + 0xd18], 0x17
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4822f4
call fcn.00447c81
mov ecx, dword [0x4821cc]
push 3
mov byte [esp + 0xd1c], bl
call fcn.00435820
lea ecx, [esp + 0x30]
mov byte [esp + 0xd08], 5
call fcn.00447f0c
lea ecx, [esp + 0x38]
mov byte [esp + 0xd08], 4
call fcn.00447f0c
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd08], 3
call fcn.00447f0c
lea ecx, [esp + 0x24]
mov byte [esp + 0xd08], 2
call fcn.00447f0c
lea ecx, [esp + 0x20]
mov byte [esp + 0xd08], 1
call fcn.00447f0c
lea ecx, [esp + 0x3c]
mov byte [esp + 0xd08], 0
call fcn.00447f0c
lea ecx, [esp + 0x18]
mov dword [esp + 0xd08], 0xffffffff
call fcn.00447f0c
xor eax, eax
jmp 0x42cc7d
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [0x4821c8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x5e4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str..EXE
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x5e8]
push ecx
call fcn.00439a4a
add esp, 8
push str..TLB
push eax
call ebp
lea edx, [esp + 0x44]
lea eax, [esp + 0x5e4]
push edx
push eax
call fcn.0042dce0
add esp, 4
push eax
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
test eax, eax
jge 0x42cb53
push 0x9c53
mov ecx, 0x4822f4
call fcn.004484ff
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4822f4
call fcn.00447c81
push 0
push 1
push ecx
mov byte [esp + 0xd18], 0x14
mov ecx, esp
mov dword [esp + 0x20], esp
jmp 0x42ca0a
lea ecx, [esp + 0x5e4]
push 0
push ecx
call fcn.0042dce0
mov edx, dword [esp + 0x4c]
add esp, 4
push eax
push edx
call dword [sym.imp.OLEAUT32.dll_QueryPathOfRegTypeLib]
test eax, eax
jge 0x42cbad
push 0x9c49
mov ecx, 0x4822f4
call fcn.004484ff
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4822f4
call fcn.00447c81
push 0
push 1
push ecx
mov byte [esp + 0xd18], 0x15
mov ecx, esp
mov dword [esp + 0x20], esp
jmp 0x42ca0a
push 0x9d09
mov ecx, 0x4822f4
call fcn.004484ff
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4815c8
call fcn.00447f7a
push 0
push 0
push ecx
mov byte [esp + 0xd18], 0x16
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4822f4
call fcn.00447c81
mov ecx, dword [0x4821cc]
push 0
mov byte [esp + 0xd1c], bl
call fcn.00435820
lea ecx, [esp + 0x30]
mov byte [esp + 0xd08], 5
call fcn.00447f0c
lea ecx, [esp + 0x38]
mov byte [esp + 0xd08], 4
call fcn.00447f0c
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd08], 3
call fcn.00447f0c
lea ecx, [esp + 0x24]
mov byte [esp + 0xd08], 2
call fcn.00447f0c
lea ecx, [esp + 0x20]
mov byte [esp + 0xd08], 1
call fcn.00447f0c
lea ecx, [esp + 0x3c]
mov byte [esp + 0xd08], 0
call fcn.00447f0c
lea ecx, [esp + 0x18]
mov dword [esp + 0xd08], 0xffffffff
call fcn.00447f0c
mov eax, 1
mov ecx, dword [esp + 0xd00]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xcfc
ret 4