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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a527f
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x100d10d4]
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.1006e460
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.1003c060
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 0x1002a30a
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x1002a30a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1002a30a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0x211], 0
je 0x1002a39c
lea eax, [ebp - 0x22c]
push eax
call fcn.1003c060
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2d4]
mov edi, dword [eax]
call fcn.1000aa80
mov esi, eax
mov byte [ebp - 4], 3
push str.szKeyServiceParams:
push esi
call fcn.1000ca10
lea eax, [ebp - 0x210]
push eax
push esi
call fcn.10008960
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.1000cc10
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x228]
test esi, esi
je 0x1002a39c
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1002a39c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1002a39c
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.10029270
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x224]
mov dword [ebp - 0x218], eax
test esi, esi
je 0x1002a4c2
lea eax, [ebp - 0x234]
push eax
call fcn.1003c060
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 0x1002a429
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x1002a429
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1002a423
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x211]
test al, al
je 0x1002a4bb
lea eax, [ebp - 0x234]
push eax
call fcn.1003c060
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2d4]
mov edi, dword [eax]
call fcn.1000aa80
mov esi, eax
mov byte [ebp - 4], 7
push str.key.Open:
push esi
call fcn.1000ca10
add esp, 8
mov ecx, esi
push dword [ebp - 0x218]
call fcn.1000c840
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 8]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2d4]
call fcn.1000cc10
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x230]
test esi, esi
je 0x1002a4b5
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1002a4b5
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1002a4b5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, dword [ebp - 0x224]
xor ebx, ebx
jmp 0x1002a620
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.1003c060
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 0x1002a54c
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x1002a54c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1002a546
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x211]
test al, al
je 0x1002a5f9
lea eax, [ebp - 0x23c]
push eax
call fcn.1003c060
add esp, 4
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2d4]
mov edi, dword [eax]
call fcn.1000aa80
mov esi, eax
mov byte [ebp - 4], 0xb
push str.key.SetDWORDValue_Start:2_lResult:
push esi
call fcn.1000ca10
add esp, 8
mov ecx, esi
push dword [ebp - 0x218]
call fcn.1000c840
push str._lasterror:
push esi
call fcn.1000ca10
add esp, 8
mov ecx, esi
push dword [ebp - 0x228]
call fcn.1000c840
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 8]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2d4]
call fcn.1000cc10
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x238]
test esi, esi
je 0x1002a5f3
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1002a5f3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1002a5f3
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 0x1002a619
mov eax, dword [ebp - 0x230]
push esi
push dword [eax]
push str.CInstallSvc::SetAutoRun_fail_strSvcName__s__lResult_ld
call fcn.1000d740
add esp, 0xc
xor ebx, ebx
test esi, esi
sete bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1002a63c
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.10061eb3
mov esp, ebp
pop ebp
ret 4