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

Disassembly:
sub esp, 0x124
mov eax, dword [0x1004b3c8]
xor eax, esp
mov dword [esp + 0x120], eax
push ebp
or eax, 0xffffffff
push esi
mov esi, dword [esp + 0x130]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push eax
push esi
push 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], 0
or ebp, 0xffffffff
call fcn.10012980
add esp, 0xc
test al, al
je 0x1001283f
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xc]
push eax
push 1
call fcn.10012e10
add esp, 0xc
test al, al
je 0x1001283f
push edi
mov edi, dword [esp + 0x14]
shr edi, 2
cmp byte [esp + 0x138], 0
je 0x100125fe
mov edx, dword [esp + 0x10]
test edx, edx
je 0x100125d1
mov eax, 1
cmp edi, eax
jbe 0x100125d1
mov ecx, dword [esp + 0xc]
mov edi, edi
cmp dword [ecx + eax*4], edx
je 0x1001259c
inc eax
cmp eax, edi
jb 0x10012590
jmp 0x100125d5
cmp eax, 0xffffffff
je 0x100125d5
sub edi, eax
lea ecx, [ecx + eax*4]
lea eax, [edi*4 - 4]
push eax
lea eax, [ecx + 4]
push eax
push ecx
call fcn.10014d40
sub dword [esp + 0x20], 4
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
call fcn.10012e10
add esp, 0x18
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x1001283e
push ecx
call fcn.10014932
add esp, 4
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.10015717
add esp, 0x124
ret
mov ecx, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x1001263b
mov eax, 1
cmp edi, eax
jbe 0x10012627
mov edx, dword [ebx + eax*4]
cmp edx, ecx
jb 0x10012622
lea ecx, [edx + 1]
mov dword [esp + 0x14], ecx
inc eax
cmp eax, edi
jb 0x10012614
lea eax, [esp + 0x14]
push eax
push esi
push 0
call fcn.10012980
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, 1
cmp edi, eax
jbe 0x10012654
cmp dword [ebx + eax*4], ecx
je 0x10012650
inc eax
cmp eax, edi
jb 0x10012644
jmp 0x10012654
mov dword [esp + 0x1c], eax
push 0x1003f074
push str.SYSTEMCurrentControlSetServices_s
lea eax, [esp + 0x34]
push 0x104
push eax
call fcn.100164ee
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 3
push 0
lea eax, [esp + 0x38]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100126d2
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push 0x1003f024
push dword [esp + 0x24]
mov dword [esp + 0x3c], 4
call esi
push dword [esp + 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
test al, al
jne 0x10012739
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.Tcpip
push str.SYSTEMCurrentControlSetServices_s
lea eax, [esp + 0x34]
push 0x104
push eax
call fcn.100164ee
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 3
push 0
lea eax, [esp + 0x38]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10012739
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push 0x1003f024
push dword [esp + 0x24]
mov dword [esp + 0x3c], 4
call esi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x1001275e
mov eax, 1
cmp edi, eax
jbe 0x1001275e
lea ebx, [ebx]
cmp dword [ebx + eax*4], ecx
je 0x1001275c
inc eax
cmp eax, edi
jb 0x10012750
jmp 0x1001275e
mov ebp, eax
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x100127a5
cmp ebp, 0xffffffff
je 0x100127de
cmp ebp, eax
jae 0x10012830
sub eax, ebp
cmp eax, 1
jbe 0x10012830
lea eax, [eax*4 - 4]
push eax
lea esi, [ebx + 4]
lea eax, [ebx + 8]
lea esi, [esi + ebp*4]
lea eax, [eax + ebp*4]
push esi
push eax
call fcn.10014d40
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esi], eax
jmp 0x100127de
cmp ebp, 0xffffffff
je 0x100127d2
sub edi, ebp
lea esi, [ebx + 4]
lea eax, [edi*4 - 4]
push eax
lea eax, [ebx + 8]
lea esi, [esi + ebp*4]
lea eax, [eax + ebp*4]
push esi
push eax
call fcn.10014d40
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esi], eax
jmp 0x100127d9
mov eax, dword [esp + 0x14]
mov dword [ebx + edi*4], eax
add dword [esp + 0x18], 4
lea eax, [esp + 0x1c]
push eax
push 3
push 0
push str.SYSTEMCurrentControlSetControlGroupOrderList
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10012830
mov eax, dword [esp + 0x18]
cmp eax, 4
jbe 0x1001280a
shr eax, 2
dec eax
jmp 0x1001280c
xor eax, eax
mov dword [ebx], eax
push dword [esp + 0x18]
push ebx
push 3
push 0
push str.PNP_TDI
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1001283d
push ebx
call fcn.10014932
add esp, 4
pop ebx
pop edi
mov ecx, dword [esp + 0x128]
pop esi
pop ebp
xor ecx, esp
call fcn.10015717
add esp, 0x124
ret