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

Disassembly:
jmp 0x4b0f80
push ebp
lea ebp, [esp - 0x4d8]
sub esp, 0x4d8
push 0xfffffffffffffffe
push 0x583858
push fcn.004e1840
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x589780]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x4d4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x58], edi
mov dword [edi], vtable.CCodeHook.0
mov byte [edi + 0x3f], 1
cmp byte [edi + 0x3d], 0
je 0x4b153e
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp + 0x3d0]
push eax
push dword [edi + 0x44]
push 0x567874
push 0x56785c
call fcn.00409a9d
add esp, 0x10
lea eax, [ebp + 0x3d0]
push eax
call fcn.004031f2
mov esi, eax
mov dword [ebp - 0x54], esi
test esi, esi
je 0x4b102b
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0x2cc]
push eax
push dword [edi + 0x44]
push 0x567874
push str.e4801
call fcn.00409a9d
add esp, 0x10
mov ebx, dword [edi + 0x14]
mov dword [ebp - 0x40], ebx
test ebx, ebx
je 0x4b1056
mov dword [ebp - 0x4c], ebx
jmp 0x4b106c
push 1
lea eax, [ebp + 0x2cc]
push eax
call fcn.0040444e
mov ebx, eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x4c], eax
test ebx, ebx
je 0x4b1273
push 0
push 0
push 0
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x4b1262
mov edi, dword [esi]
mov dword [ebp - 0x48], edi
lea eax, [edi + 0x1c]
mov dword [ebp - 0x24], eax
mov edx, 1
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [edi]
lea eax, [ecx - 1]
cmp edx, eax
jg 0x4b1255
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + edx*8]
cmp eax, dword [ebx + 0x48]
jne 0x4b124c
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + edx*8 + 4]
cmp eax, dword [ebx + 0x30]
jne 0x4b124c
lea eax, [ecx - 2]
cmp edx, eax
jg 0x4b10f9
mov esi, dword [ebp - 0x24]
nop dword [eax]
mov eax, dword [esi + edx*8 + 8]
mov ecx, dword [esi + edx*8 + 0xc]
mov dword [esi + edx*8], eax
mov dword [esi + edx*8 + 4], ecx
inc edx
mov ecx, dword [edi]
lea eax, [ecx - 2]
cmp edx, eax
jle 0x4b10e0
xor esi, esi
lea eax, [ecx - 2]
test eax, eax
js 0x4b1129
mov edx, dword [ebp - 0x24]
add edx, 4
mov ecx, dword [edx]
test ecx, ecx
je 0x4b111c
mov eax, dword [ecx]
cmp eax, dword [ebx + 0x48]
jne 0x4b111c
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
mov dword [ecx], eax
inc esi
add edx, 8
mov ecx, dword [edi]
lea eax, [ecx - 2]
cmp esi, eax
jle 0x4b1108
lea eax, [ecx - 1]
mov dword [edi], eax
cmp eax, 2
jne 0x4b1252
cmp dword [edi + 8], 0
je 0x4b1252
mov al, byte [edi + 0x16]
mov byte [ebp - 0x1d], al
xor ebx, ebx
cmp al, 0xe9
setne bl
add ebx, 5
mov dword [ebp - 0x28], ebx
push ebx
push dword [edi + 0xc]
call fcn.00407806
test eax, eax
jne 0x4b1231
mov edx, dword [edi + 0xc]
mov eax, dword [edx]
cmp eax, dword [edi + 0x16]
jne 0x4b1231
mov ah, byte [ebp - 0x1d]
cmp ah, 0xe9
jne 0x4b118b
mov al, byte [edx + 4]
cmp al, byte [edi + 0x1a]
je 0x4b1199
cmp ah, ah
je 0x4b1231
mov ax, word [edx + 4]
cmp ax, word [edi + 0x1a]
jne 0x4b1231
mov dword [ebp - 4], 0
lea eax, [ebp - 0x50]
push eax
push 0x40
push 8
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x4b11e2
test eax, eax
je 0x4b1231
lea esi, [edi + 0x10]
push ebx
push dword [edi + 0xc]
push esi
call fcn.004094b7
test eax, eax
jne 0x4b1204
push ebx
push esi
push dword [edi + 0xc]
call fcn.00409f98
add esp, 0xc
mov esi, dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
push 8
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 8]
mov dword [ebp - 0x60], eax
mov esi, dword [ebp - 0x3c]
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov dword [esi], 0
push dword [edi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
jmp 0x4b1255
inc edx
jmp 0x4b10a6
mov esi, dword [ebp - 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x40]
cmp dword [edi + 0x14], 0
jne 0x4b127b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
jmp 0x4b1281
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b1284
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x54]
test esi, esi
je 0x4b1292
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call ebx
cmp byte [edi + 0x11], 0
jne 0x4b12a4
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x4b12a4
mov eax, dword [edi + 0x44]
mov dword [ecx], eax
cmp dword [edi + 4], 0
je 0x4b1407
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x64], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x70]
push eax
push 1
call fcn.00408e86
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 1
nop
mov ebx, 1
mov dword [ebp - 0x44], ebx
xor esi, esi
mov dword [ebp - 0x84], esi
cmp esi, dword [ebp - 0x34]
jge 0x4b134b
mov dword [ebp], 0x10001
lea eax, [ebp]
push eax
mov eax, dword [ebp - 0x38]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4b139d
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp + 0xb8]
cmp ecx, eax
jb 0x4b139d
add eax, 0x3000
cmp ecx, eax
ja 0x4b139d
xor ebx, ebx
mov dword [ebp - 0x44], ebx
cmp dword [edi + 0xc], 0
je 0x4b13ad
xor edi, edi
mov dword [ebp - 0x8c], edi
cmp edi, 0x222
jge 0x4b13aa
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0xc]
cmp dword [eax + edi*4], 0
je 0x4b13a7
mov eax, dword [ecx + 8]
mov esi, dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
je 0x4b144c
xor eax, eax
mov dword [ebp - 0x88], eax
cmp eax, dword [ebp - 0x6c]
jge 0x4b13a3
mov ecx, dword [ebp - 0x70]
cmp esi, dword [ecx + eax*4]
je 0x4b144c
inc eax
jmp 0x4b1383
inc esi
jmp 0x4b130a
test ebx, ebx
je 0x4b13aa
inc edi
jmp 0x4b1353
mov edi, dword [ebp - 0x1c]
test ebx, ebx
je 0x4b1456
mov dword [ebp - 4], 0xfffffffe
call fcn.004b14fd
cmp dword [ebp - 0x5c], 0
je 0x4b13d2
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4b13e9
push eax
call fcn.00407351
add esp, 4
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x4b1407
push eax
call fcn.00407351
add esp, 4
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x4b1529
push 0x1c
lea eax, [ebp - 0x7c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x1c
jne 0x4b1522
mov eax, dword [ebp - 0x68]
cmp eax, 0x40
je 0x4b1439
cmp eax, 0x20
jne 0x4b1522
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4b1529
mov dword [ebp - 0x44], 0
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x5c], 1
cmp byte [edi + 0x10], 0
je 0x4b14ea
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x4b148e
xor eax, eax
mov dword [ebp - 0x90], eax
cmp eax, dword [ebp - 0x34]
jge 0x4b147e
inc eax
jmp 0x4b1470
push ecx
call fcn.00407351
add esp, 4
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x70], 0
je 0x4b14c4
xor eax, eax
mov dword [ebp - 0x94], eax
cmp eax, dword [ebp - 0x6c]
jge 0x4b14b2
inc eax
jmp 0x4b14a4
push dword [ebp - 0x70]
call fcn.00407351
add esp, 4
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x589780
call fcn.00404ce1
add esp, 0xc
jmp 0x4b1591
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4b1300
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4b153e
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov esi, dword [edi + 0x34]
test esi, esi
je 0x4b1591
mov ecx, esi
call fcn.0040bb4a
push 0x28
push esi
call fcn.0040246e
add esp, 8
mov dword [edi + 0x34], 0
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4d4]
xor ecx, ebp
call fcn.0040512d
lea esp, [ebp + 0x4d8]
pop ebp
ret