Function at 0x10018d60
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082980
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x100ae254]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x200
push 0
push eax
mov dword [ebp - 0x230], ebx
call fcn.10058a20
push dword [ebx]
lea eax, [ebp - 0x210]
push str.SYSTEMCurrentControlSetServices_s
push 0xff
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x220]
push eax
call fcn.10025520
add esp, 0x20
mov byte [ebp - 4], 1
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov bl, al
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x21c]
or edi, 0xffffffff
test esi, esi
je 0x10018e36
mov ecx, edi
lock xadd dword [esi + 4], ecx
jne 0x10018e36
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x10018e36
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test bl, bl
je 0x10018ed7
lea eax, [ebp - 0x220]
push eax
call fcn.10025520
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2d0]
mov esi, dword [eax]
push 1
push 2
call fcn.10004050
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2d0]
push str.szKeyServiceParams:
push eax
call fcn.10006d70
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x2d0]
push eax
call fcn.100027f0
mov eax, dword [esi]
lea ecx, [ebp - 0x2d0]
add esp, 0x10
push ecx
mov ecx, esi
call dword [eax + 8]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2d0]
call fcn.10006f70
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x21c]
test esi, esi
je 0x10018ed7
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10018ed7
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x10018ed7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0x2021b
lea eax, [ebp - 0x210]
push eax
push reloc.WS2_32.dll_bind
lea ecx, [ebp - 0x22c]
call fcn.10018190
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x218], eax
test esi, esi
je 0x10018ff9
lea eax, [ebp - 0x220]
push eax
call fcn.10025520
add esp, 4
mov byte [ebp - 4], 6
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov bl, al
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x21c]
test esi, esi
je 0x10018f54
mov ecx, edi
lock xadd dword [esi + 4], ecx
jne 0x10018f54
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x10018f54
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test bl, bl
je 0x10018ff2
lea eax, [ebp - 0x220]
push eax
call fcn.10025520
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2d0]
mov esi, dword [eax]
push 1
push 2
call fcn.10004050
mov byte [ebp - 4], 9
lea eax, [ebp - 0x2d0]
push str.key.Open:
push eax
call fcn.10006d70
add esp, 8
lea ecx, [ebp - 0x2d0]
push dword [ebp - 0x218]
call fcn.10006ba0
mov eax, dword [esi]
lea ecx, [ebp - 0x2d0]
push ecx
mov ecx, esi
call dword [eax + 8]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2d0]
call fcn.10006f70
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x21c]
test esi, esi
je 0x10018ff2
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10018ff2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10018ff2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
xor ebx, ebx
jmp 0x1001916d
push 4
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 2
push eax
push 4
push 0
push 0x1008b524
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov dword [ebp - 0x21c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x238]
push eax
call fcn.10025520
add esp, 4
mov byte [ebp - 4], 0xb
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x211], al
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x234]
test esi, esi
je 0x1001908a
mov ecx, edi
lock xadd dword [esi + 4], ecx
jne 0x1001908a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x10019084
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x211]
test al, al
je 0x10019148
lea eax, [ebp - 0x238]
push eax
call fcn.10025520
add esp, 4
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2d0]
mov esi, dword [eax]
push 1
push 2
call fcn.10004050
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x2d0]
push str.key.SetDWORDValue_Start:2_lResult:
push eax
call fcn.10006d70
add esp, 8
lea ecx, [ebp - 0x2d0]
push ebx
call fcn.10006ba0
lea eax, [ebp - 0x2d0]
push str._lasterror:
push eax
call fcn.10006d70
add esp, 8
lea ecx, [ebp - 0x2d0]
push dword [ebp - 0x218]
call fcn.10006ba0
mov eax, dword [esi]
lea ecx, [ebp - 0x2d0]
push ecx
mov ecx, esi
call dword [eax + 8]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2d0]
call fcn.10006f70
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x234]
test esi, esi
je 0x10019148
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10019148
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10019148
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test ebx, ebx
je 0x10019162
mov eax, dword [ebp - 0x230]
push ebx
push dword [eax]
push str.CInstallSvc::SetAutoRun_fail_strSvcName__s__lResult_ld
call fcn.10007df0
add esp, 0xc
xor ebx, ebx
cmp dword [ebp - 0x21c], ebx
sete bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x1001918f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x22c], 0
mov eax, ebx
mov dword [ebp - 0x228], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10051ab7
mov esp, ebp
pop ebp
ret 4