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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008244f
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x100ac1c4]
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x200
push 0
push eax
call fcn.100503b0
push dword [esi]
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.10024780
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 0x100189a4
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x100189a4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x100189a4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0x211], 0
je 0x10018a36
lea eax, [ebp - 0x22c]
push eax
call fcn.10024780
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2cc]
mov edi, dword [eax]
call fcn.100049d0
mov esi, eax
mov byte [ebp - 4], 3
push str.szKeyServiceParams:
push esi
call fcn.10006d00
lea eax, [ebp - 0x210]
push eax
push esi
call fcn.100027f0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 8]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2cc]
call fcn.10006f00
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x228]
test esi, esi
je 0x10018a36
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10018a36
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x10018a36
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.10017e40
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x224]
mov dword [ebp - 0x218], eax
test esi, esi
je 0x10018b5c
lea eax, [ebp - 0x22c]
push eax
call fcn.10024780
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 - 0x228]
test esi, esi
je 0x10018ac3
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x10018ac3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x10018abd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x211]
test al, al
je 0x10018b55
lea eax, [ebp - 0x22c]
push eax
call fcn.10024780
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2cc]
mov edi, dword [eax]
call fcn.100049d0
mov esi, eax
mov byte [ebp - 4], 7
push str.key.Open:
push esi
call fcn.10006d00
add esp, 8
mov ecx, esi
push dword [ebp - 0x218]
call fcn.10006b30
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 8]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2cc]
call fcn.10006f00
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x228]
test esi, esi
je 0x10018b4f
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10018b4f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10018b4f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, dword [ebp - 0x224]
xor ebx, ebx
jmp 0x10018c9e
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 - 0x234]
push eax
call fcn.10024780
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 - 0x230]
test esi, esi
je 0x10018be6
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x10018be6
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x10018be0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x211]
test al, al
je 0x10018c93
lea eax, [ebp - 0x234]
push eax
call fcn.10024780
add esp, 4
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2cc]
mov edi, dword [eax]
call fcn.100049d0
mov esi, eax
mov byte [ebp - 4], 0xb
push str.key.SetDWORDValue_Start:2_lResult:
push esi
call fcn.10006d00
add esp, 8
mov ecx, esi
push dword [ebp - 0x218]
call fcn.10006b30
push str._lasterror:
push esi
call fcn.10006d00
add esp, 8
mov ecx, esi
push dword [ebp - 0x228]
call fcn.10006b30
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 8]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2cc]
call fcn.10006f00
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x230]
test esi, esi
je 0x10018c8d
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10018c8d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10018c8d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, dword [ebp - 0x224]
xor ebx, ebx
cmp dword [ebp - 0x218], ebx
sete bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10018cba
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.10047acb
mov esp, ebp
pop ebp
ret 4