Function at 0x461ca0
Capabilities:
Create pipe
Create process on windows
Delete file
Extract resource via kernel32 functions
Read file on windows
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x538a60]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x53eb9c], 0
push ebx
push esi
push edi
je 0x4620dd
push str.winpmem
push 0xaa
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x461cf9
mov ecx, str.acquireMemory:_Critical_error__failed_to_find_resource_winpmem_n
call fcn.00458190
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bae74
mov esp, ebp
pop ebp
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x461d26
mov ecx, str.acquireMemory:_Critical_error__failed_to_load_resource_pubsig_n
call fcn.00458190
lea eax, [ebx + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bae74
mov esp, ebp
pop ebp
ret
push 0x54ed60
push str._swinpmem_mini.exe
push 0x1000
push 0x552d60
call fcn.004bb50e
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x552d60
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x461da3
push 0x552d60
push str.acquireMemory:_Failed_to_open_winpmem__s._n
push eax
push 0x800
push 0x545d60
call fcn.004bb4ef
add esp, 0x14
mov ecx, 0x545d60
call fcn.00458190
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bae74
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x461dd0
mov ecx, str.acquireMemory:_WriteFile_failed_n
call fcn.00458190
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebx
mov ecx, 0x44
lea eax, [ebp - 0x90]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x461de4
mov dword [ebp - 0x90], 0x44
lea eax, [ebp - 0x44]
mov ecx, 0x10
nop
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x461e00
or dword [ebp - 0x64], 0x100
push 0x54ed60
push str._swinpmem_mini.exe
push 0x1000
push 0x552d60
call fcn.004bb50e
mov edx, 0x528cb0
mov ecx, 0x552d60
call fcn.0045d5f0
push 0x54ed60
push str.__swinpmem_mini.exe___0__
push 0x1000
push 0x552d60
call fcn.004bb50e
add esp, 0x20
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x34], 0xc
mov dword [ebp - 0x2c], 1
push 0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], 0
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x461e99
mov ecx, str.acquireMemory:_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 0x461eb4
mov ecx, str.acquireMemory:_error_with_Stdout_SetHandleInformation_n
call fcn.00458190
mov eax, dword [ebp - 0x28]
mov ecx, str.Acquiring_memory_n
mov dword [ebp - 0x54], eax
call fcn.00458190
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x90]
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 0x461f2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.acquireMemory:_CreateProcess_failed___d_._n
push 0xffffffffffffffff
push 0x800
push 0x545d60
call fcn.004bb4ef
add esp, 0x14
mov ecx, 0x545d60
call fcn.00458190
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bae74
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x28]
call ebx
mov ecx, 0x4000
call fcn.00455630
push 0x561208
push 0x561418
push str._S__s_memory.z
push 0x1000
push 0x547d60
mov ebx, eax
call fcn.00471220
push 0x1000
push 0x547d60
call fcn.004bbd22
mov edi, dword [sym.imp.PGPsdk.dll_PGPCFBEncrypt]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], 0
push eax
push dword [0x53ebb8]
call edi
mov ecx, eax
call fcn.00455680
push 1
mov edx, 2
lea ecx, [ebp - 0x18]
call fcn.00457880
push 0x548d60
push dword [ebp - 0xc]
push 0x547d60
push dword [0x53ebb8]
call edi
add esp, 0x40
mov ecx, eax
call fcn.00455680
push dword [ebp - 0xc]
mov edx, 1
mov ecx, 0x548d60
call fcn.00457880
add esp, 4
lea esp, [esp]
push 0
lea eax, [ebp - 8]
push eax
push 0x4000
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
mov esi, eax
add dword [0x560d60], ecx
lea eax, [ebp - 0x10]
push eax
adc dword [0x560d64], 0
lea eax, [ebp - 8]
push 2
push eax
push dword [0x53ebb8]
mov dword [ebp - 0x10], 0
call edi
push 1
mov edx, 2
lea ecx, [ebp - 0x10]
call fcn.00457880
push 0x548d60
push dword [ebp - 8]
push ebx
push dword [0x53ebb8]
call edi
push dword [ebp - 8]
mov edx, 1
mov ecx, 0x548d60
call fcn.00457880
add esp, 0x28
test esi, esi
jne 0x461fe0
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
mov ecx, ebx
call fcn.0045c9f0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 2
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0xffffffff
push eax
push dword [0x53ebb8]
call edi
push 1
mov edx, 2
lea ecx, [ebp - 0x14]
call fcn.00457880
mov ecx, str.Memory_acquired__delete_temp_winpmem_binary_n
call fcn.00458190
push 0x54ed60
push str._swinpmem_mini.exe
push 0xffffffffffffffff
push 0x1000
push 0x552d60
call fcn.004bb4ef
add esp, 0x28
push 0x552d60
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bae74
mov esp, ebp
pop ebp
ret