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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x793b58
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x831184]
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], 0xda00e6
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x54], 0xc200ce
mov dword [ebp - 0x50], 0xcb00fe
mov dword [ebp - 0x4c], 0xc600dd
mov dword [ebp - 0x48], 0xd100d8
mov dword [ebp - 0x44], 0x9400d6
mov dword [ebp - 0x40], 0xd700d3
mov dword [ebp - 0x3c], 0xd400de
mov dword [ebp - 0x38], 0xde00dc
mov dword [ebp - 0x34], 0xbb
nop dword [eax]
lea ecx, [eax + 0xa9]
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], 0xc500ea
mov dword [ebp - 0x64], eax
xor ecx, ecx
mov dword [ebp - 0x5c], 0xd800c5
mov dword [ebp - 0x58], 0xc100df
mov dword [ebp - 0x54], 0x9000c3
mov dword [ebp - 0x50], 0xd700c2
mov dword [ebp - 0x4c], 0xc200c1
mov dword [ebp - 0x48], 0xd500dc
mov dword [ebp - 0x44], 0x9800d2
mov dword [ebp - 0x40], 0xdb00df
mov dword [ebp - 0x3c], 0xd000d2
mov dword [ebp - 0x38], 0xda00d8
mov dword [ebp - 0x34], 0xbf
nop
lea eax, [ecx + 0xa9]
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.0076eb7e
mov esp, ebp
pop ebp
ret 8