Function at 0x4178e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e0
push esi
push edi
push 0x48f2b8
push 1
call fcn.00428c40
mov esi, dword [ebp + 0x10]
add esp, 8
cmp esi, 4
jne 0x417932
push str.Forwarding_call_to_ManualMap_n
push 1
call fcn.00428c40
push dword [ebp + 0x24]
mov edi, dword [ebp + 0x18]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00426ec0
add esp, 0x24
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 0x208
lea eax, [ebp - 0x3c8]
mov dword [ebp - 0x3e0], 0
xorps xmm0, xmm0
mov dword [ebp - 0x3dc], 0
push 0
push eax
movq qword [ebp - 0x3d0], xmm0
call sub.VCRUNTIME140.dll_memset
xor eax, eax
push 0x106
push eax
mov word [ebp - 0x1c0], ax
lea eax, [ebp - 0x1be]
push eax
call sub.VCRUNTIME140.dll_memset
push 0x50
lea eax, [ebp - 0xb8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x7ab548]
mov dword [ebp - 0x58], eax
mov eax, dword [0x7ab550]
mov dword [ebp - 0x54], eax
mov eax, dword [0x7ab554]
mov dword [ebp - 0x50], eax
mov eax, dword [0x7ab558]
mov dword [ebp - 0x4c], eax
mov eax, dword [0x7ab574]
mov dword [ebp - 0x48], eax
mov eax, dword [0x7ab54c]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [0x7ab588]
mov dword [ebp - 0x40], eax
mov eax, dword [0x7ab58c]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x7ab59c]
mov dword [ebp - 0x38], eax
mov eax, dword [0x7ab5bc]
mov dword [ebp - 0x34], eax
mov eax, dword [0x7ab5c8]
mov dword [ebp - 0x30], eax
mov eax, dword [0x7ab4f0]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x7ab5dc]
mov dword [ebp - 0x28], eax
mov eax, dword [0x7ab5d0]
mov dword [ebp - 0x24], eax
mov eax, dword [0x7ab5d4]
mov dword [ebp - 0x20], eax
mov eax, dword [0x7ab5e0]
push 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x3d8], edi
mov dword [ebp - 0x3d4], esi
call fcn.00416680
add esp, 0x28
mov dword [ebp - 0x68], eax
call fcn.00416670
mov esi, dword [ebp + 8]
mov dword [ebp - 0x64], eax
test esi, esi
je 0x418288
mov ecx, 0x104
mov eax, esi
cmp word [eax], 0
je 0x417a62
add eax, 2
sub ecx, 1
jne 0x417a54
xor edx, edx
mov eax, 0x80070057
test ecx, ecx
cmovne eax, edx
mov dword [ebp + 0x10], eax
je 0x418290
mov eax, 0x104
mov edx, 0x104
sub eax, ecx
add eax, eax
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, 0x208
mov word [ebp - 0x3d0], cx
lea ecx, [ebp - 0x3c8]
mov word [ebp - 0x3ce], ax
mov eax, ecx
sub esi, eax
nop dword [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x417ace
movzx eax, word [ecx + esi]
test ax, ax
je 0x417ace
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x417ab0
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
test edx, edx
mov word [eax], cx
mov eax, 0x8007007a
cmovne eax, ecx
mov dword [ebp + 0x10], eax
jne 0x417b7b
mov esi, dword [ebp + 0x24]
push 0x208
push ecx
lea edi, [esi + 4]
mov dword [esi], eax
push edi
mov dword [esi + 0x414], 0x38
call sub.VCRUNTIME140.dll_memset
push 0x208
lea ebx, [esi + 0x20c]
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
push 0x5c
push str.E:Dworkinjector_srs_superman_externalGH_Injector_LibraryInjection_Generic.cpp
call sub.VCRUNTIME140.dll_wcsrchr
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x20
add eax, 2
push eax
call esi
add eax, eax
push eax
push 0x5c
push str.E:Dworkinjector_srs_superman_externalGH_Injector_LibraryInjection_Generic.cpp
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 8
add eax, 2
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push str.InjectDLL
call esi
add eax, eax
push eax
push str.InjectDLL
push ebx
call sub.VCRUNTIME140.dll_memcpy
push dword [ebp + 0x10]
push str.StringCbCopyW_failed:__08X_n
jmp 0x418319
push str.Shell_data_initialized_n
push 1
call fcn.00428c40
add esp, 8
mov ebx, 0x4835c0
sub ebx, section..inj_sec
mov ecx, edi
mov eax, 0x486160
mov dword [ebp - 8], ebx
sub eax, 0x485e60
xor edx, edx
push 0x40
test cl, 4
push 0x3000
cmovne edx, eax
lea eax, [ebx + 0x3d8]
mov ebx, dword [ebp + 0xc]
push eax
push 0
push ebx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
xor esi, esi
mov dword [ebp + 0x10], edi
mov dword [ebp - 4], esi
lea eax, [edi + 0x3d7]
and eax, 0xfffffff0
mov dword [ebp - 0x14], eax
test edi, edi
jne 0x417c8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp + 0x24]
push 0x208
push esi
lea edi, [ebx + 4]
mov dword [ebx], eax
push edi
mov dword [ebx + 0x414], 0x52
call sub.VCRUNTIME140.dll_memset
push 0x208
add ebx, 0x20c
push esi
push ebx
call sub.VCRUNTIME140.dll_memset
push 0x5c
push str.E:Dworkinjector_srs_superman_externalGH_Injector_LibraryInjection_Generic.cpp
call sub.VCRUNTIME140.dll_wcsrchr
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x20
add eax, 2
push eax
call esi
add eax, eax
push eax
push 0x5c
push str.E:Dworkinjector_srs_superman_externalGH_Injector_LibraryInjection_Generic.cpp
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 8
add eax, 2
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push str.InjectDLL
call esi
add eax, eax
push eax
push str.InjectDLL
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 0x24]
push dword [eax]
push str.VirtualAllocEx_failed:__08X_n
push 1
call fcn.00428c40
add esp, 0x18
mov eax, 0x15
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x417d7d
push 0x40
push 0x3000
add eax, 0x24
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
mov dword [ebp - 4], eax
test esi, esi
jne 0x417d74
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp + 0x24]
push 0x208
push esi
lea edi, [ebx + 4]
mov dword [ebx], eax
push edi
mov dword [ebx + 0x414], 0x5f
call sub.VCRUNTIME140.dll_memset
push 0x208
add ebx, 0x20c
push esi
push ebx
call sub.VCRUNTIME140.dll_memset
push 0x5c
push str.E:Dworkinjector_srs_superman_externalGH_Injector_LibraryInjection_Generic.cpp
call sub.VCRUNTIME140.dll_wcsrchr
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x20
add eax, 2
push eax
call esi
add eax, eax
push eax
push 0x5c
push str.E:Dworkinjector_srs_superman_externalGH_Injector_LibraryInjection_Generic.cpp
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 8
add eax, 2
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push str.InjectDLL
call esi
add eax, eax
push eax
push str.InjectDLL
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 0x24]
push dword [eax]
push str.VirtualAllocEx_failed:__08X_n
push 1
call fcn.00428c40
mov esi, dword [ebp + 0xc]
add esp, 0x18
push 0x8000
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop ebx
pop edi
mov eax, 0x15
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], eax
push dword [ebp - 8]
push str.Shellsize____08X_n
push 2
call fcn.00428c40
push dword [ebp - 0x18]
push str.Total_size___08X_n
push 2
call fcn.00428c40
push edi
push str.pArg_________p_n
push 2
call fcn.00428c40
push dword [ebp - 0x14]
push str.pShell_______p_n
push 2
call fcn.00428c40
add esp, 0x30
cmp dword [ebp - 0xc], 0
je 0x417dd0
push esi
push str.pVEHShell_____p_n
push 2
call fcn.00428c40
add esp, 0xc
push 0
push 0x3c8
lea eax, [ebp - 0x3e0]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ebx
call edi
test eax, eax
jne 0x417e01
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp + 0x24]
mov dword [ebx + 0x414], 0x78
jmp 0x417e6b
push 0
push dword [ebp - 8]
push section..inj_sec
push dword [ebp - 0x14]
push ebx
call edi
test eax, eax
jne 0x417e2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp + 0x24]
mov dword [ebx + 0x414], 0x88
jmp 0x417e6b
push str.Shell_written_to_memory_n
push 1
call fcn.00428c40
mov eax, dword [ebp - 0xc]
add esp, 8
test eax, eax
je 0x417f36
push 0
push eax
push 0x485e60
push esi
push ebx
call edi
test eax, eax
jne 0x417f27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp + 0x24]
mov dword [ebx + 0x414], 0x9c
push 0x208
push 0
lea edi, [ebx + 4]
mov dword [ebx], eax
push edi
call sub.VCRUNTIME140.dll_memset
push 0x208
push 0
add ebx, 0x20c
push ebx
call sub.VCRUNTIME140.dll_memset
push 0x5c
push str.E:Dworkinjector_srs_superman_externalGH_Injector_LibraryInjection_Generic.cpp
call sub.VCRUNTIME140.dll_wcsrchr
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x20
add eax, 2
push eax
call esi
add eax, eax
push eax
push 0x5c
push str.E:Dworkinjector_srs_superman_externalGH_Injector_LibraryInjection_Generic.cpp
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 8
add eax, 2
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push str.InjectDLL
call esi
add eax, eax
push eax
push str.InjectDLL
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 0x24]
push dword [eax]
push str.WriteProcessMemory_failed:__08X_n
push 1
call fcn.00428c40
mov eax, dword [ebp - 4]
add esp, 0x18
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x417f0e
push 0x8000
push 0
push eax
push esi
call edi
push 0x8000
push 0
push dword [ebp + 0x10]
push esi
call edi
pop ebx
pop edi
mov eax, 0x10
pop esi
mov esp, ebp
pop ebp
ret
push str.VEHShell_written_to_memory_n
push 1
call fcn.00428c40
add esp, 8
push str.Entering_StartRoutine_n
push 1
call fcn.00428c40
mov edx, dword [ebp + 0x18]
lea eax, [ebp - 0x10]
mov edi, dword [ebp + 0x24]
mov ecx, edx
push edi
push dword [ebp + 0x20]
or ecx, 0x3000
mov dword [ebp - 0x10], 0
push eax
test dl, 8
cmove ecx, edx
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x14]
push ebx
call fcn.0042b600
push str.Return_from_StartRoutine_n
push 1
mov dword [ebp - 8], eax
call fcn.00428c40
add esp, 0x30
cmp dword [ebp - 8], 0
je 0x417fe4
mov edi, dword [ebp - 8]
push edi
push str.StartRoutine_failed:__08X_n
push 1
call fcn.00428c40
mov eax, dword [ebp + 0x14]
add esp, 0xc
cmp eax, 3
je 0x417fdb
cmp eax, 1
jne 0x417fb5
cmp edi, 0x1020000a
je 0x417fdb
mov eax, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test esi, esi
je 0x417fce
push 0x8000
push 0
push esi
push ebx
call eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
push dword [ebp + 0x10]
push ebx
call eax
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.Fetching_routine_data_n
push 1
call fcn.00428c40
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x3e0]
add esp, 8
push 0
push 0x3c8
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x4180e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x208
mov dword [edi], eax
mov dword [edi + 0x414], 0xce
add edi, 4
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [ebp + 0x24]
push 0x208
add ebx, 0x20c
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
push 0x5c
push str.E:Dworkinjector_srs_superman_externalGH_Injector_LibraryInjection_Generic.cpp
call sub.VCRUNTIME140.dll_wcsrchr
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x20
add eax, 2
push eax
call esi
add eax, eax
push eax
push 0x5c
push str.E:Dworkinjector_srs_superman_externalGH_Injector_LibraryInjection_Generic.cpp
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 8
add eax, 2
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push str.InjectDLL
call esi
add eax, eax
push eax
push str.InjectDLL
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 0x24]
push dword [eax]
push str.ReadProcessMemory_failed:__08X_n
push 1
call fcn.00428c40
add esp, 0x18
cmp dword [ebp + 0x14], 3
je 0x4180dd
mov eax, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x4180d0
push 0x8000
push 0
push eax
push esi
call edi
push 0x8000
push 0
push dword [ebp + 0x10]
push esi
call edi
pop ebx
pop edi
mov eax, 0x1b
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], 3
je 0x4180fe
push 0x8000
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp dword [ebp - 0x10], 0
je 0x4181ab
mov eax, dword [ebp - 0x3dc]
push 0x208
mov dword [edi], eax
mov dword [edi + 0x414], 0xe6
add edi, 4
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [ebp + 0x24]
push 0x208
add ebx, 0x20c
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
push 0x5c
push str.E:Dworkinjector_srs_superman_externalGH_Injector_LibraryInjection_Generic.cpp
call sub.VCRUNTIME140.dll_wcsrchr
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x20
add eax, 2
push eax
call esi
add eax, eax
push eax
push 0x5c
push str.E:Dworkinjector_srs_superman_externalGH_Injector_LibraryInjection_Generic.cpp
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 8
add eax, 2
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push str.InjectDLL
call esi
add eax, eax
push eax
push str.InjectDLL
push ebx
call sub.VCRUNTIME140.dll_memcpy
push dword [ebp - 0x10]
push str.Shell_failed:__08X_n
push 1
call fcn.00428c40
mov eax, dword [ebp - 0x10]
add esp, 0x18
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x3e0], 0
jne 0x418258
push 0x208
mov dword [edi], 0
mov dword [edi + 0x414], 0xef
add edi, 4
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [ebp + 0x24]
push 0x208
add ebx, 0x20c
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
push 0x5c
push str.E:Dworkinjector_srs_superman_externalGH_Injector_LibraryInjection_Generic.cpp
call sub.VCRUNTIME140.dll_wcsrchr
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x20
add eax, 2
push eax
call esi
add eax, eax
push eax
push 0x5c
push str.E:Dworkinjector_srs_superman_externalGH_Injector_LibraryInjection_Generic.cpp
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 8
add eax, 2
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push str.InjectDLL
call esi
add eax, eax
push eax
push str.InjectDLL
push ebx
call sub.VCRUNTIME140.dll_memcpy
push str.Shell_failed_n
push 1
call fcn.00428c40
add esp, 0x14
mov eax, 0x20
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.Shell_returned_successfully_n
push 1
call fcn.00428c40
mov ecx, dword [ebp - 0x3e0]
mov eax, dword [ebp + 0x1c]
push ecx
push str.Imagebase___p_n
push 1
mov dword [eax], ecx
call fcn.00428c40
add esp, 0x14
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x80070057
mov dword [ebp + 0x10], eax
mov esi, dword [ebp + 0x24]
push 0x208
push 0
lea edi, [esi + 4]
mov dword [esi], eax
push edi
mov dword [esi + 0x414], 0x2b
call sub.VCRUNTIME140.dll_memset
push 0x208
lea ebx, [esi + 0x20c]
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
push 0x5c
push str.E:Dworkinjector_srs_superman_externalGH_Injector_LibraryInjection_Generic.cpp
call sub.VCRUNTIME140.dll_wcsrchr
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x20
add eax, 2
push eax
call esi
add eax, eax
push eax
push 0x5c
push str.E:Dworkinjector_srs_superman_externalGH_Injector_LibraryInjection_Generic.cpp
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 8
add eax, 2
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push str.InjectDLL
call esi
add eax, eax
push eax
push str.InjectDLL
push ebx
call sub.VCRUNTIME140.dll_memcpy
push dword [ebp + 0x10]
push str.StringCbLengthW_failed:__08X_n
push 1
call fcn.00428c40
add esp, 0x18
mov eax, 4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret