Function at 0x65a8883f
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
push ebp
mov ecx, 4
xor eax, eax
xor edx, edx
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x6c]
push ebx
sub esp, 0xac
mov esi, dword [ebp + 0x14]
rep stosd dword es:[edi], eax
mov ebx, dword [esi]
test ebx, ebx
je 0x65a88883
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
lea edx, [edx + ecx + 2]
mov cl, byte [ebx]
test cl, cl
je 0x65a8887e
cmp cl, 0x22
jne 0x65a8887b
inc edx
inc ebx
jmp 0x65a8886f
add esi, 4
jmp 0x65a8885c
mov eax, dword [ebp + 8]
inc edx
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg._assuan_malloc
mov esi, eax
or eax, 0xffffffff
test esi, esi
je 0x65a88b8a
mov ebx, esi
xor edi, edi
mov eax, dword [ebp + 0x14]
cmp dword [eax + edi*4], 0
je 0x65a88932
test edi, edi
je 0x65a888bb
mov word [ebx], 0x20
inc ebx
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + edi*4]
cmp byte [edx], 0
jne 0x65a888d3
mov word [ebx], 0x2222
add ebx, 2
mov byte [ebx], 0
jmp 0x65a8892c
mov dword [esp], edx
mov dword [esp + 4], str.__t_n_v_f_
mov dword [ebp - 0x7c], edx
call sym._strpbrk
mov edx, dword [ebp - 0x7c]
test eax, eax
je 0x65a8891e
mov ecx, dword [ebp + 0x14]
mov word [ebx], 0x22
lea eax, [ebx + 1]
mov edx, dword [ecx + edi*4]
mov cl, byte [edx]
lea ebx, [eax + 1]
test cl, cl
je 0x65a88917
mov byte [eax], cl
cmp byte [edx], 0x22
jne 0x65a88912
mov byte [eax + 1], 0x22
lea ebx, [eax + 2]
inc edx
mov eax, ebx
jmp 0x65a888fb
mov word [eax], 0x22
jmp 0x65a8892c
mov dword [esp], ebx
mov dword [esp + 4], edx
call dbg.stpcpy
mov ebx, eax
inc edi
jmp 0x65a888a4
lea edx, [ebp - 0x58]
xor eax, eax
mov ecx, 0x10
mov dword [ebp - 0x74], 0
mov edi, edx
mov dword [ebp - 0x78], 0xc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x30], 0x100
mov dword [ebp - 0x20], eax
mov dword [esp], 2
call dword [0x65a8b07c]
mov dword [esp], eax
call sym._fileno
mov edx, eax
or eax, 0xffffffff
test edx, edx
js 0x65a88996
mov dword [esp], edx
call dword [sym.imp.msvcrt.dll__get_osfhandle]
cmp dword [ebp + 0x20], 0
je 0x65a889b4
mov edi, dword [ebp + 0x20]
mov edx, dword [edi]
cmp edx, 0xffffffff
je 0x65a889b4
cmp edx, eax
je 0x65a88a5a
add dword [ebp + 0x20], 4
jmp 0x65a8899c
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x65a8d660
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
jne 0x65a88a55
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dbg._assuan_w32_strerror
mov dword [esp + 0x10], 0x65a8d5f0
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.__assuan_spawn
mov dword [esp + 0x14], eax
mov dword [esp], eax
mov dword [esp + 8], str._s___s_p_:_call:_cant_open__nul:__s_n
mov dword [esp + 4], 5
call dbg._assuan_debug
mov eax, dword [ebp + 8]
mov dword [esp + 4], esi
mov dword [esp], eax
call dbg._assuan_free
jmp 0x65a88b39
mov dword [ebp - 0x1c], eax
jmp 0x65a88a67
inc edx
je 0x65a889b4
mov dword [ebp - 0x1c], eax
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push edi
mov edx, eax
lea eax, [ebp - 0x6c]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x5c]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x1c], 0
shr eax, 4
mov dword [esp + 0x18], 0
and eax, 8
mov dword [esp + 0x10], 1
or eax, edx
mov dword [esp + 4], esi
or eax, 0x4000004
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x78]
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
sub esp, 0x28
test eax, eax
jne 0x65a88b4a
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dbg._assuan_w32_strerror
mov dword [esp + 0x10], 0x65a8d5f0
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.pipe_connect_w32
mov dword [esp + 0x14], eax
mov dword [esp], eax
mov dword [esp + 8], str._s___s_p_:_call:_CreateProcess_failed:__s_n
mov dword [esp + 4], 5
call dbg._assuan_debug
mov eax, dword [ebp + 8]
mov dword [esp + 4], esi
mov dword [esp], eax
call dbg._assuan_free
cmp ebx, 0xffffffff
je 0x65a88b39
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
mov dword [esp], 5
call sym._gpg_err_set_errno
or eax, 0xffffffff
jmp 0x65a88b8a
mov eax, dword [ebp + 8]
mov dword [esp + 4], esi
mov dword [esp], eax
call dbg._assuan_free
cmp ebx, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x65a88b6a
mov dword [esp], ebx
call esi
push ecx
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push eax
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call esi
mov eax, dword [ebp + 0xc]
push edx
mov edx, dword [ebp - 0x6c]
mov dword [eax], edx
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret