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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov dword [ebp - 0x1c], ecx
mov eax, dword [0x3da4c0a0]
mov dword [ebp - 0x10], eax
mov dword [0x3da69954], 0
mov edi, dword [0x3da70ae0]
test edi, edi
je 0x3d9d14a9
mov esi, 0x3d9d0000
cmp esi, 0x3d9d0000
je 0x3d9d14a9
mov ebx, 0x3d9d0000
xor eax, eax
sub ebx, esi
nop word cs:[eax + eax]
sub edi, dword [ebp - 0x1c]
test edi, 0xb0000000
je 0x3d9d1488
and edi, 0xfffffff
lea ecx, [ebp - 0x14]
lea eax, [edi + 0x3d9d0000]
push ecx
push 0x40
push 0x1000
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
add dword [edi + 0x3d9d0000], ebx
mov eax, dword [0x3da69954]
mov edi, dword [eax*4 + 0x3da70ae4]
inc eax
mov dword [0x3da69954], eax
test edi, edi
je 0x3d9d14a9
cmp esi, 0x3d9d0000
jne 0x3d9d1450
mov eax, dword [0x3da4c950]
test eax, eax
je 0x3d9d15f8
xor ecx, ecx
nop dword [eax + eax]
lea esi, [ecx*4]
mov dword [ebp - 0x20], ecx
lea eax, [eax + 0x3d9d0000]
lea ecx, [esi + esi*4 + 0x3da4c94c]
mov dword [ebp - 0x24], ecx
push ecx
push 0x40
push dword [esi + esi*4 + 0x3da4c958]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 0x3db1819f
mov esi, dword [esi + esi*4 + 0x3da4c950]
mov ecx, 0x3d9d0000
mov dword [ebp - 0x18], 0
sub eax, dword [0x3da4c064]
add esi, ecx
mov dword [ebp - 0x28], eax
nop
mov eax, dword [ebp - 0x24]
mov edi, dword [eax + 0xc]
test edi, edi
jle 0x3d9d15d0
mov eax, dword [ebp - 0x18]
mov edx, 0xf6f0
mov ebx, 0x8b
add edi, esi
sub edx, eax
sub ebx, eax
mov ecx, edx
add ebx, edx
test eax, eax
mov eax, esi
mov dword [ebp - 0x34], ecx
je 0x3d9d1580
nop word cs:[eax + eax]
mov ecx, eax
mov edx, ebx
sub ecx, esi
mov dword [0x3da6996c], ecx
sub edx, ecx
movzx ecx, byte [eax]
add edx, dword [ecx*4 + 0x3db15c00]
mov byte [eax], dl
inc eax
cmp eax, edi
jb 0x3d9d1550
jmp 0x3d9d15d0
mov eax, esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], ebx
nop dword [eax + eax]
mov ebx, eax
mov edi, esi
movzx edx, byte [eax]
mov ecx, dword [0x3da4c064]
sub ebx, esi
mov esi, dword [ebp - 0x34]
mov dword [0x3da6996c], ebx
lea esi, [ebx + esi]
and esi, dword [ebp - 0x28]
sub dl, byte [ecx + esi]
mov ecx, dword [ebp - 0x2c]
mov esi, edi
mov edi, dword [ebp - 0x30]
sub ecx, ebx
movzx edx, dl
add ecx, dword [edx*4 + 0x3db15c00]
mov byte [eax], cl
inc eax
cmp eax, edi
jb 0x3d9d1590
mov eax, dword [ebp - 0x18]
inc eax
cmp eax, 0x1d64
mov dword [ebp - 0x18], eax
jne 0x3d9d1510
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ecx + ecx*4]
mov eax, dword [eax*4 + 0x3da4c950]
test eax, eax
jne 0x3d9d14c0
mov esi, dword [0x3da70ae0]
mov dword [0x3da69954], 0
test esi, esi
je 0x3d9d167e
mov eax, 0
test eax, eax
je 0x3d9d167e
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ebx, [ebp - 0x14]
nop word cs:[eax + eax]
sub esi, dword [ebp - 0x1c]
and esi, 0xfffffff
lea eax, [esi + 0x3d9d0000]
push ebx
push 0x40
push 0x1000
push eax
call edi
add dword [esi + 0x3d9d0000], 0
mov eax, dword [0x3da69954]
mov esi, dword [eax*4 + 0x3da70ae4]
lea ecx, [eax + 1]
mov dword [0x3da69954], ecx
test esi, esi
je 0x3d9d167e
mov eax, 0
test eax, eax
jne 0x3d9d1630
mov ecx, dword [ebp - 0x10]
call fcn.3d9f8c8a
xor eax, eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret 0x10