Function at 0x100c52e0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create reverse shell
Create two anonymous pipes
Terminate process
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024e90a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push esi
push edi
mov edi, ecx
push 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
lea ebx, [edi + 0x44]
push ecx
lea eax, [edi + 0x38]
mov dword [ebp - 0x14], 1
push ebx
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0xc
call esi
test eax, eax
je 0x100c5502
push 0
lea edx, [ebp - 0x1c]
push edx
lea eax, [edi + 0x48]
lea ecx, [edi + 0x3c]
push eax
push ecx
call esi
test eax, eax
je 0x100c5502
xor eax, eax
mov dword [ebp - 0x88], 0x44
mov word [ebp - 0x4e], ax
xorps xmm0, xmm0
mov eax, dword [ebx]
mov dword [ebp - 0x4c], eax
mov eax, dword [edi + 0x48]
mov dword [ebp - 0x48], eax
xor eax, eax
movlpd qword [ebp - 0x84], xmm0
movlpd qword [ebp - 0x7c], xmm0
movlpd qword [ebp - 0x74], xmm0
movlpd qword [ebp - 0x6c], xmm0
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x56], xmm0
mov dword [ebp - 0x5c], 0x101
mov word [ebp - 0x58], ax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 1
mov esi, dword [edi + 0x10]
test esi, esi
jne 0x100c53d6
cmp dword [edi + 0x2c], 8
lea eax, [edi + 0x18]
jb 0x100c53c2
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x44]
push 0x10266fa8
push eax
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMStringUtils::Format_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____wchar_t_const__
add esp, 0xc
jmp 0x100c5447
push 0
push 0x20
mov ecx, edi
call fcn.1001ce80
cmp eax, 0xffffffff
je 0x100c5404
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100c53f0
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x44]
push 0x102683dc
push eax
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMStringUtils::Format_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____wchar_t_const__
add esp, 0xc
jmp 0x100c541f
lea eax, [ebp - 0x44]
cmp eax, edi
je 0x100c541f
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100c5415
mov eax, dword [edi]
push esi
push eax
lea ecx, [ebp - 0x44]
call fcn.1001a600
cmp dword [edi + 0x28], 0
je 0x100c5447
push 0x20
lea ecx, [ebp - 0x44]
call fcn.1001cfd0
cmp dword [edi + 0x2c], 8
lea eax, [edi + 0x18]
mov ecx, dword [eax + 0x10]
jb 0x100c543d
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.1001a7c0
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
push 1
push dword [edi + 0x38]
call esi
push 0
push 1
push dword [edi + 0x3c]
call esi
push 1
push 1
push dword [ebx]
call esi
push 1
push 1
push dword [edi + 0x48]
call esi
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x88]
push ecx
push 0
push 0
push 0
push 1
push 0
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x100c54e3
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x30], eax
test ecx, ecx
je 0x100c54f6
cmp dword [ebp + 0x1c], 0x10
lea edx, [ebp - 0x10]
push 0
push edx
lea eax, [ebp + 8]
mov dword [ebp - 0x10], ecx
cmovae eax, dword [ebp + 8]
push ecx
push eax
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100c54f6
push 0xffffffffffffffff
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, edi
call sym.WMCommon.dll_private:_void___thiscall_WM::GMProcessShell::CloseAllHandle_void_
lea ecx, [ebp - 0x44]
xor bl, bl
call fcn.1001a5a0
jmp 0x100c5504
lea ecx, [ebp - 0x44]
mov bl, 1
call fcn.1001a5a0
jmp 0x100c5504
xor bl, bl
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x100c553a
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100c5530
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100c5530
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1006e6d7
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18