Function at 0x1003e380
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov dword [ebp - 0xc], 0x104
mov eax, dword [ebp + 8]
push eax
call fcn.10075780
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.1003d0d0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
jne 0x1003e3b9
jmp 0x1003e6a4
cmp dword [ebp - 4], 0
jne 0x1003e4e0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 8], eax
je 0x1003e4e0
mov edx, dword [ebp - 8]
push edx
call fcn.1003d150
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003e3f9
push str.WriteMemoryHandler:_Cannot_create_new_injection_info___error._n
call fcn.1003cfe0
add esp, 4
jmp 0x1003e4e0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.100731a0
add esp, 4
mov ecx, dword [0x1065f9f8]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp + 8]
push edx
call fcn.10073b60
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
je 0x1003e46a
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
push str.WriteMemoryHandler:_Image_base_for_process__d__handle_0x_x_:_0x_p._n
call fcn.1003cfe0
add esp, 0x10
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x11c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1003e4b2
push str.WriteMemoryHandler:_Error_obtaining_target_process_name
call fcn.1003e760
add esp, 4
push 0x103dc0ac
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [0x1065f9f8]
mov eax, dword [edx + 0x14]
push eax
call fcn.1003d060
add esp, 0xc
jmp 0x1003e4e0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [0x1065f9f8]
mov eax, dword [edx + 0x14]
push eax
lea ecx, [ebp - 0x11c]
push ecx
call fcn.10037d10
add esp, 0xc
test eax, eax
jne 0x1003e4e0
push str.WriteMemoryHandler:_Error_translating_target_process_path
call fcn.1003e760
add esp, 4
mov edx, dword [ebp - 4]
mov eax, dword [edx]
cmp eax, dword [ebp - 8]
je 0x1003e4ef
jmp 0x1003e6a4
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.10038fe0
add esp, 4
test eax, eax
je 0x1003e5fb
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
push str.WriteMemoryHandler:_Executable_binary_injected_into_process__d__ImageBase_0x_x__n
call fcn.1003cfe0
add esp, 0xc
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x18], 0
jne 0x1003e5f6
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
push 3
call fcn.100382b0
add esp, 0x10
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.100399f0
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
je 0x1003e5a1
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x50]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push str.WriteMemoryHandler:_Dumped_PE_image_from_buffer_at_0x_x__SizeOfImage_0x_x._n
call fcn.1003cfe0
add esp, 0xc
jmp 0x1003e5f6
push str.WriteMemoryHandler:_Failed_to_dump_PE_image_from_buffer__attempting_raw_dump._n
call fcn.1003cfe0
add esp, 4
mov eax, dword [0x1065f9f8]
mov dword [eax + 0x10], 4
mov ecx, dword [0x1065f9f8]
mov edx, dword [ebp - 8]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.10039640
add esp, 8
test eax, eax
je 0x1003e5e9
push str.WriteMemoryHandler:_Dumped_malformed_PE_image_from_buffer.
call fcn.1003cfe0
add esp, 4
jmp 0x1003e5f6
push str.WriteMemoryHandler:_Failed_to_dump_malformed_PE_image_from_buffer.
call fcn.1003cfe0
add esp, 4
jmp 0x1003e6a4
cmp dword [ebp + 0x14], 0x10
ja 0x1003e606
jmp 0x1003e6a4
mov edx, dword [ebp - 4]
cmp dword [edx + 0x1c], 0
je 0x1003e643
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax + 0x1c]
jbe 0x1003e643
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0x24]
cmp dword [ebp + 0x10], eax
jae 0x1003e643
mov edx, dword [ebp - 4]
cmp dword [edx + 0x18], 1
jne 0x1003e643
push str.WriteMemoryHandler:_injection_of_section_of_PE_image_which_has_already_been_dumped._n
call fcn.1003cfe0
add esp, 4
jmp 0x1003e6a4
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push str.WriteMemoryHandler:_shellcode_at_0x_p__size_0x_x__injected_into_process__d._n
call fcn.1003cfe0
add esp, 0x10
mov eax, dword [0x1065f9f8]
mov dword [eax + 0x10], 4
mov ecx, dword [0x1065f9f8]
mov edx, dword [ebp - 8]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.10039640
add esp, 8
test eax, eax
je 0x1003e697
push str.WriteMemoryHandler:_Dumped_injected_code_data_from_buffer.
call fcn.1003cfe0
add esp, 4
jmp 0x1003e6a4
push str.WriteMemoryHandler:_Failed_to_dump_injected_code_data_from_buffer.
call fcn.1003cfe0
add esp, 4
mov esp, ebp
pop ebp
ret