Function at 0x461980
Capabilities:
Create pipe
Create process on windows
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x538a60]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov ecx, 0x44
lea eax, [ebp - 0x8c]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x4619a1
mov dword [ebp - 0x8c], 0x44
lea eax, [ebp - 0x44]
mov ecx, 0x10
lea esp, [esp]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x4619c0
or dword [ebp - 0x60], 0x100
lea eax, [ebp - 0x34]
push ecx
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], ecx
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], ecx
push eax
mov dword [ebp - 0x34], 0xc
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x30], ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x461a08
mov ecx, str.captureProcess:_error_with_StdoutRd_CreatePipe_n
call fcn.00458190
push 0
push 1
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x461a23
mov ecx, str.captureProcess:_error_with_Stdout_SetHandleInformation_n
call fcn.00458190
mov eax, dword [ebp - 0x28]
push str.osquery
push str.Acquiring__s_n
push 0xffffffffffffffff
push 0x1000
push 0x545d60
mov dword [ebp - 0x50], eax
call fcn.004bb4ef
add esp, 0x14
mov ecx, 0x545d60
call fcn.00458190
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x8c]
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push 0x552d60
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x461ac1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.osquery
push str.captureProcess:_CreateProcess_for__s_failed___d_._n
push 0xffffffffffffffff
push 0x800
push 0x545d60
call fcn.004bb4ef
add esp, 0x18
mov ecx, 0x545d60
call fcn.00458190
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004bae74
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x461c80
mov ecx, 0x4000
lea ecx, [ecx]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x461af0
push str.log.osquery.json.z
push 0x561208
push 0x561418
push str._S__s__S
push 0x1000
push 0x547d60
call fcn.00471220
push 0x1000
push 0x547d60
call fcn.004bbd22
mov ebx, dword [sym.imp.PGPsdk.dll_PGPCFBEncrypt]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
push 2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], 0
push eax
push dword [0x53ebb8]
call ebx
mov ecx, eax
call fcn.00455680
push 1
mov edx, 2
lea ecx, [ebp - 0x1c]
call fcn.00457880
push 0x548d60
push dword [ebp - 0x10]
push 0x547d60
push dword [0x53ebb8]
call ebx
add esp, 0x44
mov ecx, eax
call fcn.00455680
push dword [ebp - 0x10]
mov edx, 1
mov ecx, 0x548d60
call fcn.00457880
add esp, 4
push 0
lea eax, [ebp - 0xc]
push eax
push 0x4000
push edi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0xc]
mov esi, eax
add dword [0x560d60], ecx
lea eax, [ebp - 0x14]
push eax
adc dword [0x560d64], 0
lea eax, [ebp - 0xc]
push 2
push eax
push dword [0x53ebb8]
mov dword [ebp - 0x14], 0
call ebx
push 1
mov edx, 2
lea ecx, [ebp - 0x14]
call fcn.00457880
push 0x548d60
push dword [ebp - 0xc]
push edi
push dword [0x53ebb8]
call ebx
push dword [ebp - 0xc]
mov edx, 1
mov ecx, 0x548d60
call fcn.00457880
add esp, 0x28
test esi, esi
jne 0x461b97
push 0xffffffffffffffff
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x40]
call esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 2
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0xffffffff
push eax
push dword [0x53ebb8]
call ebx
push 1
mov edx, 2
lea ecx, [ebp - 0x18]
call fcn.00457880
mov ecx, dword [ebp - 8]
add esp, 0x14
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.004bae74
mov esp, ebp
pop ebp
ret
push str.Failed_to_allocate_memory_on_process_heap_n
call fcn.004bc829
add esp, 4
push 1
call fcn.004bcc8d
int3