Function at 0x65a8866c
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 0x65a886b0
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 0x65a886ab
cmp cl, 0x22
jne 0x65a886a8
inc edx
inc ebx
jmp 0x65a8869c
add esi, 4
jmp 0x65a88689
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 0x65a889b4
mov ebx, esi
xor edi, edi
mov eax, dword [ebp + 0x14]
cmp dword [eax + edi*4], 0
je 0x65a88760
test edi, edi
je 0x65a886e8
mov word [ebx], 0x20
inc ebx
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + edi*4]
cmp byte [edx], 0
jne 0x65a88701
mov word [ebx], 0x2222
mov byte [ebx + 2], 0
add ebx, 2
jmp 0x65a8875a
mov dword [esp], edx
mov dword [esp + 4], str.__t_n_v_f_
mov dword [ebp - 0x7c], edx
call sym._strpbrk
test eax, eax
mov edx, dword [ebp - 0x7c]
je 0x65a8874c
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 0x65a88745
mov byte [eax], cl
cmp byte [edx], 0x22
jne 0x65a88740
lea ebx, [eax + 2]
mov byte [eax + 1], 0x22
inc edx
mov eax, ebx
jmp 0x65a88729
mov word [eax], 0x22
jmp 0x65a8875a
mov dword [esp], ebx
mov dword [esp + 4], edx
call dbg.stpcpy
mov ebx, eax
inc edi
jmp 0x65a886d1
lea edx, [ebp - 0x74]
xor eax, eax
mov ecx, 2
mov dword [ebp - 0x78], 0xc
mov dword [ebp - 0x5c], 0x44
mov edi, edx
lea edx, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov edi, edx
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], 0x100
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fileno
or ecx, 0xffffffff
test eax, eax
js 0x65a887bd
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
mov ecx, eax
cmp dword [ebp + 0x20], 0
je 0x65a887df
mov eax, dword [ebp + 0x20]
mov edx, dword [eax]
cmp edx, 0xffffffff
je 0x65a88885
cmp edx, ecx
je 0x65a88885
add dword [ebp + 0x20], 4
jmp 0x65a887c3
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], 0x65a8d640
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
mov ebx, eax
jne 0x65a88880
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dbg._assuan_w32_strerror
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0x65a8d5d0
mov dword [esp + 0xc], str.__assuan_spawn
mov dword [esp + 8], str._s___s_p_:_call:_cant_open__nul:__s_n
mov dword [esp + 4], 5
mov dword [esp + 0x14], eax
mov dword [esp], eax
call dbg._assuan_debug
mov eax, dword [ebp + 8]
mov dword [esp + 4], esi
mov dword [esp], eax
call dbg._assuan_free
jmp 0x65a88963
mov dword [ebp - 0x1c], eax
jmp 0x65a88892
inc edx
je 0x65a887df
mov dword [ebp - 0x1c], ecx
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
lea edx, [ebp - 0x6c]
push edi
mov dword [esp + 0x24], edx
lea edx, [ebp - 0x5c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0x2c]
mov dword [esp + 4], esi
shr edx, 4
and edx, 8
or edx, 0x4000004
or eax, edx
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 0x65a88974
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dbg._assuan_w32_strerror
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0x65a8d5d0
mov dword [esp + 0xc], str.pipe_connect_w32
mov dword [esp + 8], str._s___s_p_:_call:_CreateProcess_failed:__s_n
mov dword [esp + 4], 5
mov dword [esp + 0x14], eax
mov dword [esp], eax
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 0x65a88963
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 0x65a889b4
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 0x65a88994
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