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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
mov bl, byte [eax]
push 0
push eax
push 0
mov esi, eax
call fcn.007db530
mov ecx, eax
sub ecx, edi
cmp bl, 0xe9
mov dword [ebp - 4], ecx
je 0x7db095
cmp bl, 0xe0
je 0x7db095
cmp bl, 0xc2
je 0x7db095
cmp bl, 0xc3
je 0x7db095
cmp bl, 0xff
jne 0x7db064
cmp byte [esi + 1], 0x25
je 0x7db095
jmp 0x7db08e
cmp bl, 0x26
je 0x7db082
cmp bl, 0x2e
je 0x7db082
cmp bl, 0x36
je 0x7db082
cmp bl, 0x3e
je 0x7db082
cmp bl, 0x64
je 0x7db082
cmp bl, 0x65
jne 0x7db08e
cmp byte [esi + 1], 0xff
jne 0x7db08e
cmp byte [esi + 2], 0x25
je 0x7db095
cmp ecx, 5
jl 0x7db02e
jmp 0x7db09e
cmp ecx, 5
jl 0x7db37e
cmp ecx, 0x1a
jg 0x7db37e
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], 0
call edi
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x7db0f1
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x7db0f1
push 0x20
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x7db0f1
lea eax, [ebp - 8]
push eax
push 0x40
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0
call edi
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
test edi, edi
mov dword [ebp - 0x24], eax
je 0x7db13e
test ecx, ecx
je 0x7db13e
mov edi, dword [ebp + 8]
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x7db135
lea edx, [ebp - 0x18]
push edx
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
test edx, edx
je 0x7db17a
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x7db17a
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x7db17a
test edi, edi
mov dword [ebp - 8], 0x40
je 0x7db20e
test ecx, ecx
je 0x7db20e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x7db252
jmp 0x7db28b
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x7db1b3
test edi, edi
je 0x7db1b3
test ecx, ecx
je 0x7db1b3
push ecx
push edi
push eax
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x7db1b3
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0x20]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
test eax, eax
je 0x7db37e
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x7db37e
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x7db37e
push eax
push ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 8], 0
push ecx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x7db37e
lea edx, [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
push edx
mov edx, dword [ebp - 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x7db252
test edi, edi
je 0x7db252
test ecx, ecx
je 0x7db252
push ecx
push edi
push eax
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x7db247
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0x20]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
test eax, eax
je 0x7db37e
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x7db37e
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x7db37e
push eax
push ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 8], 0
push ecx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x7db37e
lea edx, [ebp + 8]
jmp 0x7db1f2
mov eax, dword [ebp + 8]
xor ecx, ecx
test ebx, ebx
mov edx, esi
jle 0x7db2b0
push 0
push eax
push edx
call fcn.007db530
mov edx, dword [ebp + 8]
mov ecx, eax
sub ecx, edx
cmp ecx, ebx
lea edx, [ecx + esi]
jl 0x7db296
mov edi, dword [ebp - 0x20]
cmp ecx, ebx
je 0x7db33e
mov eax, dword [ebp - 0x18]
xor esi, esi
cmp eax, esi
je 0x7db2f5
cmp edi, esi
je 0x7db2f5
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x7db2f5
push eax
mov eax, dword [ebp - 0x24]
push edi
push eax
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x7db2f5
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x20]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [ebp - 8], esi
je 0x7db37e
mov ecx, dword [ebp - 0x10]
cmp ecx, esi
je 0x7db37e
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x7db37e
mov edx, dword [ebp - 0x14]
push eax
push ecx
push edx
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x7db37e
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0x10]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
push 5
lea ecx, [ebx + edi]
push ecx
push edx
call fcn.007db3f0
add esp, 0xc
test eax, eax
jne 0x7db359
lea ecx, [ebp - 0x24]
jmp 0x7db371
mov edx, dword [ebp + 0x10]
push ebx
push edx
push edi
mov byte [esi + 0x1f], bl
call fcn.007db3f0
add esp, 0xc
lea ecx, [ebp - 0x24]
test eax, eax
jne 0x7db387
call fcn.007db3a0
lea ecx, [ebp - 0x14]
call fcn.007db3a0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.007db3a0
lea ecx, [ebp - 0x14]
call fcn.007db3a0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret