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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008752f
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x100bc1b4]
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.100592a0
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.10033da0
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 0x100233ba
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x100233ba
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x100233ba
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0x211], 0
je 0x1002344c
lea eax, [ebp - 0x22c]
push eax
call fcn.10033da0
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2d4]
mov edi, dword [eax]
call fcn.10008420
mov esi, eax
mov byte [ebp - 4], 3
push str.szKeyServiceParams:
push esi
call fcn.1000a400
lea eax, [ebp - 0x210]
push eax
push esi
call fcn.100066a0
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.1000a600
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x228]
test esi, esi
je 0x1002344c
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1002344c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1002344c
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.100222f0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x224]
mov dword [ebp - 0x218], eax
test esi, esi
je 0x10023572
lea eax, [ebp - 0x234]
push eax
call fcn.10033da0
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 0x100234d9
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x100234d9
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x100234d3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x211]
test al, al
je 0x1002356b
lea eax, [ebp - 0x234]
push eax
call fcn.10033da0
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2d4]
mov edi, dword [eax]
call fcn.10008420
mov esi, eax
mov byte [ebp - 4], 7
push str.key.Open:
push esi
call fcn.1000a400
add esp, 8
mov ecx, esi
push dword [ebp - 0x218]
call fcn.1000a230
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 8]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2d4]
call fcn.1000a600
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x230]
test esi, esi
je 0x10023565
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10023565
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10023565
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, dword [ebp - 0x224]
xor ebx, ebx
jmp 0x100236d0
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.10033da0
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 0x100235fc
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x100235fc
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x100235f6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x211]
test al, al
je 0x100236a9
lea eax, [ebp - 0x23c]
push eax
call fcn.10033da0
add esp, 4
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2d4]
mov edi, dword [eax]
call fcn.10008420
mov esi, eax
mov byte [ebp - 4], 0xb
push str.key.SetDWORDValue_Start:2_lResult:
push esi
call fcn.1000a400
add esp, 8
mov ecx, esi
push dword [ebp - 0x218]
call fcn.1000a230
push str._lasterror:
push esi
call fcn.1000a400
add esp, 8
mov ecx, esi
push dword [ebp - 0x228]
call fcn.1000a230
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 8]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2d4]
call fcn.1000a600
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x238]
test esi, esi
je 0x100236a3
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x100236a3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x100236a3
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 0x100236c9
mov eax, dword [ebp - 0x230]
push esi
push dword [eax]
push str.CInstallSvc::SetAutoRun_fail_strSvcName__s__lResult_ld
call fcn.1000b130
add esp, 0xc
xor ebx, ebx
test esi, esi
sete bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x100236ec
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.100536aa
mov esp, ebp
pop ebp
ret 4