Function at 0x41ebc0
Capabilities:
Create service
Persist via windows service

Disassembly:
push 0xffffffffffffffff
push 0x485368
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4720]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x84]
mov ebx, ecx
mov esi, dword [esp + 0x7c]
push str.Wow64DisableWow64FsRedirection
xor edi, edi
push str.kernel32
mov dword [esp + 0x40], edi
mov dword [esp + 0x48], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x3c], eax
cmp eax, edi
je 0x41ec24
lea ecx, [esp + 0x40]
push ecx
call eax
mov dword [esp + 0x74], edi
call fcn.004440b8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41ec42
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x74], 1
call fcn.004440b8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41ec71
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x74], 2
call fcn.004440b8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41eca0
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x74], 3
call fcn.004440b8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41eccf
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x74], 4
call fcn.004440b8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41ecfe
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
push 1
lea ecx, [esp + 0x24]
push ecx
push ecx
mov byte [esp + 0x80], 5
mov ecx, esp
mov dword [esp + 0x40], esp
push str.strServicePath
call fcn.00401ed0
push esi
mov edi, ebp
call fcn.0042e350
mov dword [esp + 0x18], eax
test eax, eax
jne 0x41ee0f
mov edi, 0xa0000001
lea esi, [esp + 0x34]
call fcn.00414000
mov byte [esp + 0x74], 6
push eax
mov ecx, ebp
call fcn.00407570
mov byte [esp + 0x74], 5
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ed82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x80]
mov byte [esp + 0x74], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [ecx], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41edb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x74], 3
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41edd9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x74], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41edfe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x74], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
jmp 0x41f251
push 1
lea ecx, [esp + 0x28]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.strServiceName
call fcn.00401ed0
push esi
mov edi, ebp
call fcn.0042e350
mov dword [esp + 0x18], eax
test eax, eax
jne 0x41ee4f
mov edi, 0xa0000001
lea esi, [esp + 0x34]
call fcn.00414000
mov byte [esp + 0x74], 7
jmp 0x41ed55
push 1
lea ecx, [esp + 0x20]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.strServiceDispName
call fcn.00401ed0
push esi
mov edi, ebp
call fcn.0042e350
mov dword [esp + 0x18], eax
test eax, eax
jne 0x41ee8f
mov edi, 0xa0000001
lea esi, [esp + 0x34]
call fcn.00414000
mov byte [esp + 0x74], 8
jmp 0x41ed55
push 1
lea ecx, [esp + 0x30]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.dwStartType
call fcn.00401ed0
push esi
mov edi, ebp
call fcn.0042e350
mov dword [esp + 0x18], eax
test eax, eax
jne 0x41eecf
mov edi, 0xa0000001
lea esi, [esp + 0x34]
call fcn.00414000
mov byte [esp + 0x74], 9
jmp 0x41ed55
lea ecx, [esp + 0x34]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.DWORD
call fcn.00401ed0
mov byte [esp + 0x7c], 0xa
mov esi, dword [esp + 0x34]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x40], esp
mov dword [esp + 0x40], esp
mov dword [esp + 0x3c], esi
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x41ef20
cmp eax, dword [esi]
jne 0x41ef20
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41ef5e
mov edx, dword [eax]
mov edx, dword [edx]
mov edi, esi
mov ecx, dword [edi + 4]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
jne 0x41ef3b
call fcn.004303e0
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [esi + 0x10]
push eax
call fcn.00461715
add esp, 0x10
mov ecx, dword [esp + 0x40]
add esi, 0x10
mov dword [ecx], esi
mov byte [esp + 0x80], 5
call fcn.0043eb10
add esp, 0xc
push 1
lea edx, [esp + 0x2c]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.iSystemBits
call fcn.00401ed0
mov eax, dword [esp + 0x88]
push eax
mov edi, ebp
call fcn.0042e350
mov dword [esp + 0x18], eax
test eax, eax
jne 0x41f02a
mov edi, 0xa0000001
lea esi, [esp + 0x34]
call fcn.00414000
push eax
mov ecx, ebp
mov byte [esp + 0x78], 0xb
call fcn.00407570
mov byte [esp + 0x74], 5
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41efea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x80]
mov byte [esp + 0x74], 4
mov eax, dword [esp + 0x28]
mov dword [ecx], 0
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41f01c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
mov byte [esp + 0x74], 3
jmp 0x41edc0
mov edi, dword [esp + 0x28]
push edi
call fcn.00461856
add esp, 4
cmp dword [0x4a657c], 0
mov esi, eax
je 0x41f089
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41f07f
lea ecx, [esp + 0x44]
push ecx
call eax
mov ax, word [esp + 0x44]
cmp ax, 9
je 0x41f075
cmp ax, 6
jne 0x41f07f
mov dword [0x4a99d4], 1
mov dword [0x4a657c], 0
test esi, esi
je 0x41f09b
cmp esi, 1
jne 0x41f0f8
cmp dword [0x4a99d4], 0
jne 0x41f106
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, dword [esp + 0x24]
mov esi, eax
test esi, esi
je 0x41f154
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
push 0
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push edx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
je 0x41f11b
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x18], 1
jmp 0x41f12b
cmp esi, 2
jne 0x41f106
cmp dword [0x4a99d4], 0
jne 0x41f09b
mov dword [esp + 0x18], 1
mov byte [esp + 0x74], 4
lea eax, [edi - 0x10]
jmp 0x41f003
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp + 0x18], 0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [esp + 0x18], 0
jne 0x41f1be
mov eax, dword [esp + 0x80]
cmp edi, 0x431
jne 0x41f166
mov dword [eax], 1
jmp 0x41f16f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp + 0x18], 0
jmp 0x41f13d
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 0x10]
mov dword [eax], edx
lea esi, [esp + 0x34]
call fcn.00414000
mov ecx, dword [esp + 0x7c]
mov byte [esp + 0x74], 0xc
mov edx, dword [esp + 0x34]
mov eax, dword [ecx + 0x2c]
push edx
push ebx
push eax
push ebp
call fcn.00403800
mov byte [esp + 0x84], 5
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f1dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41f1dd
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
mov dword [ecx], 2
mov eax, dword [edx + 0x30]
push ebx
push eax
push ebp
call fcn.00403800
add esp, 0xc
mov byte [esp + 0x74], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f202
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
mov byte [esp + 0x74], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f224
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x74], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f249
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x74], 1
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f26a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x74], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f28f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x74], 0xffffffff
cmp dword [esp + 0x3c], 0
je 0x41f2c0
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41f2c0
mov ecx, dword [esp + 0x40]
push ecx
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret