Function at 0x421280
Capabilities:
Delete service
Encode data using xor
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7925a8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 0x10], eax
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 0x4212bb
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 0x4213ab
mov eax, 0x12
mov dword [ebp - 0x58], 0xc900f7
mov dword [ebp - 0x5c], eax
xor ecx, 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 eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x58], ax
inc ecx
mov eax, dword [ebp - 0x5c]
cmp ecx, eax
jb 0x421330
xor ecx, ecx
mov dword [ebp - 0x68], 7
mov word [ebp + eax*2 - 0x58], cx
xor eax, eax
mov dword [ebp - 0x6c], ecx
lea ecx, [ebp - 0x58]
mov word [ebp - 0x7c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421360
sub ecx, edx
lea eax, [ebp - 0x58]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.004044f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00404120
mov ecx, dword [ebp - 0x64]
mov dword [edi + 0x18], ecx
lea ecx, [ebp - 0x7c]
mov byte [edi + 0x1c], 1
call fcn.00404490
jmp 0x4214a6
lea eax, [ebp - 0x30]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x421498
mov dword [ebp - 0x60], 0x15
xor ecx, ecx
mov dword [ebp - 0x5c], 0xdc00fc
mov dword [ebp - 0x58], 0xde00d6
mov dword [ebp - 0x54], 0xd800c8
mov dword [ebp - 0x50], 0xcc009e
mov dword [ebp - 0x4c], 0xb300a5
mov dword [ebp - 0x48], 0xaa00b4
mov dword [ebp - 0x44], 0xa000a7
mov dword [ebp - 0x40], 0xa100e6
mov dword [ebp - 0x3c], 0xa000a9
mov dword [ebp - 0x38], 0xae00a6
mov dword [ebp - 0x34], 0xcd00a8
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x5c], ax
inc ecx
mov eax, dword [ebp - 0x60]
cmp ecx, eax
jb 0x421420
xor ecx, ecx
mov dword [ebp - 0x68], 7
mov word [ebp + eax*2 - 0x5c], cx
xor eax, eax
mov dword [ebp - 0x6c], ecx
lea ecx, [ebp - 0x5c]
mov word [ebp - 0x7c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421450
sub ecx, edx
lea eax, [ebp - 0x5c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.004044f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.00404120
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x7c]
mov dword [edi + 0x18], eax
mov byte [edi + 0x1c], 1
call fcn.00404490
jmp 0x42149f
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
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret 8