Function at 0x51be30
Capabilities:
Create pipe
Create process on windows
Create reverse shell
Create two anonymous pipes
Impersonate user
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x14]
push edi
xor edi, edi
mov dword [ebp - 4], 0xffffffff
push edi
push edi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 0xffffffff
push eax
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call esi
test eax, eax
jne 0x51bea0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f1a60
mov edi, eax
push edi
push 0xc5
push 0
push 0
push dword [ebp + 8]
call fcn.00538a70
add esp, 0x18
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call esi
test eax, eax
jne 0x51beed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f1a60
mov edi, eax
push edi
push 0xc5
push 0
push 0
push dword [ebp + 8]
call fcn.00538a70
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x18
push dword [ebp - 4]
call esi
push dword [ebp - 0x14]
call esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push ebx
push 1
push 1
push dword [ebp - 0x10]
call esi
push 1
push 1
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [ebp - 0x50], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x10]
push dword [ebx]
mov dword [ebp - 0x54], 0x101
mov dword [ebp - 0x40], eax
call fcn.004f36e0
add esp, 4
cmp dword [ebx + 8], 1
lea esi, [eax + 6]
jle 0x51bf73
mov edi, 1
mov eax, dword [ebx + 4]
push dword [eax + edi*4]
call fcn.004f36e0
add eax, 2
add esi, eax
mov eax, dword [ebx + 4]
push 0x20
push dword [eax + edi*4]
call fcn.004f3990
add esp, 0xc
test eax, eax
je 0x51bf6b
add esi, 4
inc edi
cmp edi, dword [ebx + 8]
jl 0x51bf44
xor edi, edi
push 0x6b4d4351
push esi
call fcn.004f3590
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x51bf8f
lea edi, [eax + 0xc]
jmp 0x51c307
push esi
push ebx
call fcn.004f3630
mov eax, dword [ebp + 0xc]
push dword [eax]
push 0x6dd7ec
push esi
push ebx
call fcn.004f3b60
mov eax, dword [ebp + 0xc]
mov ecx, 1
add esp, 0x18
cmp dword [eax + 8], ecx
jle 0x51c05b
mov edi, eax
nop dword [eax]
mov eax, dword [edi + 4]
push 0x6d7058
mov eax, dword [eax + ecx*4]
inc ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], ecx
call fcn.004f36e0
push eax
push 0x6d7058
push esi
push ebx
call fcn.004f3920
push 0x20
push dword [ebp - 8]
call fcn.004f3990
add esp, 0x1c
test eax, eax
je 0x51c00f
push 0x6dd7f8
call fcn.004f36e0
push eax
push 0x6dd7f8
push esi
push ebx
call fcn.004f3920
add esp, 0x14
push dword [ebp - 8]
call fcn.004f36e0
push eax
push dword [ebp - 8]
push esi
push ebx
call fcn.004f3920
push 0x20
push dword [ebp - 8]
call fcn.004f3990
add esp, 0x1c
test eax, eax
je 0x51c04d
push 0x6dd7f8
call fcn.004f36e0
push eax
push 0x6dd7f8
push esi
push ebx
call fcn.004f3920
add esp, 0x14
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [edi + 8]
jl 0x51bfc0
xor edi, edi
shr esi, 1
xor eax, eax
mov word [ebx + esi*2 - 2], ax
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], eax
je 0x51c1fc
cmp dword [esi + 0x14], 0
lea eax, [esi + 0x14]
jne 0x51c0cd
push dword [ebp + 8]
call fcn.00533780
mov edi, eax
add esp, 4
test edi, edi
je 0x51c08c
jmp 0x51c0b0
lea eax, [esi + 0x14]
push eax
push 0x6dd7d4
push dword [ebp + 8]
call fcn.00533540
push dword [ebp + 8]
mov edi, eax
call fcn.005339d0
mov eax, edi
add esp, 0x10
test eax, eax
je 0x51c0ca
push eax
push 0xc6
push 0
push 0
push dword [ebp + 8]
call fcn.00538a70
add esp, 0x14
jmp 0x51c307
lea eax, [esi + 0x14]
lea ecx, [ebp - 0x18]
push ecx
push 0
push 2
push dword [eax]
push dword [esi + 0x18]
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
jne 0x51c112
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f1a60
mov edi, eax
push edi
push dword [esi + 0x10]
push 0xc7
push 0
push 0
push dword [ebp + 8]
call fcn.00538a70
add esp, 0x1c
jmp 0x51c307
push dword [ebp - 0x18]
mov dword [ebp - 0x20], 1
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x51c14e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f1a60
mov edi, eax
push edi
push 0xc8
push 0
push 0
push dword [ebp + 8]
call fcn.00538a70
add esp, 0x18
jmp 0x51c307
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [esi + 0xc]
push 0
push 0
push 1
push 0
push 0
push ebx
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0x24], eax
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x51c1ca
test byte [0x9538a8], 1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x51c1b8
call esi
push eax
call fcn.004f1a60
push eax
push str.RevertToSelf_function_failed_with_error__d
push 0x1f1
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_cmd_cmd_exec.c
push str.cmd_exec_launch_prog
push dword [0x7b01bc]
push 1
call fcn.004f21c0
add esp, 0x20
call esi
push eax
call fcn.004f1a60
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [ebp - 0x24], 0
jne 0x51c247
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f1a60
mov edi, eax
push edi
push dword [esi + 0x10]
push ebx
push 0xc9
push 0
push 0
push dword [ebp + 8]
call fcn.00538a70
add esp, 0x20
jmp 0x51c307
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [esi + 0xc]
push 0
push 0
push 1
push 0
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x51c247
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f1a60
mov edi, eax
push edi
push ebx
push 0xca
push 0
push 0
push dword [ebp + 8]
call fcn.00538a70
add esp, 0x1c
jmp 0x51c307
mov esi, dword [ebp + 8]
push ebx
push 0xcb
push 0
push 0
push esi
call fcn.00538a70
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x28], eax
call fcn.004ef3e0
add esp, 0x18
test eax, eax
jne 0x51c2ea
push 0x3e8
push 0
lea eax, [ebp - 0x2c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, 0
je 0x51c2a5
sub eax, 1
je 0x51c2a0
sub eax, 0x101
je 0x51c29c
or edi, 0xffffffff
jmp 0x51c2b1
xor edi, edi
jmp 0x51c2b1
push dword [ebp - 0xc]
jmp 0x51c2a8
push dword [ebp - 4]
push esi
call fcn.0051bcb0
add esp, 8
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x51c366
mov eax, dword [ebp - 0x1c]
cmp eax, 0x103
jne 0x51c350
push 0
push 0xa
call fcn.004f49d0
push esi
call fcn.004ef3e0
add esp, 0xc
test eax, eax
je 0x51c273
push dword [ebp - 0x34]
call fcn.0055b860
add esp, 4
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], 0
je 0x51c33a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x51c347
push ebx
call fcn.004f3570
add esp, 4
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push eax
push ebx
push 0xcd
push 0
push 0
push esi
call fcn.00538a70
add esp, 0x18
jmp 0x51c2f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f1a60
mov edi, eax
push edi
push 0xcc
push 0
push 0
push esi
call fcn.00538a70
add esp, 0x18
jmp 0x51c2f5