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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4c2320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
or ecx, 0xffffffff
push edi
xor eax, eax
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x118], ecx
push ebx
push 1
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x128], eax
call fcn.00461660
push 1
lea eax, [ebp - 0x110]
lea edi, [ebp - 0x114]
call fcn.00461740
add esp, 0xc
test al, al
je 0x461c25
push esi
mov esi, dword [ebp - 0x110]
shr esi, 2
cmp byte [ebp + 8], 0
je 0x46197b
mov ecx, dword [ebp - 0x10c]
mov edi, dword [ebp - 0x114]
test ecx, ecx
je 0x461c17
mov eax, 1
cmp esi, eax
jbe 0x461912
cmp dword [edi + eax*4], ecx
je 0x4618f3
inc eax
cmp eax, esi
jb 0x4618e7
jmp 0x461912
cmp eax, 0xffffffff
je 0x461912
lea ecx, [edi + eax*4]
sub esi, eax
lea eax, [esi*4 - 4]
push eax
lea edx, [ecx + 4]
push edx
push ecx
call fcn.004497c0
add esp, 0xc
sub dword [ebp - 0x110], 4
lea eax, [ebp - 0x118]
push eax
push 3
push 0
push str.SYSTEMCurrentControlSetControlGroupOrderList
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x461c17
mov eax, dword [ebp - 0x110]
cmp eax, 4
jbe 0x46194d
shr eax, 2
dec eax
jmp 0x46194f
xor eax, eax
mov dword [edi], eax
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x118]
push ecx
push edi
push 3
push 0
push str.PNP_TDI
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x118]
push eax
jmp 0x461c11
mov edx, dword [ebp - 0x10c]
test edx, edx
jne 0x4619cc
lea eax, [edx + 1]
cmp esi, eax
jbe 0x4619ad
lea esp, [esp]
mov edi, dword [ebp - 0x114]
mov ecx, dword [edi + eax*4]
cmp ecx, edx
jb 0x4619a6
lea edx, [ecx + 1]
mov dword [ebp - 0x10c], edx
inc eax
cmp eax, esi
jb 0x461990
jmp 0x4619b3
mov edi, dword [ebp - 0x114]
push ebx
push 0
lea ecx, [ebp - 0x10c]
call fcn.00461660
mov edx, dword [ebp - 0x10c]
add esp, 8
jmp 0x4619d2
mov edi, dword [ebp - 0x114]
mov eax, 1
cmp esi, eax
jbe 0x4619f2
jmp 0x4619e0
cmp dword [edi + eax*4], edx
je 0x4619ec
inc eax
cmp eax, esi
jb 0x4619e0
jmp 0x4619f2
mov dword [ebp - 0x120], eax
push 0x498840
push str.SYSTEMCurrentControlSetServices_s
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call fcn.0044a82e
add esp, 0x10
lea edx, [ebp - 0x11c]
push edx
push 3
push 0
lea eax, [ebp - 0x108]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x461a84
lea ecx, [ebp - 0x124]
push ecx
mov ecx, dword [ebp - 0x11c]
lea edx, [ebp - 0x128]
push edx
lea eax, [ebp - 0x12c]
push eax
push 0
push 0x4987d4
push ecx
mov dword [ebp - 0x124], 4
call ebx
mov edx, dword [ebp - 0x11c]
push edx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
mov edi, dword [ebp - 0x114]
sete al
test al, al
jne 0x461aff
push str.Tcpip
push str.SYSTEMCurrentControlSetServices_s
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0044a82e
add esp, 0x10
lea ecx, [ebp - 0x11c]
push ecx
push 3
push 0
lea edx, [ebp - 0x108]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x461aff
lea eax, [ebp - 0x124]
push eax
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x12c]
push edx
push 0
push 0x4987d4
push eax
mov dword [ebp - 0x124], 4
call ebx
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x128]
test ecx, ecx
je 0x461b1c
mov eax, 1
cmp esi, eax
jbe 0x461b1c
cmp dword [edi + eax*4], ecx
je 0x461b6d
inc eax
cmp eax, esi
jb 0x461b12
mov ecx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x120]
cmp eax, 0xffffffff
je 0x461b71
cmp ecx, 0xffffffff
je 0x461bb8
cmp ecx, eax
jae 0x461c17
sub eax, ecx
cmp eax, 1
jbe 0x461c17
lea edx, [eax*4 - 4]
push edx
lea esi, [edi + ecx*4 + 4]
lea eax, [edi + ecx*4 + 8]
push esi
push eax
call fcn.004497c0
mov ecx, dword [ebp - 0x10c]
add esp, 0xc
mov dword [esi], ecx
jmp 0x461bb8
mov ecx, eax
jmp 0x461b22
cmp ecx, 0xffffffff
je 0x461ba8
mov eax, dword [ebp - 0x114]
sub esi, ecx
lea edx, [esi*4 - 4]
lea edi, [edi + ecx*4 + 4]
push edx
lea ecx, [eax + ecx*4 + 8]
push edi
push ecx
call fcn.004497c0
mov edx, dword [ebp - 0x10c]
mov dword [edi], edx
mov edi, dword [ebp - 0x114]
add esp, 0xc
jmp 0x461bb1
mov eax, dword [ebp - 0x10c]
mov dword [edi + esi*4], eax
add dword [ebp - 0x110], 4
lea ecx, [ebp - 0x120]
push ecx
push 3
push 0
push str.SYSTEMCurrentControlSetControlGroupOrderList
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x461c17
mov eax, dword [ebp - 0x110]
cmp eax, 4
jbe 0x461be8
shr eax, 2
dec eax
jmp 0x461bea
xor eax, eax
mov dword [edi], eax
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x120]
push edx
push edi
push 3
push 0
push str.PNP_TDI
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x120]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x461c24
push edi
call fcn.00449be1
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00449592
mov esp, ebp
pop ebp
ret