Function at 0x4121b7
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x41df3b
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x42d084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0xc]
mov ecx, 0x430396
push esi
mov esi, dword [ebx + 8]
push edi
mov dword [ebp - 0x28], eax
call fcn.00411fcd
and dword [ebp - 0x20], 0
mov ecx, esi
call fcn.0041106e
push str.ntdll.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x41dfa3
push str.Failed_to_locate_target_NT_API_function.
jmp 0x41e110
lea eax, [ebp - 0x50]
mov dword [ebp - 0x24], 0x90
push eax
lea ecx, [ebp - 0xc]
call fcn.00411c1c
mov esi, eax
lea edi, [ebp - 0x40]
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00411eb0
lea ecx, [ebp - 0x24]
push ecx
sub esp, 0x10
lea esi, [ebp - 0x40]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00411cee
add esp, 0x24
mov dword [ebp - 0x24], 0x90
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x14]
push eax
call fcn.00411c1c
mov esi, eax
lea edi, [ebp - 0x40]
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00411eb0
lea ecx, [ebp - 0x24]
push ecx
sub esp, 0x10
lea esi, [ebp - 0x40]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00411cee
add esp, 0x24
lea ecx, [ebp - 0xc]
call fcn.00412289
mov edi, dword [ebp - 0x30]
lea ecx, [ebp - 0xc]
push eax
push edi
call fcn.00411078
push eax
call fcn.00411f05
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
add esp, 0xc
call fcn.00412289
mov esi, eax
lea ecx, [ebp - 0x14]
call fcn.00411078
lea ecx, [ebp - 0x18]
push ecx
push esi
push eax
push edi
push dword [0x42d024]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp dword [ebp - 0x18], 0
je 0x41e10b
test eax, eax
je 0x41e10b
lea ecx, [ebp - 0x14]
call fcn.00411c8f
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.00411c08
cmp esi, eax
je 0x41e0b7
mov edi, eax
mov ecx, dword [ebp - 0x28]
push esi
call fcn.004114fb
inc esi
cmp esi, edi
jne 0x41e0a6
mov edi, dword [ebp - 0x30]
lea ecx, [ebp - 0xc]
call fcn.00412289
lea ecx, [ebp - 0x20]
push ecx
push 0x40
push eax
push edi
push dword [0x42d024]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
and dword [ebp - 0x1c], 0
lea ecx, [ebp - 0xc]
call fcn.00412289
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.00411078
lea ecx, [ebp - 0x1c]
push ecx
push esi
push eax
push edi
push dword [0x42d024]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp dword [ebp - 0x1c], 0
je 0x41e10b
test eax, eax
je 0x41e10b
mov eax, dword [ebp - 0x20]
jmp 0x41e122
push str.Failed_to_unhook_NT_API_function.
lea ecx, [ebp - 0x2c]
call fcn.00412167
lea eax, [ebp - 0x2c]
push eax
call fcn.0041217b
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041173a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret