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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007c1cf
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x100a6204]
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.10051fb0
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 - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x22c]
push eax
call fcn.100243f0
add esp, 0x20
mov byte [ebp - 4], 1
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
or ebx, 0xffffffff
mov esi, dword [ebp - 0x228]
test esi, esi
je 0x100181da
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x100181da
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x100181da
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0x211], 0
je 0x1001826c
lea eax, [ebp - 0x22c]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2d4]
mov edi, dword [eax]
call fcn.10004540
mov esi, eax
mov byte [ebp - 4], 3
push str.szKeyServiceParams:
push esi
call fcn.10006800
lea eax, [ebp - 0x210]
push eax
push esi
call fcn.100027c0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 8]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2d4]
call fcn.10006a00
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x228]
test esi, esi
je 0x1001826c
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1001826c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1001826c
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 - 0x224]
call fcn.10017580
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x224]
mov dword [ebp - 0x218], eax
test esi, esi
je 0x10018392
lea eax, [ebp - 0x234]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 5
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 - 0x230]
test esi, esi
je 0x100182f9
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x100182f9
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x100182f3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x211]
test al, al
je 0x1001838b
lea eax, [ebp - 0x234]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2d4]
mov edi, dword [eax]
call fcn.10004540
mov esi, eax
mov byte [ebp - 4], 7
push str.key.Open:
push esi
call fcn.10006800
add esp, 8
mov ecx, esi
push dword [ebp - 0x218]
call fcn.10006630
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 8]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2d4]
call fcn.10006a00
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x230]
test esi, esi
je 0x10018385
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10018385
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10018385
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, dword [ebp - 0x224]
xor ebx, ebx
jmp 0x100184f0
push 4
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 2
push eax
push 4
push 0
push str.Start
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x218], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x23c]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 9
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 - 0x238]
test esi, esi
je 0x1001841c
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x1001841c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x10018416
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x211]
test al, al
je 0x100184c9
lea eax, [ebp - 0x23c]
push eax
call fcn.100243f0
add esp, 4
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2d4]
mov edi, dword [eax]
call fcn.10004540
mov esi, eax
mov byte [ebp - 4], 0xb
push str.key.SetDWORDValue_Start:2_lResult:
push esi
call fcn.10006800
add esp, 8
mov ecx, esi
push dword [ebp - 0x218]
call fcn.10006630
push str._lasterror:
push esi
call fcn.10006800
add esp, 8
mov ecx, esi
push dword [ebp - 0x228]
call fcn.10006630
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 8]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2d4]
call fcn.10006a00
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x238]
test esi, esi
je 0x100184c3
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x100184c3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x100184c3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, dword [ebp - 0x224]
mov esi, dword [ebp - 0x218]
test esi, esi
je 0x100184e9
mov eax, dword [ebp - 0x230]
push esi
push dword [eax]
push str.CInstallSvc::SetAutoRun_fail_strSvcName__s__lResult_ld
call fcn.10007880
add esp, 0xc
xor ebx, ebx
test esi, esi
sete bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1001850c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x224], 0
mov eax, ebx
mov dword [ebp - 0x220], 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.10049342
mov esp, ebp
pop ebp
ret 4