Function at 0x4553a0
Capabilities:
Create service
Manipulate safe mode programs
Modify service
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b67e8
mov eax, dword fs:[0]
push eax
sub esp, 0xbdc
mov eax, dword [0x61f138]
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 ebx, ecx
push 0x109
lea eax, [ebp - 0x228]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x228]
mov dword [ebp - 0xa48], 0x22
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4553f6
lea edi, [ebp - 0xa48]
sub edx, esi
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x455410
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0xa48]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x455433
mov eax, dword [0x5e3220]
mov dword [edi], eax
lea edi, [ebp - 0xa48]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x455450
cmp dword [ebx + 0x14], 8
mov eax, dword [0x5e3480]
mov dword [edi], eax
jb 0x45546b
mov ebx, dword [ebx]
mov esi, ebx
lea ecx, [ecx]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x455470
lea edi, [ebp - 0xa48]
sub ebx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x455486
mov ecx, ebx
sub esp, 8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0xb38]
call fcn.00442390
mov edx, str.Installing_service:
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xb28]
call fcn.0044a500
lea edx, [ebp - 0xa48]
mov ecx, eax
call fcn.0044a500
lea eax, [ebp - 0xa60]
push eax
lea ecx, [ebp - 0xb20]
call fcn.004466f0
push 0x20f
mov edx, str.service.cpp
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa60]
call fcn.004c37b0
mov byte [ebp - 4], 0
add esp, 4
mov edx, dword [ebp - 0xa4c]
cmp edx, 8
jb 0x455544
mov ecx, dword [ebp - 0xa60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45553a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4558a7
push edx
push ecx
call fcn.0056eec5
add esp, 8
lea ecx, [ebp - 0xb38]
mov dword [ebp - 4], 0xffffffff
call fcn.0043ae30
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x455619
sub esp, 8
lea ecx, [ebp - 0xb38]
call fcn.00443510
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str.OpenSCManager_error:
lea ecx, [ebp - 0xb28]
call fcn.00449a40
add esp, 4
mov ecx, eax
call fcn.00456240
lea eax, [ebp - 0xa78]
push eax
lea ecx, [ebp - 0xb38]
call fcn.004433d0
push 0x213
mov edx, str.service.cpp
mov byte [ebp - 4], 3
mov ecx, eax
call fcn.004c2da0
mov edx, dword [ebp - 0xa64]
add esp, 4
cmp edx, 0x10
jb 0x455607
mov ecx, dword [ebp - 0xa78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4555fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4558ac
push edx
push ecx
call fcn.0056eec5
add esp, 8
lea ecx, [ebp - 0xb38]
call fcn.0043aef0
xor al, al
jmp 0x45588b
push 0
push 0
push str.Tcpip
push 0
push 0
lea eax, [ebp - 0xa48]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push str.AeroadminService
push str.AeroadminService
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4557a6
lea eax, [ebp - 0xa84]
mov dword [ebp - 0xa84], 1
mov dword [ebp - 0xa4c], eax
lea eax, [ebp - 0xa5c]
push eax
push 2
push esi
mov dword [ebp - 0xa80], 0x2710
mov dword [ebp - 0xa5c], 0x3c
mov dword [ebp - 0xa54], 0
mov dword [ebp - 0xa58], 0
mov dword [ebp - 0xa50], 1
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x45574d
sub esp, 8
lea ecx, [ebp - 0xb38]
call fcn.00443510
mov edx, str.ChangeServiceConfig2_error
mov dword [ebp - 4], 4
lea ecx, [ebp - 0xb28]
call fcn.00449a40
lea eax, [ebp - 0xa78]
push eax
lea ecx, [ebp - 0xb38]
call fcn.004433d0
push 0x229
mov edx, str.service.cpp
mov byte [ebp - 4], 5
mov ecx, eax
call fcn.004c2da0
mov edx, dword [ebp - 0xa64]
add esp, 4
cmp edx, 0x10
jb 0x455742
mov ecx, dword [ebp - 0xa78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x455738
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4558b1
push edx
push ecx
call fcn.0056eec5
add esp, 8
lea ecx, [ebp - 0xb38]
call fcn.0043aef0
push esi
call ebx
push 0
lea eax, [ebp - 0xa7c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SYSTEMControlSet001ControlSafeBootNetworkAeroadminService
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x455795
push 0x10
push str.Service
push 1
push eax
push 0x5e1af8
push dword [ebp - 0xa7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xa7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x455883
sub esp, 8
lea ecx, [ebp - 0xbe8]
call fcn.00442390
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str.CreateService_error:
lea ecx, [ebp - 0xbd8]
call fcn.0044a500
add esp, 4
mov ecx, eax
call fcn.00442ba0
mov edx, str.__name:
mov ecx, eax
call fcn.0044a500
mov edx, str.AeroadminService
mov ecx, eax
call fcn.0044a500
mov edx, str.__path:
mov ecx, eax
call fcn.0044a500
lea edx, [ebp - 0xa48]
mov ecx, eax
call fcn.0044a500
lea eax, [ebp - 0xa78]
push eax
lea ecx, [ebp - 0xbd0]
call fcn.004466f0
push 0x23b
mov edx, str.service.cpp
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xa78]
call fcn.004c37b0
mov edx, dword [ebp - 0xa64]
add esp, 4
cmp edx, 8
jb 0x455878
mov ecx, dword [ebp - 0xa78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45586e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4558b6
push edx
push ecx
call fcn.0056eec5
add esp, 8
lea ecx, [ebp - 0xbe8]
call fcn.0043ae30
push edi
call ebx
test esi, esi
setne al
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.0056eeb4
mov esp, ebp
pop ebp
ret
call fcn.00591dc6
call fcn.00591dc6
call fcn.00591dc6
call fcn.00591dc6
int3