Function at 0x41165f
Capabilities:
Allocate or change rwx memory
Create process on windows
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1860
push ebx
push 0x40cd1c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
cmp dword [0x41a5e4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ebx
jbe 0x411926
push esi
push edi
mov esi, dword [ebp - 0xc]
mov eax, dword [0x41a5dc]
mov ecx, dword [0x41a5fc]
shl esi, 2
mov eax, dword [esi + eax]
imul eax, eax, 0x1810
add ecx, eax
cmp byte [0x4195c0], 1
mov eax, dword [ecx]
jne 0x4116e9
cmp eax, 0xffffffff
jne 0x4116be
push dword [ecx + 0x804]
jmp 0x4116c8
mov ecx, dword [ebp + 8]
shl eax, 4
push dword [eax + ecx + 4]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x411912
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
jmp 0x41190c
cmp eax, 0xffffffff
jne 0x4118c8
push dword [ecx + 0x804]
push ebx
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x411912
mov edx, dword [0x41a5fc]
push 0x400
lea ecx, [ebp - 0x1060]
push ecx
mov ecx, dword [0x41a5dc]
mov ecx, dword [esi + ecx]
imul ecx, ecx, 0x1810
push dword [ecx + edx + 0x180c]
push eax
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp - 0x1060]
push 0x40cd88
push eax
call fcn.0040faf7
test al, al
pop ecx
pop ecx
je 0x4118c3
push 0xe
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1060]
push eax
lea eax, [ebp - 0x1860]
push 0x40cd70
push eax
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], 0x2000000
mov dword [ebp - 0x48], 0x40cd64
mov dword [ebp - 0x44], 0x40cd48
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x1860]
mov dword [ebp - 0x40], eax
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x38], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0x40
push 0x1000
mov esi, 0x4104bb
sub esi, 0x410481
push esi
push ebx
push dword [ebp - 4]
call edi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x4118c3
lea ecx, [ebp - 0x14]
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0x410481
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], ebx
call esi
push 0x40
push 0x1000
push 0x80c
push ebx
push dword [ebp - 4]
call edi
mov edi, eax
cmp edi, ebx
je 0x4118b1
cmp dword [ebp - 8], ebx
je 0x411850
push 0x40cd3c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40cd28
push dword [ebp - 8]
mov dword [ebp - 0x860], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40ccdc
push dword [ebp - 8]
mov dword [ebp - 0x85c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x858], eax
lea eax, [ebp - 0x1060]
push eax
lea eax, [ebp - 0x854]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x14]
push eax
push 0x80c
lea eax, [ebp - 0x860]
push eax
push edi
push dword [ebp - 4]
call esi
push ebx
push ebx
push edi
push dword [ebp - 0x10]
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
cmp esi, ebx
je 0x41189a
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push ebx
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push dword [ebp - 4]
jmp 0x41190c
mov ecx, dword [ebp + 8]
shl eax, 4
lea esi, [eax + ecx + 4]
push dword [esi]
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x411912
push 1
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
movzx eax, word [esi + 6]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x41190b
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x41a5e4]
jb 0x41168a
pop edi
pop esi
pop ebx
leave
ret