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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10018540
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10021004]
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 eax, dword [ebp + 8]
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x28]
push 0x2d
xor eax, eax
mov dword [ebp - 0x18], edi
push str.SystemCurrentControlSetServiceskernelquick
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.100055b0
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push edi
push 0xf013f
push edi
push edi
push edi
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10005243
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
push ecx
push 0xf013f
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push edi
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10005329
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x1000530c
mov edx, dword [eax + 0x10]
test edx, edx
je 0x10005260
lea ebx, [ebx + edx*2]
add ebx, 2
add eax, 0x18
cmp eax, ecx
jne 0x10005253
mov dword [ebp - 0x40], ebx
test ebx, ebx
je 0x1000530c
push ebx
call fcn.10006770
add esp, 4
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x38], 0
push dword [ebp - 0x30]
push eax
call fcn.10006310
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x30], edi
push ebx
push 0
push dword [ebp - 0x3c]
call fcn.10007e80
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov esi, dword [esi]
cmp esi, dword [eax + 4]
je 0x100052f0
xor ebx, ebx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x100052df
cmp dword [esi + 0x14], 8
lea edi, [eax*2 + 2]
mov eax, esi
jb 0x100052cd
mov eax, dword [esi]
push edi
push eax
mov eax, dword [ebp - 0x3c]
add eax, ebx
push eax
call fcn.10009bc0
add esp, 0xc
add ebx, edi
mov eax, dword [ebp + 0xc]
add esi, 0x18
cmp esi, dword [eax + 4]
jne 0x100052b5
mov ebx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x30]
push ebx
push dword [ebp - 0x3c]
push 7
push 0
push dword [ebp - 0x44]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10005329
mov bl, 1
jmp 0x1000532b
push 2
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push 7
push 0
push dword [ebp - 0x44]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor bl, bl
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10005365
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000535b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100053c5
push edx
push ecx
call fcn.1000673a
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 7
test edi, edi
je 0x100053a5
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x100053a5
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x100053a5
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov al, bl
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.10006729
mov esp, ebp
pop ebp
ret 8
call fcn.1000c566
int3