Function at 0x422ef0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
cmp dword [esi + 0x1930], eax
jle 0x422f6a
lea edi, [esi + 0x130]
lea ebx, [esi + 0x1128]
cmp dword [edi], 0
je 0x422f55
mov eax, dword [ebx]
test eax, eax
je 0x422f55
push 4
push 0x1000
push eax
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [edi - 8], eax
test eax, eax
je 0x423207
mov edx, dword [ebx]
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [edi]
push edx
mov edx, dword [esi]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp - 4]
inc eax
add ebx, 8
add edi, 0x10
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x1930]
jl 0x422f18
mov eax, fcn.00422ef0
cmp eax, 0x422d20
jbe 0x422f89
mov ecx, fcn.00422ef0
sub ecx, 0x422d20
mov dword [esi + 0x118], ecx
jmp 0x422f9a
mov edx, 0x422d20
sub edx, fcn.00422ef0
mov dword [esi + 0x118], edx
mov eax, 0x422d20
cmp eax, fcn.00422c10
jbe 0x422fb9
mov ecx, 0x422d20
sub ecx, fcn.00422c10
mov dword [esi + 0x11c], ecx
jmp 0x422fca
mov edx, fcn.00422c10
sub edx, 0x422d20
mov dword [esi + 0x11c], edx
mov eax, 0xfa0
cmp dword [esi + 0x118], eax
jae 0x422fdd
mov dword [esi + 0x118], eax
cmp dword [esi + 0x11c], eax
jae 0x422feb
mov dword [esi + 0x11c], eax
mov eax, dword [esi + 0x11c]
mov ecx, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0x40
push 0x1000
push eax
push 0
push ecx
call edi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x423207
mov ecx, dword [esi + 0x11c]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea edx, [ebp + 8]
push edx
mov edx, dword [esi]
push ecx
push fcn.00422c10
push eax
push edx
call ebx
mov ecx, dword [esi]
mov eax, dword [ebp - 0xc]
push 4
push 0x1000
push 0x1950
push 0
push ecx
mov dword [esi + 0x120], eax
call edi
mov dword [ebp - 8], eax
test eax, eax
je 0x423207
lea edx, [ebp + 8]
push edx
push 0x1950
push esi
push eax
mov eax, dword [esi]
push eax
call ebx
mov ecx, dword [esi + 0x118]
mov edx, dword [esi]
push 0x40
push 0x1000
push ecx
push 0
push edx
call edi
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x423207
mov ecx, dword [esi + 0x118]
mov edx, dword [esi]
lea eax, [ebp + 8]
push eax
push ecx
push 0x422d20
push edi
push edx
call ebx
mov ebx, dword [ebp - 8]
mov ecx, dword [esi]
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
push edi
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x423207
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
lea edx, [ebp + 8]
push edx
push 0x1950
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [esi + 0x1948]
cmp eax, 0xffffffff
jge 0x42312c
mov dword [esi + 0x1944], 0
cmp eax, 0xfffffffe
jne 0x423114
mov edx, dword [ebp + 0xc]
lea ecx, [esi + 0x94]
push ecx
push str.Cannot_load_remote_library__s.
push edx
jmp 0x423124
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 0x94]
push eax
push str.Cannot_find_remote_function__s_in_the_dll.
push ecx
call fcn.0041bb40
add esp, 0xc
xor ebx, ebx
cmp dword [esi + 0x1930], ebx
jle 0x423196
lea edx, [esi + 0x1128]
lea edi, [esi + 0x130]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
test ecx, ecx
je 0x423186
mov eax, dword [edi]
test eax, eax
je 0x423186
test byte [edi + 5], 1
je 0x42316d
lea edx, [ebp + 8]
push edx
push ecx
mov ecx, dword [esi]
push eax
mov eax, dword [edi - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edx, dword [edi - 8]
mov eax, dword [esi]
push 0x8000
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [edi]
mov dword [edi - 8], ecx
add dword [ebp - 4], 8
inc ebx
add edi, 0x10
cmp ebx, dword [esi + 0x1930]
jl 0x423145
mov edi, dword [esi + 0x1948]
test edi, edi
jle 0x4231d1
push edi
call fcn.004511af
mov ecx, dword [esi]
add esp, 4
lea edx, [ebp + 8]
push edx
push edi
push eax
mov dword [esi + 0x1944], eax
mov eax, dword [esi + 0x1938]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edx, dword [esi + 0x1944]
mov dword [esi + 0x1938], edx
mov eax, dword [ebp - 8]
mov ecx, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
push eax
push ecx
call edi
mov edx, dword [ebp - 0x14]
mov eax, dword [esi]
push 0x8000
push 0
push edx
push eax
call edi
mov ecx, dword [ebp - 0xc]
mov edx, dword [esi]
push 0x8000
push 0
push ecx
push edx
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret