Function at 0x4032c0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58ab0f
mov eax, dword fs:[0]
push eax
sub esp, 0x514
mov eax, dword [0x61b000]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x34], 0
xor eax, eax
mov word [ebp - 0x44c], ax
push 0x40e
push 0
lea ecx, [ebp - 0x44a]
push ecx
call fcn.00568440
add esp, 0xc
push 0x207
lea edx, [ebp - 0x44c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40335c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x60268c
push str.Err:_Unable_to_install__s___GetModuleFileName_code_d_n
push 0x602714
call fcn.0040c230
add esp, 0x10
xor eax, eax
jmp 0x4035e3
push str.__AutoRun1
lea ecx, [ebp - 0x484]
call fcn.00406230
mov dword [ebp - 0x4fc], eax
mov eax, dword [ebp - 0x4fc]
mov dword [ebp - 0x500], eax
mov dword [ebp - 4], 0
push 0x60273c
lea ecx, [ebp - 0x4a0]
call fcn.00406230
mov dword [ebp - 0x504], eax
mov ecx, dword [ebp - 0x504]
mov dword [ebp - 0x508], ecx
mov byte [ebp - 4], 1
push 0x602740
lea ecx, [ebp - 0x4bc]
call fcn.00406230
mov dword [ebp - 0x50c], eax
mov edx, dword [ebp - 0x50c]
mov dword [ebp - 0x510], edx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x44c]
push eax
mov ecx, dword [ebp - 0x510]
push ecx
lea edx, [ebp - 0x4d8]
push edx
call fcn.00407af0
add esp, 0xc
mov dword [ebp - 0x514], eax
mov eax, dword [ebp - 0x514]
mov dword [ebp - 0x518], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x508]
push ecx
mov edx, dword [ebp - 0x518]
push edx
lea eax, [ebp - 0x4f4]
push eax
call fcn.00407b80
add esp, 0xc
mov dword [ebp - 0x51c], eax
mov ecx, dword [ebp - 0x51c]
mov dword [ebp - 0x520], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x500]
push edx
mov eax, dword [ebp - 0x520]
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.00407b80
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4f4]
call fcn.00406270
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x4d8]
call fcn.00406270
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4bc]
call fcn.00406270
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x4a0]
call fcn.00406270
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x484]
call fcn.00406270
push 3
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x403510
push 0
push 0
push 0x602744
push 0
push 0
lea ecx, [ebp - 0x30]
call fcn.00406290
push eax
push 1
push 2
push 0x10
push 0x16
push str.AD_ESS_Terminal_Security_Info_Monitor_Service
push 0x6027bc
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4034f5
mov dword [ebp - 0x38], 1
jmp 0x40350e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Err:_CreateService_failed___code_d_n
push 0x602820
call fcn.0040c230
add esp, 0xc
jmp 0x403529
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Err:_OpenSCManager_failed___code_d_n
push 0x602880
call fcn.0040c230
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x4035b5
mov dword [ebp - 0x464], 0x3e8
mov dword [ebp - 0x468], 1
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 0x602890
mov dword [ebp - 0x458], 0x602894
mov dword [ebp - 0x454], 1
lea eax, [ebp - 0x468]
mov dword [ebp - 0x450], eax
lea ecx, [ebp - 0x460]
push ecx
push 2
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x4035ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Err:_ChangeServiceConfig2_failed___code_d_n
push str.install_service
call fcn.0040c230
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x34], 0
je 0x4035c5
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x4f8], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00406270
mov eax, dword [ebp - 0x4f8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret