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

Disassembly:
push 0x38
mov eax, 0x10592fb
call fcn.01022092
xor ebx, ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
call fcn.0101526d
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x24]
call fcn.010155dc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.010155dc
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x14]
mov esi, 0x80000000
push esi
push ebx
push ebx
mov dword [eax], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x104cf15
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push esi
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, ebx
jne 0x104cf5f
call dword [fcn.0100131c]
cmp eax, 0x424
je 0x104cf6d
cmp dword [ebp - 0x14], ebx
je 0x104cf23
push dword [ebp - 0x14]
call dword [entry0]
cmp dword [ebp - 0x1c], ebx
je 0x104cf31
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.010151a6
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x24]
call fcn.010151a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.01014fc6
mov eax, dword [ebp - 0x2c]
call fcn.0102217e
ret 0x14
push eax
mov dword [ebp - 0x18], 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x1012778
lea ecx, [ebp - 0x28]
call fcn.01016a0f
mov byte [ebp - 4], 3
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
call fcn.01035e1c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.010151a6
push dword [0x10645d4]
lea ecx, [ebp + 0xc]
call fcn.01016a0f
mov byte [ebp - 4], 4
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.01035e1c
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.010151a6
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [ebp - 0x20]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x104cf15
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push dword [0x10645d8]
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call esi
cmp eax, ebx
je 0x104d02a
cmp eax, 2
jne 0x104cf15
cmp dword [ebp - 0x18], ebx
je 0x104d084
push dword [0x10645dc]
lea ecx, [ebp - 0x44]
call fcn.01036e9b
jmp 0x104d084
cmp dword [ebp - 0x18], ebx
je 0x104d084
cmp dword [ebp - 0x10], ebx
je 0x104d084
add dword [ebp - 0x10], 4
push dword [ebp - 0x10]
call fcn.010542e0
cmp eax, ebx
pop ecx
mov dword [edi], eax
je 0x104cf15
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
push eax
mov dword [ecx], eax
push ebx
push dword [edi]
call fcn.01021bf0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [edi]
push ebx
push ebx
push dword [0x10645d8]
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x104cf15
push dword [edi]
lea ecx, [ebp - 0x44]
call fcn.0103c2bd
mov esi, dword [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push esi
call fcn.010157a2
mov byte [ebp - 4], 5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.010376c5
cmp eax, ebx
je 0x104d100
mov eax, dword [ebp - 0x44]
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x104d0bf
push 0x80004005
call fcn.01014904
add eax, 8
push eax
lea ecx, [ebp + 0xc]
call fcn.010157a2
mov byte [ebp - 4], 6
push dword [ebp + 0xc]
mov ecx, esi
call fcn.01014f10
test eax, eax
je 0x104d0e9
mov ecx, dword [ebp + 0x18]
lea eax, [ebp + 0xc]
push eax
call fcn.01015b0a
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.010151a6
jmp 0x104d14f
push dword [esi]
lea ecx, [ebp - 0x44]
call fcn.01036e9b
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x44]
call fcn.01035a81
mov esi, eax
cmp esi, ebx
je 0x104cf15
mov eax, dword [ebp - 0x10]
add eax, eax
push eax
push esi
push 7
push ebx
push dword [0x10645d8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
push esi
je 0x104d149
call fcn.010213c8
pop ecx
jmp 0x104cf15
call fcn.010213c8
pop ecx
push dword [ebp - 0x14]
call dword [entry0]
mov dword [ebp - 0x2c], 1
jmp 0x104cf23