Function at 0x4a8cb0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Delete file
Resume thread
Terminate process

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3ec
xor ebx, ebx
mov esi, dword [esp + 0x404]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
call fcn.004a2d30
mov eax, dword [esp + 0x400]
mov dword [esp + 0xc], 0x716b02
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 8], str._gpgme_io_spawn
mov dword [esp + 4], str._s:_enter:__s_p__path_s_n
mov dword [esp], 7
call fcn.004a2da0
mov eax, dword [esi]
test eax, eax
je 0x4a9564
mov ebp, dword [esp + 0x400]
lea esi, [esi]
mov dword [esp + 0x14], ebx
inc ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 0x716b02
mov dword [esp + 8], str._gpgme_io_spawn
mov dword [esp + 4], str._s:_check:__s_p__argv__2i____s_n
mov dword [esp], 7
call fcn.004a2da0
mov eax, dword [esi + ebx*4]
lea edi, [ebx*4]
test eax, eax
jne 0x4a8d30
lea eax, [esp + 0x50]
mov dword [esp + 4], eax
lea eax, [esp + 0x4c]
mov dword [esp], eax
call fcn.004a1d40
test eax, eax
js 0x4a95ee
mov eax, dword [esp + 0x50]
add ebx, 3
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x400]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x716b02
mov dword [esp + 8], str._gpgme_io_spawn
mov dword [esp + 4], str._s:_check:__s_p__tmp_name___s_n
mov dword [esp], 7
add esi, 4
call fcn.004a2da0
mov dword [esp], ebx
mov dword [esp + 4], 4
call sub.msvcrt.dll_calloc
mov ebp, eax
call fcn.004a1ca0
mov dword [ebp], eax
mov ebx, eax
mov eax, dword [esp + 0x50]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x400]
mov dword [ebp + 8], eax
lea eax, [ebp + 0xc]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x54], 0xc
test ebx, ebx
je 0x4a954d
lea eax, [ebp + 4]
mov edx, ebx
mov dword [esp + 0x34], eax
mov edi, eax
xor eax, eax
lea ecx, [eax + 1]
mov al, byte [edx]
test al, al
jne 0x4a8e4d
jmp 0x4a8e5e
cmp al, 0x22
je 0x4a8e54
inc edx
mov al, byte [edx]
mov ecx, esi
test al, al
je 0x4a8e5e
lea esi, [ecx + 1]
cmp al, 0x5c
jne 0x4a8e40
inc edx
mov al, byte [edx]
add ecx, 2
test al, al
jne 0x4a8e4d
add edi, 4
mov edx, dword [edi - 4]
lea eax, [ecx + 2]
test edx, edx
jne 0x4a8e35
add ecx, 3
mov dword [esp], ecx
call sub.msvcrt.dll_malloc
mov edi, dword [esp + 0x34]
mov esi, eax
test eax, eax
je 0x4a9581
mov byte [eax], 0x22
lea edx, [eax + 1]
mov al, byte [ebx]
test al, al
jne 0x4a8ea8
jmp 0x4a8ec1
cmp al, 0x22
je 0x4a8eaf
inc ebx
mov eax, ecx
mov ecx, edx
mov edx, eax
mov al, byte [ebx - 1]
mov byte [ecx], al
mov al, byte [ebx]
test al, al
je 0x4a8ec1
lea ecx, [edx + 1]
cmp al, 0x5c
jne 0x4a8e92
inc ebx
mov byte [edx], 0x5c
add edx, 2
mov al, byte [ebx - 1]
mov byte [ecx], al
mov al, byte [ebx]
test al, al
jne 0x4a8ea8
add edi, 4
mov ebx, dword [edi - 4]
lea eax, [edx + 2]
mov word [edx], 0x2022
test ebx, ebx
jne 0x4a8e84
mov byte [eax], 0
mov dword [esp], ebp
call sub.msvcrt.dll_free
lea edx, [esp + 0x74]
mov edi, edx
xor eax, eax
mov ecx, 0xd
mov dword [esp + 0x70], 0x44
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x408]
mov dword [esp + 0x9c], 0x101
and eax, 1
mov dword [esp + 0xa8], 0xffffffff
cmp eax, 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
sbb edi, edi
mov dword [esp + 0xac], 0xffffffff
mov dword [esp + 0xb0], 0xffffffff
mov dword [esp + 0x34], eax
call eax
and edi, 0xfffffff8
mov dword [esp], eax
add edi, 0x400000c
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
or edi, eax
push ecx
call fcn.004a1ca0
test eax, eax
je 0x4a963a
lea edx, [esp + 0x60]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], edx
lea edx, [esp + 0x70]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x54]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
sub esp, 0x28
test eax, eax
je 0x4a95a8
mov dword [esp], esi
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x408]
and eax, 2
mov dword [esp + 0x38], eax
jne 0x4a94fb
mov eax, dword [esp + 0x40c]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4a956b
mov esi, dword [esp + 0x40c]
lea edi, [esi + 0x10]
lea esi, [esp + 0xb4]
mov dword [esp + 0x3c], edi
jmp 0x4a900b
mov eax, dword [esp + 0xb4]
add edi, 0x10
mov dword [edi - 0x18], eax
mov eax, dword [edi - 0x10]
cmp eax, 0xffffffff
je 0x4a9160
or ebp, 0xffffffff
mov dword [esp + 0xb4], 0xffffffff
cmp eax, 0x1ff
ja 0x4a9036
lea eax, [eax + eax*4]
shl eax, 2
mov edx, dword [eax + 0x7b8060]
test edx, edx
je 0x4a9036
mov ebp, dword [eax + 0x7b8064]
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x60]
call eax
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
jne 0x4a8ff2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], 0x716b02
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x400]
mov dword [esp + 0x10], eax
mov dword [esp + 8], str._gpgme_io_spawn
mov dword [esp + 4], str._s:_check:__s_p__DuplicateHandle_failed:_ec_d_n
mov dword [esp], 7
call fcn.004a2da0
mov eax, dword [esp + 0x60]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push eax
push eax
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call ebx
push eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call ebx
push eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sub.msvcrt.dll__close_1
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
mov dword [esp], 5
call fcn.004b7200
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.006c4b80
mov dword [esp + 8], str._gpgme_io_spawn
mov dword [esp + 0xc], eax
mov dword [esp + 4], str._s:_error:__s_n
mov dword [esp], 7
call fcn.004a2da0
call fcn.004a2d50
add esp, 0x3ec
or eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x40c]
mov ebp, dword [esp + 0x38]
test ebp, ebp
mov ecx, dword [eax]
je 0x4a9543
mov dword [esi], 0xa20317e
mov byte [esi + 4], 0
mov ebx, dword [esp + 0x3c]
mov ebp, 0x32a
mov edi, ecx
cmp ecx, 0xffffffff
je 0x4a920b
mov edx, esi
mov ecx, edi
mov edi, dword [edx]
add edx, 4
lea eax, [edi - 0x1010101]
xor edi, 0xffffffff
and eax, edi
and eax, 0x80808080
je 0x4a9193
mov edi, ecx
test eax, 0x8080
jne 0x4a91b9
shr eax, 0x10
add edx, 2
mov cl, al
add cl, al
mov eax, dword [ebx - 4]
sbb edx, 3
mov dword [esp + 0x18], eax
mov eax, dword [ebx - 8]
sub edx, esi
mov dword [esp + 0x14], eax
dec edx
mov eax, dword [ebx - 0xc]
add ebx, 0x10
mov dword [esp + 0x10], eax
mov eax, ebp
sub eax, edx
add edx, esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], str.0x_x__d_0x_x__d___n
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.004b78d0
mov edi, dword [ebx - 0x10]
mov word [esp + 0x3dd], 0xa
cmp edi, 0xffffffff
jne 0x4a918f
mov edi, esi
mov edx, dword [edi]
add edi, 4
lea eax, [edx - 0x1010101]
xor edx, 0xffffffff
and eax, edx
and eax, 0x80808080
je 0x4a920d
test eax, 0x8080
je 0x4a9538
mov cl, al
mov ebp, dword [sym.imp.msvcrt.dll__errno]
add cl, al
sbb edi, 3
xor ebx, ebx
sub edi, esi
mov eax, edi
sub eax, ebx
mov dword [esp + 8], eax
lea eax, [esi + ebx]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sub.msvcrt.dll__write
cmp eax, 0
jle 0x4a9264
add ebx, eax
jmp 0x4a9240
je 0x4a926d
call ebp
cmp dword [eax], 0xb
je 0x4a9240
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sub.msvcrt.dll__close_1
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x400]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x716b02
mov dword [esp + 8], str._gpgme_io_spawn
mov dword [esp + 4], str._s:_check:__s_p__CreateProcess_ready:_hProcess_p__hThread_p__dwProcessID_d__dwThreadId_d_n
mov dword [esp], 7
call fcn.004a2da0
mov edi, dword [esp + 0x418]
test edi, edi
je 0x4a92e0
mov edi, dword [esp + 0x418]
mov eax, dword [esp + 0x68]
mov dword [edi], eax
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call ebx
test eax, eax
push esi
jne 0x4a933b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], 0x716b02
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x400]
mov dword [esp + 0x10], eax
mov dword [esp + 8], str._gpgme_io_spawn
mov dword [esp + 4], str._s:_check:__s_p__CloseHandle_of_thread_failed:_ec_d_n
mov dword [esp], 7
call fcn.004a2da0
mov eax, dword [esp + 0x60]
mov dword [esp + 0xc], 0x716b02
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x400]
mov dword [esp + 0x10], eax
mov dword [esp + 8], str._gpgme_io_spawn
mov dword [esp + 4], str._s:_check:__s_p__process_p_n
mov dword [esp], 7
call fcn.004a2da0
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call ebx
test eax, eax
push edx
jne 0x4a93b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], 0x716b02
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x400]
mov dword [esp + 0x10], eax
mov dword [esp + 8], str._gpgme_io_spawn
mov dword [esp + 4], str._s:_check:__s_p__CloseHandle_of_process_failed:_ec_d_n
mov dword [esp], 7
call fcn.004a2da0
mov eax, dword [esp + 0x40c]
test byte [esp + 0x408], 4
mov eax, dword [eax]
jne 0x4a93fc
cmp eax, 0xffffffff
je 0x4a94c5
mov esi, dword [esp + 0x40c]
lea ebx, [esi + 0x10]
nop
add ebx, 0x10
mov dword [esp], eax
call fcn.004a8640
mov eax, dword [ebx - 0x10]
cmp eax, 0xffffffff
jne 0x4a93e0
mov eax, dword [esp + 0x40c]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4a94c5
mov edi, dword [esp + 0x40c]
xor esi, esi
lea ebx, [edi + 0x10]
mov edi, dword [esp + 0x400]
jmp 0x4a947a
mov ecx, 0x716afb
test edx, edx
je 0x4a9436
mov ecx, 0x716af7
dec edx
jne 0x4a9436
mov ecx, 0x716afe
add ebx, 0x10
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x716b02
mov dword [esp + 8], str._gpgme_io_spawn
mov dword [esp + 4], str._s:_check:__s_p__fd__i___0x_x____0x_x__std_s__n
mov dword [esp], 7
call fcn.004a2da0
mov eax, dword [ebx - 0x10]
inc esi
cmp eax, 0xffffffff
je 0x4a94c5
mov edx, dword [ebx - 0xc]
mov ebp, dword [ebx - 8]
cmp edx, 0xffffffff
jne 0x4a9420
add ebx, 0x10
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x716b02
mov dword [esp + 8], str._gpgme_io_spawn
mov dword [esp + 4], str._s:_check:__s_p__fd__i___0x_x____0x_x_n
mov dword [esp], 7
inc esi
call fcn.004a2da0
mov eax, dword [ebx - 0x10]
cmp eax, 0xffffffff
jne 0x4a947a
mov dword [esp + 0xc], 0
mov dword [esp + 8], str._gpgme_io_spawn
mov dword [esp + 4], str._s:_leave:_result_i_n
mov dword [esp], 7
call fcn.004a2da0
call fcn.004a2d50
add esp, 0x3ec
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call fcn.004a1750
mov eax, dword [esp + 0x40c]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x4a8fdb
mov dword [esp + 0xb4], 0xa20317e
mov byte [esp + 0xb8], 0
lea esi, [esp + 0xb4]
jmp 0x4a920b
shr eax, 0x10
add edi, 2
jmp 0x4a922f
mov word [esi], 0xa
jmp 0x4a917f
mov dword [esp], 1
call sub.msvcrt.dll_malloc
test eax, eax
je 0x4a9581
mov esi, eax
jmp 0x4a8ed3
xor edi, edi
jmp 0x4a8d6f
mov word [esp + 0xb4], 0xa
lea esi, [esp + 0xb4]
jmp 0x4a920b
mov dword [esp], ebp
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sub.msvcrt.dll__close_1
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
jmp 0x4a9116
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], 0x716b02
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x400]
mov dword [esp + 0x10], eax
mov dword [esp + 8], str._gpgme_io_spawn
mov dword [esp + 4], str._s:_check:__s_p__CreateProcess_failed:_ec_d_n
mov dword [esp], 7
call fcn.004a2da0
mov dword [esp], esi
call sub.msvcrt.dll_free
jmp 0x4a90f0
mov ebx, dword [sym.imp.msvcrt.dll__errno]
call ebx
mov eax, dword [eax]
mov dword [esp], eax
call fcn.006c4b80
mov dword [esp + 0xc], 0x716b02
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x400]
mov dword [esp + 0x10], eax
mov dword [esp + 8], str._gpgme_io_spawn
mov dword [esp + 4], str._s:_check:__s_p___gpgme_mkstemp_failed:__s_n
mov dword [esp], 7
call fcn.004a2da0
call ebx
jmp 0x4a911c
call fcn.004a18b0
mov dword [esp + 4], str.gpgme_w32spawn.exe_was_not_found_in_the_detected_installation_directory_of_GpgME_n_t__s__n_nCrypto_operations_will_not_work._n_nIf_you_see_this_it_indicates_a_problem_with_your_installation._nPlease_report_the_problem_to_your_distributor_of_GpgME._n_nDevelopers_Note:_The_install_dir_can_be_manually_set_with:_gpgme_set_global_flag
mov dword [esp + 8], eax
lea eax, [esp + 0xb4]
mov dword [esp], eax
call fcn.004b7810
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.GpgME_not_installed_correctly
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
sub esp, 0x10
mov eax, dword [esp + 0xb4]
mov dword [esp], eax
call fcn.004b7630
jmp 0x4a910a