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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x105ab38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x40]
call fcn.01010bb7
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.01010c62
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.01010c62
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
push SysReAllocString
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1049a1f
jmp 0x1049cdd
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push SysReAllocString
mov ecx, dword [ebp + 0xc]
call fcn.010107dc
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x1049a62
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x1049a60
jmp 0x1049cdd
jmp 0x1049a69
mov dword [ebp - 0x28], 1
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x100dcd8
lea ecx, [ebp - 0x54]
call fcn.0101236d
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x54]
push edx
call fcn.01025680
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.01010c92
mov eax, dword [0x10649e0]
push eax
lea ecx, [ebp - 0x58]
call fcn.0101236d
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.01025680
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.01010c92
push 0
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
lea ecx, [ebp - 0x48]
call fcn.010107dc
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1049b00
jmp 0x1049cdd
mov dword [ebp - 0x44], 0
lea edx, [ebp - 0x44]
push edx
push 0
push 0
push 0
mov eax, dword [0x10649e4]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1049b4f
cmp dword [ebp - 0x1c], 2
je 0x1049b35
jmp 0x1049cdd
cmp dword [ebp - 0x28], 0
je 0x1049b4a
mov edx, dword [0x10649e8]
push edx
lea ecx, [ebp - 0x40]
call fcn.01028e50
jmp 0x1049bde
cmp dword [ebp - 0x28], 0
je 0x1049bde
cmp dword [ebp - 0x44], 0
je 0x1049bde
mov eax, dword [ebp - 0x44]
add eax, 4
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0101e5e0
add esp, 4
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x5c]
mov dword [edx], eax
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
jne 0x1049b8c
jmp 0x1049cdd
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x44]
mov dword [edx], eax
mov ecx, dword [ebp - 0x44]
push ecx
push 0
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
push 0
push 0
mov ecx, dword [0x10649e4]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1049bd0
jmp 0x1049cdd
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x40]
call fcn.0102f1f0
push ecx
mov ecx, esp
mov dword [ebp - 0x60], esp
mov edx, dword [ebp + 8]
push edx
call fcn.01010eb5
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0102be90
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x1049c5c
lea ecx, [ebp - 0x40]
call fcn.01039a30
push eax
lea ecx, [ebp - 0x4c]
call fcn.01010eb5
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4c]
call fcn.010107dc
push eax
mov ecx, dword [ebp + 8]
call fcn.0101095c
test eax, eax
je 0x1049c45
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp + 0x1c]
call fcn.010115e7
mov edx, dword [ebp + 0x18]
mov dword [edx], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.01010c92
jmp 0x1049ccc
mov ecx, dword [ebp + 8]
call fcn.010107dc
push eax
lea ecx, [ebp - 0x40]
call fcn.01028e50
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x40]
call fcn.01027cd0
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x1049c84
jmp 0x1049cdd
mov ecx, dword [ebp - 0x44]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x50]
push edx
push 7
push 0
mov eax, dword [0x10649e4]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1049cba
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
push eax
call fcn.0101da1e
add esp, 4
jmp 0x1049cdd
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
push edx
call fcn.0101da1e
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 0
jne 0x1049cf3
cmp dword [ebp - 0x20], 0
je 0x1049cf3
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
je 0x1049d03
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.01010c00
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18