Function at 0x4899a8
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb0c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x17c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x489d20
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x54]
mov dword [ebp - 0xec], eax
mov dword [ebp - 0x48], 0x5a4e
mov dword [ebp - 0xc4], str.xljguv_cwhugzmnh_sdv_wpflkia_tmjczik_eifeqem_gmkesjdw
cmp dword [ebp - 0x48], 0x5c6b
jle 0x489aa0
and dword [ebp - 0x24], 0
jmp 0x489a1c
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x2a3c
jge 0x489a84
and dword [ebp - 0x1c], 0
jmp 0x489a32
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x10dc
jge 0x489a82
mov eax, dword [ebp - 0x24]
xor eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x16c], edx
push dword [ebp - 0x16c]
push dword [ebp - 0x170]
lea ecx, [ebp - 0x18c]
call fcn.004019b1
pop ecx
pop ecx
mov ecx, eax
call fcn.0040b8ce
push eax
call fcn.004b4d47
pop ecx
lea ecx, [ebp - 0x18c]
call fcn.0040b8c4
jmp 0x489a2b
jmp 0x489a15
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
lea eax, [ebp + 0x5c]
mov dword [ebp - 0x12c], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x48], 0x58de
jge 0x489ac2
push dword [ebp - 0xc4]
call fcn.004b4d47
pop ecx
jmp 0x489ade
or dword [ebp - 4], 0xffffffff
jmp 0x489ae8
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp + 0x58]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp + 0x6c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x12c]
movzx eax, byte [eax]
test eax, eax
je 0x489bda
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x9c], eax
push dword [ebp - 0x84]
push dword [ebp - 0xfc]
push 0x1e8c
push dword [ebp - 0x8c]
push dword [ebp - 0x154]
push dword [ebp - 0x94]
push dword [ebp - 0x104]
push 0x7fbf
push 0x34a2
push 1
push dword [ebp - 0x9c]
push dword [ebp - 0x13c]
call fcn.0048a087
add esp, 0x30
jmp 0x489d1b
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x40], 0x2c22
mov dword [ebp - 0xbc], str.izad_eol_gdz_bjki
cmp dword [ebp - 0x40], 0x2f1d
jle 0x489c8f
and dword [ebp - 0x28], 0
jmp 0x489c25
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x4b7f
jge 0x489c8f
and dword [ebp - 0x2c], 0
jmp 0x489c3b
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xaac
jge 0x489c8d
and dword [ebp - 0x20], 0
jmp 0x489c51
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x3f86
jge 0x489c8b
mov eax, dword [ebp - 0x2c]
cdq
idiv dword [ebp - 0x20]
and edx, dword [ebp - 0x28]
mov eax, edx
cdq
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], edx
push dword [ebp - 0x15c]
push dword [ebp - 0x160]
mov ecx, 0xa9b358
call fcn.0040b8d9
jmp 0x489c4a
jmp 0x489c34
jmp 0x489c1e
push dword [ebp - 0x158]
push 0x6248
push 0x3810
push 0
push 0
push 0x366a
push 0x31e
push dword [ebp - 0xb4]
push 0x329d
push 0x3346
push 0x4c31
push dword [ebp - 0x114]
push 0x3646
call fcn.0047ac08
add esp, 0x34
mov dword [ebp - 4], 2
cmp dword [ebp - 0x40], 0x2acf
jge 0x489cf5
mov edx, dword [ebp - 0xbc]
mov ecx, 0xa9b358
call fcn.0040e54d
jmp 0x489d11
or dword [ebp - 4], 0xffffffff
jmp 0x489d1b
jmp 0x48a076
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xd4], eax
lea eax, [ebp + 0x40]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x11c], eax
lea eax, [ebp + 0x30]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 0x64]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp + 0x50]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0x68]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x60]
mov dword [ebp - 0x164], eax
lea eax, [ebp + 0x3c]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
movzx eax, byte [eax]
test eax, eax
je 0x489f88
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x14c]
movzx eax, byte [eax]
test eax, eax
je 0x489f63
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0
je 0x489f23
mov eax, dword [ebp - 0x30]
mov esi, dword [eax]
push 1
mov ecx, dword [ebp - 0x14]
call fcn.0040bd1c
cmp esi, dword [eax]
jge 0x489e7b
mov dword [ebp - 0x50], 1
jmp 0x489e7f
and dword [ebp - 0x50], 0
push 2
mov ecx, dword [ebp - 0x14]
call fcn.0040bd1c
mov eax, dword [eax]
cmp eax, dword [ebp - 0x50]
jne 0x489e9c
mov dword [ebp - 0xa0], 1
jmp 0x489ea3
and dword [ebp - 0xa0], 0
push 1
mov ecx, dword [ebp - 0x14]
call fcn.0040bd1c
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x30]
mov esi, dword [eax]
push 2
mov ecx, dword [ebp - 0x14]
call fcn.0040bd1c
cmp esi, dword [eax]
jl 0x489ed4
mov dword [ebp - 0x38], 1
jmp 0x489ed8
and dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 0xecce005a
jbe 0x489eea
mov dword [ebp - 0x3c], 1
jmp 0x489eee
and dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0x1131
jge 0x489f00
mov dword [ebp - 0x44], 1
jmp 0x489f04
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0x44]
mov dword [eax], ecx
mov eax, dword [ebp - 0xb0]
cmp dword [eax], 0
je 0x489f23
mov dword [ebp - 0x4c], 1
jmp 0x489f27
and dword [ebp - 0x4c], 0
push 2
mov ecx, dword [ebp - 0x14]
call fcn.0040bd1c
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [eax]
jg 0x489f41
mov dword [ebp - 0x34], 1
jmp 0x489f45
and dword [ebp - 0x34], 0
push 0
mov ecx, dword [ebp - 0x14]
call fcn.0040bd1c
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov eax, dword [ebp - 0x34]
neg eax
mov ecx, dword [ebp - 0xb8]
mov dword [ecx], eax
jmp 0x489f83
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x54]
mov dword [ecx], eax
jmp 0x48a076
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0xf8]
movzx eax, byte [eax]
test eax, eax
je 0x48a013
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x128]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x48a076
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x48a056
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 3
jge 0x48a076
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x150]
call fcn.0040bd1c
mov dword [eax], 1
jmp 0x48a04b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret