Function at 0x421030
Capabilities:
Encode data using xor
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x792568
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x82f184]
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 + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], edi
cmp dword [eax + 0x14], 8
jb 0x42106c
mov eax, dword [eax]
push 0xf003f
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
test esi, esi
jne 0x42115b
mov ecx, 0x12
mov dword [ebp - 0x58], 0xc900f7
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x54], 0xd500df
mov dword [ebp - 0x50], 0xd800ef
mov dword [ebp - 0x4c], 0xc900cc
mov dword [ebp - 0x48], 0xa200a9
mov dword [ebp - 0x44], 0xe300a7
mov dword [ebp - 0x40], 0xa400a2
mov dword [ebp - 0x3c], 0xab00af
mov dword [ebp - 0x38], 0xad00ad
mov dword [ebp - 0x34], 0xca
nop dword [eax]
lea ecx, [eax + 0xb8]
xor word [ebp + eax*2 - 0x58], cx
inc eax
mov ecx, dword [ebp - 0x5c]
cmp eax, ecx
jb 0x4210e0
xor eax, eax
mov dword [ebp - 0x6c], 7
mov word [ebp + ecx*2 - 0x58], ax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x70], eax
lea edx, [ecx + 2]
mov word [ebp - 0x80], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421110
sub ecx, edx
lea eax, [ebp - 0x58]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x80]
call fcn.004044f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00404120
mov ecx, dword [ebp - 0x68]
mov dword [edi + 0x18], ecx
lea ecx, [ebp - 0x80]
mov byte [edi + 0x1c], 1
call fcn.00404490
jmp 0x421256
lea eax, [ebp - 0x30]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x421248
mov eax, 0x16
mov dword [ebp - 0x60], 0xd600fb
mov dword [ebp - 0x64], eax
xor ecx, ecx
mov dword [ebp - 0x5c], 0xcf00d4
mov dword [ebp - 0x58], 0xd200ce
mov dword [ebp - 0x54], 0x9f00d2
mov dword [ebp - 0x50], 0xa400b3
mov dword [ebp - 0x4c], 0xb500b0
mov dword [ebp - 0x48], 0xa600ad
mov dword [ebp - 0x44], 0xe700a3
mov dword [ebp - 0x40], 0xa800ae
mov dword [ebp - 0x3c], 0xa700a3
mov dword [ebp - 0x38], 0xa900a9
mov dword [ebp - 0x34], 0xce
nop
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x60], ax
inc ecx
mov eax, dword [ebp - 0x64]
cmp ecx, eax
jb 0x4211d0
xor ecx, ecx
mov dword [ebp - 0x6c], 7
mov word [ebp + eax*2 - 0x60], cx
xor eax, eax
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x60]
mov word [ebp - 0x80], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421200
sub ecx, edx
lea eax, [ebp - 0x60]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x80]
call fcn.004044f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.00404120
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x80]
mov dword [edi + 0x18], eax
mov byte [edi + 0x1c], 1
call fcn.00404490
jmp 0x42124f
mov byte [edi], 1
mov byte [edi + 0x1c], 0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
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.0076d59e
mov esp, ebp
pop ebp
ret 8