Function at 0x1800a9cf0
Capabilities:
Encode data using xor
Manually build aes constants

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
mov word [0x1800f2130], 0
mov word [0x1800f1c30], 0x301
mov byte [0x1800f2133], 1
mov r8d, 2
lea r9, [0x1800f1c31]
lea r12, [0x180000000]
mov ebx, pe_nt_image_headers64
nop dword [rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
movzx eax, dl
and al, 0x80
neg al
movzx eax, dl
sbb cl, cl
add al, al
xor al, dl
and cl, 0x1b
xor al, cl
movzx eax, al
mov byte [r9], al
mov byte [rax + r12 + 0xf2130], r8b
inc r8d
cmp r8d, ebx
jl 0x1800a9d40
mov byte [0x1800f19b0], 0x63
mov byte [0x1800f1b13], 0
mov r9d, 1
lea r10, [0x1800f19b1]
lea r11, [0x1800f1d2f]
movzx r8d, r9b
mov rcx, r11
inc r9d
movzx eax, byte [r8 + r12 + 0xf2130]
inc r10
sub rcx, rax
movzx edx, byte [rcx]
movzx ecx, dl
rol cl, 1
xor dl, cl
rol cl, 1
xor dl, cl
rol cl, 1
movzx eax, cl
rol al, 1
xor al, dl
xor al, cl
xor al, 0x63
mov byte [r10 - 1], al
movzx eax, al
mov byte [rax + r12 + 0xf1ab0], r8b
cmp r9d, ebx
jl 0x1800a9d95
mov al, 1
lea r8, [0x1800f1bb0]
mov r9d, 0x1e
nop dword [rax]
movzx ecx, al
mov dword [r8], ecx
movzx ecx, al
and cl, 0x80
neg cl
sbb dl, dl
add al, al
add r8, 4
and dl, 0x1b
xor al, dl
dec r9
jne 0x1800a9df0
mov ecx, dword [0x180002d68]
movzx r15d, byte [reloc.WS2_32.dll_ntohl]
movzx r14d, byte [reloc.WS2_32.dll_htons]
movzx ebp, byte [0x180002d69]
xor esi, esi
nop
movzx r10d, byte [rsi + r12 + 0xf19b0]
movzx r9d, r10b
movzx r11d, r10b
and r9b, 0x80
movzx eax, r9b
neg al
sbb dl, dl
add r11b, r11b
and dl, 0x1b
movzx r8d, r11b
xor r8b, dl
xor r8b, r10b
neg r9b
movzx r9d, byte [rsi + r12 + 0xf1ab0]
sbb al, al
movzx edx, r8b
shl edx, 8
and al, 0x1b
or edx, r10d
xor r11b, al
shl edx, 8
movzx eax, r11b
or edx, r10d
shl edx, 8
or edx, eax
mov dword [r12 + rsi*4 + 0xf1d30], edx
test cl, cl
je 0x1800a9ee2
test r9b, r9b
je 0x1800a9ee2
movzx eax, cl
movzx r8d, byte [rax + r12 + 0xf2130]
movzx eax, r9b
movzx eax, byte [rax + r12 + 0xf2130]
add r8d, eax
mov eax, 0x80808081
imul r8d
add edx, r8d
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xff
sub r8d, eax
movsxd rax, r8d
movzx edi, byte [rax + r12 + 0xf1c30]
jmp 0x1800a9ee5
xor dil, dil
test bpl, bpl
je 0x1800a9f38
test r9b, r9b
je 0x1800a9f38
movzx eax, bpl
movzx r8d, byte [rax + r12 + 0xf2130]
movzx eax, r9b
movzx eax, byte [rax + r12 + 0xf2130]
add r8d, eax
mov eax, 0x80808081
imul r8d
add edx, r8d
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xff
sub r8d, eax
movsxd rax, r8d
movzx r11d, byte [rax + r12 + 0xf1c30]
jmp 0x1800a9f3b
xor r11b, r11b
test r14b, r14b
je 0x1800a9f8e
test r9b, r9b
je 0x1800a9f8e
movzx eax, r14b
movzx r8d, byte [rax + r12 + 0xf2130]
movzx eax, r9b
movzx eax, byte [rax + r12 + 0xf2130]
add r8d, eax
mov eax, 0x80808081
imul r8d
add edx, r8d
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xff
sub r8d, eax
movsxd rax, r8d
movzx r10d, byte [rax + r12 + 0xf1c30]
jmp 0x1800a9f91
xor r10b, r10b
test r15b, r15b
je 0x1800a9fe4
test r9b, r9b
je 0x1800a9fe4
movzx eax, r15b
movzx r8d, byte [rax + r12 + 0xf2130]
movzx eax, r9b
movzx eax, byte [rax + r12 + 0xf2130]
add r8d, eax
mov eax, 0x80808081
imul r8d
add edx, r8d
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xff
sub r8d, eax
movsxd rax, r8d
movzx r8d, byte [rax + r12 + 0xf1c30]
jmp 0x1800a9fe7
xor r8b, r8b
movzx eax, r11b
movzx edx, dil
inc rsi
shl edx, 8
or edx, eax
movzx eax, r10b
shl edx, 8
or edx, eax
movzx eax, r8b
shl edx, 8
or edx, eax
mov dword [r12 + rsi*4 + 0xf15ac], edx
dec rbx
jne 0x1800a9e30
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret