Function at 0x491840
Capabilities:
Create service
Get common file path
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4927ee
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x5a7f20]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
push 0x206
lea ecx, [ebp - 0x22a]
xor eax, eax
push edi
push ecx
mov dword [ebp - 4], edi
mov word [ebp - 0x22c], ax
call fcn.00481000
add esp, 0xc
push edi
push 0x1a
lea edx, [ebp - 0x22c]
push edx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x491dcd
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x248]
call fcn.0043eb30
mov edx, dword [0x5a8e20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5a8e20
mov byte [ebp - 4], 1
call eax
add eax, 0x10
mov dword [ebp - 0x230], eax
push 0x8f
lea ecx, [ebp - 0x234]
push 0x5a73ac
push ecx
mov byte [ebp - 4], 2
call fcn.0046e370
add esp, 0xc
push 0x8f
lea edx, [ebp - 0x24c]
push str..___
push edx
mov byte [ebp - 4], 3
call fcn.0046e370
add esp, 0xc
mov eax, dword [ebp - 0x234]
mov bl, 4
mov byte [ebp - 4], bl
cmp dword [eax - 0xc], edi
je 0x491d35
mov ecx, dword [ebp - 0x24c]
cmp dword [ecx - 0xc], edi
je 0x491d35
lea edx, [ebp - 0x248]
push edx
lea ecx, [ebp - 0x230]
call fcn.0047a350
mov eax, dword [ebp - 0x234]
push eax
lea ecx, [ebp - 0x230]
call fcn.00479450
cmp eax, edi
je 0x491d35
mov ecx, dword [ebp - 0x230]
push edi
push ecx
call fcn.00491640
add esp, 8
cmp eax, edi
je 0x491d35
mov edx, dword [ebp - 0x24c]
push edx
lea ecx, [ebp - 0x230]
call fcn.00479450
cmp eax, edi
je 0x491d35
push edi
lea ecx, [ebp - 0x230]
call fcn.00478a70
cmp eax, edi
je 0x491d35
mov eax, dword [ebp - 0x230]
push 0x3ac17
push 0x493d08
push eax
call fcn.004905d0
add esp, 0xc
cmp eax, edi
je 0x491d35
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x234]
call fcn.0047a350
call fcn.0044b1e0
cmp eax, edi
je 0x491a5e
push 0x8f
lea edx, [ebp - 0x238]
push 0x5a7334
push edx
call fcn.0046e370
add esp, 0xc
push 0x8f
lea eax, [ebp - 0x23c]
push 0x5a7370
push eax
mov byte [ebp - 4], 5
call fcn.0046e370
add esp, 0xc
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 6
call fcn.004784d0
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ebp - 0x238]
push ecx
push edx
lea ecx, [ebp - 0x234]
call fcn.004691d0
lea ecx, [ebp - 0x23c]
call fcn.00405fd0
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], bl
call fcn.00405fd0
push 0x8f
lea eax, [ebp - 0x244]
push 0x5a73f0
push eax
call fcn.0046e370
add esp, 0xc
push 0x8f
lea ecx, [ebp - 0x240]
push 0x5a7454
push ecx
mov byte [ebp - 4], 7
call fcn.0046e370
add esp, 0xc
mov edx, dword [ebp - 0x244]
mov byte [ebp - 4], 8
cmp dword [edx - 0xc], edi
je 0x491d1f
mov eax, dword [ebp - 0x240]
cmp dword [eax - 0xc], edi
je 0x491d1f
lea ecx, [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x230]
call fcn.0047a350
mov edx, dword [ebp - 0x244]
push edx
lea ecx, [ebp - 0x230]
call fcn.00479450
cmp eax, edi
je 0x491d1f
mov eax, dword [ebp - 0x230]
push edi
push eax
call fcn.00491640
add esp, 8
cmp eax, edi
je 0x491d1f
mov ecx, dword [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00479450
cmp eax, edi
je 0x491d1f
mov edx, dword [ebp - 0x230]
push 0xd8980
push 0x4ce920
push edx
call fcn.004905d0
add esp, 0xc
cmp eax, edi
je 0x491d1f
mov eax, dword [ebp - 0x230]
push eax
call fcn.004904a0
add esp, 4
cmp eax, edi
je 0x491d1f
push 0x8f
lea ecx, [ebp - 0x238]
push 0x5a747c
push ecx
call fcn.0046e370
add esp, 0xc
push 0x8f
lea edx, [ebp - 0x23c]
push 0x5a74a8
push edx
mov byte [ebp - 4], 9
call fcn.0046e370
add esp, 0xc
mov ecx, dword [ebp - 0x238]
mov byte [ebp - 4], 0xa
cmp dword [ecx - 0xc], edi
je 0x491d09
mov eax, dword [ebp - 0x23c]
cmp dword [eax - 0xc], edi
je 0x491d09
cmp dword [0x5a8f30], edi
je 0x491bb3
push edi
push 1
push eax
push ecx
jmp 0x491bf5
cmp dword [0x5a8eec], edi
jne 0x491c15
mov edx, dword [0x5a8ee8]
push edx
push edi
push eax
mov eax, dword [ebp - 0x234]
push ecx
push edi
push eax
call fcn.00442ef0
mov esi, eax
add esp, 0x18
cmp esi, edi
je 0x491c0f
call fcn.00437eb0
cmp eax, edi
je 0x491c07
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ebp - 0x238]
push edi
push 1
push ecx
push edx
mov eax, dword [ebp - 0x234]
push edi
push eax
call fcn.00442ef0
mov esi, eax
add esp, 0x18
cmp esi, edi
jne 0x491cff
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x234]
push edx
push ecx
call fcn.00468cc0
mov eax, dword [0x401e7c]
mov edx, dword [0x401e84]
mov ecx, dword [0x401e80]
mov dword [ebp - 0x24], eax
mov ax, word [0x401e88]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], edx
add esp, 8
mov dword [ebp - 0x20], ecx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x491c50
sub eax, edx
lea ecx, [ebp + eax - 0x24]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.00405fa0
add esp, 8
lea eax, [ebp - 0x24]
push eax
push 0x401e64
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x491c92
mov ecx, dword [ebp - 0x234]
push edi
push edi
push edi
push ecx
push edi
push edi
call eax
call fcn.00437eb0
test eax, eax
je 0x491cff
push 3
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x491cff
mov edx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x238]
push 0
push 0
push 0
push 0
push 0
push edx
push 0
push 2
push 0x10
push 0x12
push eax
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
je 0x491ce5
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x491cff
mov eax, dword [ebp - 0x238]
push eax
call fcn.0046b080
add esp, 4
call fcn.00480550
call fcn.0047ed60
lea ecx, [ebp - 0x23c]
call fcn.00405fd0
lea ecx, [ebp - 0x238]
call fcn.00405fd0
lea ecx, [ebp - 0x240]
call fcn.00405fd0
lea ecx, [ebp - 0x244]
call fcn.00405fd0
mov eax, dword [ebp - 0x24c]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x491d5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x491d81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x491da7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x248]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x491dcd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00480aee
mov esp, ebp
pop ebp
ret