Function at 0x41d220
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Inject apc

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43adf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
push esi
push edi
push 0x40
push 0x3000
push 0x48
mov eax, ecx
mov dword [ebp - 0x68], 0
push 0
push eax
mov esi, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0x53e58955
mov dword [ebp - 0x4c], 0x85085d8b
mov dword [ebp - 0x48], 0x832074db
mov dword [ebp - 0x44], 0x1b75003b
mov dword [ebp - 0x40], 0xff0103c6
mov dword [ebp - 0x3c], 0x53ff0c73
mov dword [ebp - 0x38], 0x4438910
mov dword [ebp - 0x34], 0x18a164
mov dword [ebp - 0x30], 0x408b0000
mov dword [ebp - 0x2c], 0x8438934
mov dword [ebp - 0x28], 0x5b0203c6
mov dword [ebp - 0x24], 0x4c25d
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x41d37c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 0x14]
push 0x208
push 0
lea ebx, [esi + 4]
mov dword [esi], eax
push ebx
mov dword [esi + 0x414], 0x66
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [esi + 0x20c]
push 0
push eax
mov dword [ebp - 0x10], eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
push 0x5c
push str.D:Univsersity_Study_ProjectsESP_tiatnHack_InjectorGH_Injector_LibraryQueueUserAPC.cpp
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x20
add eax, 2
push eax
call edi
add eax, eax
push eax
push 0x5c
push str.D:Univsersity_Study_ProjectsESP_tiatnHack_InjectorGH_Injector_LibraryQueueUserAPC.cpp
call esi
add esp, 8
add eax, 2
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push str.SR_QueueUserAPC
call edi
add eax, eax
push eax
push str.SR_QueueUserAPC
push dword [ebp - 0x10]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, 0x10400002
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea edi, [ebx + 0x18]
push ebx
push str.Codecave_allocated_at__p_n
push 2
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], esi
call fcn.0040e7c0
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x68]
add esp, 0xc
push 0
push 0x48
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x41d46b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 0x14]
push 0x208
push 0
lea ebx, [esi + 4]
mov dword [esi], eax
push ebx
mov dword [esi + 0x414], 0x78
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [esi + 0x20c]
push 0
push eax
mov dword [ebp - 0x10], eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
push 0x5c
push str.D:Univsersity_Study_ProjectsESP_tiatnHack_InjectorGH_Injector_LibraryQueueUserAPC.cpp
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x20
add eax, 2
push eax
call edi
add eax, eax
push eax
push 0x5c
push str.D:Univsersity_Study_ProjectsESP_tiatnHack_InjectorGH_Injector_LibraryQueueUserAPC.cpp
call esi
add esp, 8
add eax, 2
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push str.SR_QueueUserAPC
call edi
add eax, eax
push eax
push str.SR_QueueUserAPC
push dword [ebp - 0x10]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0x8000
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, 0x10400003
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push str.pRoutine___p_n
push 3
call fcn.0040e7c0
push ebx
push str.pArg_______p_n
push 3
call fcn.0040e7c0
add esp, 0x18
lea ecx, [ebp - 0xbc]
call fcn.0041cc70
push esi
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], 0
call fcn.0041ce00
test al, al
jne 0x41d558
mov esi, dword [ebp + 0x14]
push 0x208
push 0
lea ebx, [esi + 4]
mov dword [esi], 0
push ebx
mov dword [esi + 0x414], 0x88
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [esi + 0x20c]
push 0
push eax
mov dword [ebp - 0x10], eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
push 0x5c
push str.D:Univsersity_Study_ProjectsESP_tiatnHack_InjectorGH_Injector_LibraryQueueUserAPC.cpp
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x20
add eax, 2
push eax
call edi
add eax, eax
push eax
push 0x5c
push str.D:Univsersity_Study_ProjectsESP_tiatnHack_InjectorGH_Injector_LibraryQueueUserAPC.cpp
call esi
add esp, 8
add eax, 2
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push str.SR_QueueUserAPC
call edi
add eax, eax
push eax
push str.SR_QueueUserAPC
push dword [ebp - 0x10]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0x8000
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov esi, 0x10400004
jmp 0x41d8f4
mov ecx, dword [ebp - 0xa8]
xor al, al
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 0xb4]
nop dword [eax]
test eax, eax
je 0x41d60f
cmp dword [eax + 0x38], 0xf
mov esi, dword [eax + 0x34]
je 0x41d60f
lea ecx, [ebp - 0xbc]
call fcn.0041d120
test al, al
jne 0x41d609
lea ecx, [ebp - 0xbc]
call fcn.0041cfd0
test al, al
jne 0x41d5a8
cmp esi, 2
jne 0x41d609
mov eax, dword [ebp - 0xb4]
test eax, eax
jne 0x41d5b6
xor esi, esi
jmp 0x41d5b9
mov esi, dword [eax + 0x24]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
je 0x41d609
mov esi, dword [ebp - 0xb4]
test esi, esi
je 0x41d5d0
mov esi, dword [esi + 0x24]
push esi
push 0
push 0x10
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x41d609
push ebx
push edi
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
test eax, eax
je 0x41d602
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov byte [ebp - 0x11], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xa8]
cmp dword [ebp - 0xb8], 0
je 0x41d644
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx + 4]
dec eax
cmp ecx, eax
je 0x41d644
inc ecx
mov eax, ecx
mov dword [ebp - 0xa8], ecx
shl eax, 6
add eax, 0xb8
add eax, edx
mov dword [ebp - 0xb4], eax
jmp 0x41d570
cmp byte [ebp - 0x11], 0
jne 0x41d6f8
mov esi, dword [ebp + 0x14]
push 0x208
push 0
lea ebx, [esi + 4]
mov dword [esi], 0
push ebx
mov dword [esi + 0x414], 0xb4
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [esi + 0x20c]
push 0
push eax
mov dword [ebp - 0x10], eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
push 0x5c
push str.D:Univsersity_Study_ProjectsESP_tiatnHack_InjectorGH_Injector_LibraryQueueUserAPC.cpp
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x20
add eax, 2
push eax
call edi
add eax, eax
push eax
push 0x5c
push str.D:Univsersity_Study_ProjectsESP_tiatnHack_InjectorGH_Injector_LibraryQueueUserAPC.cpp
call esi
add esp, 8
add eax, 2
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push str.SR_QueueUserAPC
call edi
add eax, eax
push eax
push str.SR_QueueUserAPC
push dword [ebp - 0x10]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0x8000
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov esi, 0x10400005
jmp 0x41d8f4
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
call edi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edx
call edi
sub eax, dword [ebp - 0x18]
sbb edx, dword [ebp - 0x10]
test edx, edx
ja 0x41d79a
jb 0x41d74d
cmp eax, esi
jae 0x41d79a
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xa
push dword [0x459958]
call edi
push 0
push 0x18
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x80]
push eax
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x41d83b
cmp dword [ebp - 0x80], 2
je 0x41d8ea
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, dword [ebp - 0x18]
sbb edx, dword [ebp - 0x10]
test edx, edx
ja 0x41d79a
jb 0x41d753
cmp eax, esi
jb 0x41d753
cmp dword [ebp - 0x80], 2
je 0x41d8ea
mov esi, dword [ebp + 0x14]
push 0x208
push 0
lea ebx, [esi + 4]
mov dword [esi], 0
push ebx
mov dword [esi + 0x414], 0xf2
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [esi + 0x20c]
push 0
push eax
mov dword [ebp - 0x20], eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
push 0x5c
push str.D:Univsersity_Study_ProjectsESP_tiatnHack_InjectorGH_Injector_LibraryQueueUserAPC.cpp
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x20
add eax, 2
push eax
call edi
add eax, eax
push eax
push 0x5c
push str.D:Univsersity_Study_ProjectsESP_tiatnHack_InjectorGH_Injector_LibraryQueueUserAPC.cpp
call esi
add esp, 8
add eax, 2
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push str.SR_QueueUserAPC
call edi
add eax, eax
push eax
push str.SR_QueueUserAPC
push dword [ebp - 0x20]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov esi, 0x10400006
jmp 0x41d8f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 0x14]
push 0x208
push 0
lea ebx, [esi + 4]
mov dword [esi], eax
push ebx
mov dword [esi + 0x414], 0xd7
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [esi + 0x20c]
push 0
push eax
mov dword [ebp - 0x10], eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
push 0x5c
push str.D:Univsersity_Study_ProjectsESP_tiatnHack_InjectorGH_Injector_LibraryQueueUserAPC.cpp
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x20
add eax, 2
push eax
call edi
add eax, eax
push eax
push 0x5c
push str.D:Univsersity_Study_ProjectsESP_tiatnHack_InjectorGH_Injector_LibraryQueueUserAPC.cpp
call esi
add esp, 8
add eax, 2
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push str.SR_QueueUserAPC
call edi
add eax, eax
push eax
push str.SR_QueueUserAPC
push dword [ebp - 0x10]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp dword [ebp - 0x20], 0
jne 0x41d8e3
push dword [0x459954]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, 0x10000004
jmp 0x41d8f4
mov esi, 0x10400007
jmp 0x41d8f4
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov eax, dword [ebp - 0x7c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x41d905
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x41d918
push eax
call fcn.00438d2a
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret