Function at 0x462300
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 [0x53eb9a], 0
push ebx
push esi
push edi
je 0x46279d
mov ecx, str.AMD64
mov eax, 0x560e08
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x462356
test dx, dx
je 0x462352
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x462356
add eax, 4
add ecx, 4
test dx, dx
jne 0x462330
xor eax, eax
jmp 0x46235b
sbb eax, eax
or eax, 1
push str.needle
test eax, eax
jne 0x46236b
push 0xa8
jmp 0x462370
push 0xa2
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4623a9
mov ecx, 0x523ad8
call fcn.00458190
push str.acquireNeedle:_Critical_error__failed_to_find_resource_needle_n
call fcn.004bc829
add esp, 4
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 0x4623e3
mov ecx, 0x523b98
call fcn.00458190
push str.acquireNeedle:_Critical_error__failed_to_load_resource_needle_n
call fcn.004bc829
add esp, 4
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._sneedle.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 0x462460
push 0x552d60
push str.acquireNeedle:_Failed_to_open_needle__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 0x46249a
mov ecx, 0x523cd0
call fcn.00458190
push str.acquireNeedle:_WriteFile_failed_n
call fcn.004bc829
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebx
mov ecx, 0x44
lea eax, [ebp - 0x90]
mov edi, edi
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x4624b0
mov dword [ebp - 0x90], 0x44
lea eax, [ebp - 0x44]
mov ecx, 0x10
jmp 0x4624d0
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x4624d0
or dword [ebp - 0x64], 0x100
push 0x54ed60
push str._sneedle.exe
push 0x1000
push 0x552d60
call fcn.004bb50e
push 0x53ed60
push 0x54ed60
push str.__sneedle.exe____S___j
push 0x1000
push 0x552d60
call fcn.004bb50e
add esp, 0x24
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 0x46255f
mov ecx, str.acquireNeedle:_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 0x46257a
mov ecx, str.acquireNeedle:_error_with_Stdout_SetHandleInformation_n
call fcn.00458190
mov eax, dword [ebp - 0x28]
mov ecx, str.Acquiring_Needle_Output_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 0x4625f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.acquireNeedle:_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_needle.json.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
nop
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 0x4626a0
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.Needle_Output_Acquired__delete_temp_Needle_binary_n
call fcn.00458190
push 0x54ed60
push str._sneedle.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