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

Disassembly:
sub esp, 0x290
mov eax, dword [0x589780]
xor eax, esp
mov dword [esp + 0x28c], eax
mov eax, dword [esp + 0x2a0]
push ebx
push ebp
mov ebp, dword [esp + 0x2a4]
push esi
mov esi, dword [esp + 0x2a4]
push edi
mov edi, dword [esp + 0x2a4]
push edi
push 0x2000
mov dword [esp + 0x24], eax
mov byte [esp + 0x1b], 0
call fcn.00405e39
mov ebx, eax
test ebx, ebx
je 0x499da7
cmp dword [0x58e3b0], 0
mov dword [esp + 0x28], 0
mov byte [esp + 0x1b], 1
jne 0x499929
push 1
push 0x566190
call fcn.004072fc
mov dword [0x58e3b0], eax
cmp dword [0x58e3b4], 0
jne 0x499943
push 1
push 0x56614c
call fcn.004072fc
mov dword [0x58e3b4], eax
cmp dword [0x58e3b8], 0
jne 0x49995d
push 1
push 0x566164
call fcn.004072fc
mov dword [0x58e3b8], eax
cmp dword [0x58e3bc], 0
jne 0x499977
push 1
push 0x56617c
call fcn.004072fc
mov dword [0x58e3bc], eax
cmp dword [0x58e3c0], 0
jne 0x499991
push 1
push 0x5661bc
call fcn.004072fc
mov dword [0x58e3c0], eax
cmp dword [0x58e3c4], 0
jne 0x4999ab
push 1
push 0x5661a8
call fcn.004072fc
mov dword [0x58e3c4], eax
push dword [esp + 0x1c]
lea eax, [ebx + 0x245]
mov byte [esp + 0x30], 0xb8
mov dword [esp + 0x36], eax
mov eax, 0xd1ff
push ebp
mov dword [esp + 0x35], ebx
mov byte [esp + 0x39], 0xb9
mov word [esp + 0x3e], ax
mov dword [esp + 0x40], 0x4c49636d
mov dword [esp + 0x44], 0
call fcn.00499270
mov ecx, esi
mov dword [esp + 0x48], eax
add esp, 8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4999f3
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
mov word [esp + 0x49], ax
lea ecx, [esp + 0x51]
add eax, 2
sub ecx, esi
mov word [esp + 0x4b], ax
lea eax, [ebx + 0x25]
mov dword [esp + 0x4d], eax
nop
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x499a20
mov eax, dword [0x58e3b0]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov dword [esp + 0x259], eax
mov eax, dword [0x58e3b4]
mov dword [esp + 0x25d], eax
mov eax, dword [0x58e3b8]
mov dword [esp + 0x261], eax
mov eax, dword [0x58e3bc]
mov dword [esp + 0x265], eax
mov eax, dword [0x58e3c0]
mov dword [esp + 0x269], eax
mov eax, dword [0x58e3c4]
mov dword [esp + 0x26d], eax
mov eax, 0x5921
mov word [esp + 0x279], ax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x271], 0x1000b883
mov dword [esp + 0x275], 0x74000000
test eax, eax
je 0x499d81
mov ebp, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea ecx, [esp + 0x14]
push ecx
push 5
lea ecx, [esp + 0x4c]
push ecx
push eax
push edi
call ebp
test eax, eax
je 0x499d81
cmp dword [esp + 0x14], 5
jne 0x499d81
lea eax, [esp + 0x14]
push eax
push 0x20
lea eax, [esp + 0x283]
push eax
push dword [esp + 0x4c]
push edi
call ebp
test eax, eax
je 0x499d81
cmp dword [esp + 0x14], 0x20
jne 0x499d81
mov ebp, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [esp + 0x14]
push eax
push 0x26f
lea eax, [esp + 0x34]
push eax
push ebx
push edi
call ebp
test eax, eax
je 0x499d81
cmp dword [esp + 0x14], 0x26f
jne 0x499d81
lea eax, [esp + 0x14]
push eax
push 0x1b3
push 0x565ed8
lea eax, [ebx + 0x26f]
push eax
push edi
call ebp
test eax, eax
je 0x499d81
cmp dword [esp + 0x14], 0x1b3
jne 0x499d81
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x30]
push eax
lea eax, [ebx + 0x1000]
push eax
push edi
call ebp
test eax, eax
je 0x499d81
cmp dword [esp + 0x14], 4
jne 0x499d81
cmp byte [esp + 0x44], 0xe9
mov eax, dword [esp + 0x44]
mov dword [esp + 0x20], eax
mov al, byte [esp + 0x48]
mov byte [esp + 0x24], al
jne 0x499d07
push 0x26f
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x499d01
mov eax, dword [esp + 0x21]
mov ebp, dword [esp + 0x40]
add eax, 5
add ebp, eax
lea eax, [esp + 0x14]
push eax
push 0x26f
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x499d59
cmp dword [esp + 0x14], 0x26f
jne 0x499d59
mov eax, dword [esi + 0xc]
cmp eax, 0x4c49636d
je 0x499c03
cmp eax, 0x4c69636d
jne 0x499d59
mov eax, dword [esi + 0x10]
test eax, eax
je 0x499c57
nop word [eax + eax]
lea ecx, [esp + 0x14]
mov ebp, eax
push ecx
push 0x26f
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x499cf4
cmp dword [esp + 0x14], 0x26f
jne 0x499cf4
mov eax, dword [esi + 0xc]
cmp eax, 0x4c49636d
je 0x499c50
cmp eax, 0x4c69636d
jne 0x499cf4
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x499c10
test ebp, ebp
je 0x499d59
lea eax, [esp + 0x1c]
push eax
push 0x40
push 0x1000
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x499d59
lea eax, [esp + 0x14]
mov dword [esi + 0x10], ebx
push eax
push 0x26f
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x499ca4
cmp dword [esp + 0x14], 0x26f
mov byte [esp + 0x13], 1
je 0x499ca9
mov byte [esp + 0x13], 0
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x20]
push 0x1000
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp dword [esi + 0xc], 0x4c69636d
mov ebp, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jne 0x499d5f
lea eax, [esp + 0x14]
mov byte [esp + 0x1b], 0
push eax
push 0x26f
lea eax, [esp + 0x34]
mov dword [esp + 0x40], 0x4c69636d
push eax
push ebx
push edi
call ebp
jmp 0x499d5f
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea eax, [esp + 0x1c]
push eax
push 0x40
push 5
push dword [esp + 0x4c]
push edi
call esi
test eax, eax
je 0x499d76
mov ecx, dword [esp + 0x40]
mov eax, ebx
sub eax, ecx
mov byte [esp + 0x20], 0xe9
sub eax, 5
mov dword [esp + 0x21], eax
lea eax, [esp + 0x14]
push eax
push 5
lea eax, [esp + 0x28]
push eax
push ecx
push edi
call ebp
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x20]
push 5
push dword [esp + 0x4c]
push edi
call esi
mov al, 1
mov byte [esp + 0x13], al
jmp 0x499d7a
mov ebp, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, byte [esp + 0x13]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test al, al
jne 0x499d7a
jmp 0x499d07
mov al, byte [esp + 0x13]
cmp byte [esp + 0x1b], 0
je 0x499dab
lea eax, [esp + 0x1c]
push eax
push 0x20
push 0x1000
push ebx
push edi
call esi
lea eax, [esp + 0x1c]
push eax
push 4
push 0x1000
lea eax, [ebx + 0x1000]
push eax
push edi
call esi
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x29c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040512d
add esp, 0x290
ret