Function at 0x414e56
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [ebp + 8]
push ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
mov dword [ebp - 0x14], ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x414eca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x414ea9
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x414eb0
mov esi, 0x80004005
push esi
push 0x347
push str.c:_agent_work18_swix_src_burnenginepipe.cpp
call fcn.00403953
push str.Failed_to_read_size_of_verification_secret_from_parent_pipe.
jmp 0x41503b
mov eax, dword [ebp - 8]
shr eax, 1
cmp eax, 0xff
jbe 0x414ef8
mov edi, 0x8007000d
push edi
push 0x34d
push str.c:_agent_work18_swix_src_burnenginepipe.cpp
mov esi, edi
call fcn.00403953
push str.Verification_secret_from_parent_is_too_big.
push edi
jmp 0x41503c
inc eax
push eax
lea eax, [ebp - 4]
push eax
call fcn.00402057
mov esi, eax
test esi, esi
jns 0x414f13
push str.Failed_to_allocate_buffer_for_verification_secret.
jmp 0x41503b
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x414f61
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x414f40
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x414f47
mov esi, 0x80004005
push esi
push 0x355
push str.c:_agent_work18_swix_src_burnenginepipe.cpp
call fcn.00403953
push str.Failed_to_read_verification_secret_from_parent_pipe.
jmp 0x41503b
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp - 4]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x414f99
mov edi, 0x8007000d
push edi
push 0x35c
push str.c:_agent_work18_swix_src_burnenginepipe.cpp
mov esi, edi
call fcn.00403953
push str.Verification_secret_from_parent_does_not_match.
jmp 0x414ef2
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x414fe4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x414fc6
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x414fcd
mov esi, 0x80004005
push esi
push 0x362
push str.c:_agent_work18_swix_src_burnenginepipe.cpp
call fcn.00403953
push str.Failed_to_read_verification_process_id_from_parent_pipe.
jmp 0x41503b
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
test eax, eax
jne 0x415059
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
push ebx
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x415043
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41501f
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x415026
mov esi, 0x80004005
push esi
push 0x373
push str.c:_agent_work18_swix_src_burnenginepipe.cpp
call fcn.00403953
push str.Failed_to_inform_parent_process_that_child_is_running.
push esi
call fcn.0044466b
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
je 0x415050
push dword [ebp - 4]
call fcn.004027da
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
cmp eax, dword [ebp - 0x10]
je 0x414ff2
mov edi, 0x8007000d
push edi
push 0x36d
push str.c:_agent_work18_swix_src_burnenginepipe.cpp
mov esi, edi
call fcn.00403953
push str.Verification_process_id_from_parent_does_not_match.
jmp 0x414ef2