Function at 0x14012da90
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x38]
sub rsp, 0x138
mov rax, qword [0x1402bf7c0]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r13d, r9d
mov dword [rsp + 0x54], r9d
mov edi, r8d
mov dword [rsp + 0x60], r8d
mov dword [rsp + 0x5c], edx
mov r14, rcx
mov rbx, qword [rbp + 0xa0]
mov qword [rbp - 0x78], rbx
mov r15, qword [rbp + 0xa8]
mov r12, qword [rbp + 0xb0]
mov rsi, qword [rbp + 0xb8]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rax
movzx r9d, byte [rsi + 0x16a]
lea r8, str.encryptFragment
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.140054b30
nop
test rbx, rbx
jne 0x14012db41
lea rdx, str.Nothing_to_TLS_encrypt.
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x28]
nop
lea rcx, [rsp + 0x68]
call fcn.140054c00
xor al, al
jmp 0x14012e341
cmp dword [r14 + 0x124], 0
jne 0x14012db6b
cmp byte [r14 + 0x104], 0
jne 0x14012db6b
mov r8d, dword [r15]
mov rdx, rbx
mov rcx, r12
call fcn.1400408c0
movzx ebx, al
jmp 0x14012e334
cmp edi, 3
jne 0x14012db7b
cmp r13d, 4
mov byte [rsp + 0x50], 1
je 0x14012db80
mov byte [rsp + 0x50], 0
lea rcx, [r14 + 0x40]
call fcn.140042710
mov edi, reloc.WS2_32.dll_inet_ntoa
cmp dword [r14 + 0x120], 6
jne 0x14012dc96
mov eax, dword [r14 + 0x138]
add eax, dword [r14 + 0x134]
cmp eax, edi
je 0x14012dbba
lea rdx, str.Nonce_length_not_correct_for_GCM_mode.
jmp 0x14012db26
lea rcx, [r14 + 0x788]
call fcn.140042710
lea r13, [r14 + 0x148]
mov rcx, r13
call fcn.140044dc0
cmp byte [rsp + 0x50], 0
je 0x14012de69
cmp eax, edi
je 0x14012dc13
lea rdx, str.WriteIV_is_not_the_correct_length_for_TLS_1.3_GCM_mode.
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x28]
mov rcx, r13
call fcn.140044dc0
mov r8d, eax
lea rdx, str.fixedIV_len
mov rcx, rsi
call fcn.1400552e0
jmp 0x14012db30
mov dword [rbp - 0x78], 0
mov rax, qword [r14 + 0x178]
mov qword [rbp - 0x74], rax
mov rcx, r13
call fcn.140044a90
xor r8d, r8d
lea rcx, [rbp - 0x78]
sub rax, rcx
nop word [rax + rax]
lea rdx, [rbp - 0x78]
add rdx, r8
movzx ecx, byte [rax + rdx]
xor byte [rdx], cl
inc r8
cmp r8, rdi
jl 0x14012dc40
mov r8d, edi
lea rdx, [rbp - 0x78]
lea rcx, [r14 + 0x40]
call fcn.1400408c0
mov word [rbp - 0x80], 0x317
mov byte [rbp - 0x7e], 3
mov edx, dword [r15]
add edx, 0x11
mov eax, edx
shr eax, 8
mov byte [rbp - 0x7d], al
mov byte [rbp - 0x7c], dl
mov r8d, 5
lea rdx, [rbp - 0x80]
lea rcx, [r14 + 0x788]
call fcn.1400408c0
mov r13d, dword [rsp + 0x60]
cmp r13d, 3
jne 0x14012dfcf
cmp dword [rsp + 0x54], 2
jl 0x14012dfcf
cmp dword [r14 + 0x138], 0
jbe 0x14012dfcf
lea rcx, [r14 + 0x70]
call fcn.140042710
cmp dword [r14 + 0x120], 6
je 0x14012dce1
lea rdx, [r14 + 0x70]
mov ecx, dword [r14 + 0x138]
call fcn.14006ac30
mov r8d, dword [r15]
mov rdx, rbx
lea rcx, [r14 + 0x70]
call fcn.1400408c0
cmp byte [rsp + 0x50], 0
je 0x14012dd05
movzx edx, byte [rsp + 0x5c]
lea rcx, [r14 + 0x70]
call fcn.140040b30
cmp dword [r14 + 0x124], 0
je 0x14012dd61
cmp dword [r14 + 0x120], 6
je 0x14012dd61
mov qword [rsp + 0x40], rsi
lea rax, [rbp - 0x60]
mov qword [rsp + 0x38], rax
mov eax, dword [r15]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbx
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x20], eax
mov r9d, r13d
mov r8d, dword [rsp + 0x5c]
mov dl, 1
mov rcx, r14
call fcn.140127360
test eax, eax
je 0x14012dd61
mov r8d, eax
lea rdx, [rbp - 0x60]
lea rcx, [r14 + 0x70]
call fcn.1400408c0
cmp byte [r14 + 0x104], 0
je 0x14012e319
mov ecx, dword [r14 + 0x120]
lea eax, [rcx - 6]
cmp eax, 1
jbe 0x14012ddc6
cmp ecx, 0x63
je 0x14012ddc6
xor r8d, r8d
mov ecx, dword [r14 + 0x138]
test ecx, ecx
je 0x14012ddad
lea rcx, [r14 + 0x70]
call fcn.140044dc0
inc eax
mov ecx, dword [r14 + 0x138]
xor edx, edx
div ecx
mov r8d, ecx
sub r8d, edx
xor eax, eax
cmp r8d, ecx
cmovne eax, r8d
lea r8d, [rax + 1]
movzx edx, al
lea rcx, [r14 + 0x70]
call fcn.140040bc0
cmp dword [r14 + 0x120], 6
jne 0x14012dde0
lea rdx, [r14 + 0x40]
lea rcx, [r14 + 0x708]
call fcn.1401008b0
mov rcx, r12
call fcn.140044dc0
mov dword [rsp + 0x54], eax
movzx eax, byte [rsi + 0x169]
mov byte [rsp + 0x58], al
movzx ecx, byte [rsi + 0x16a]
mov byte [rsi + 0x169], cl
mov qword [r14 + 0x188], 0
mov qword [r14 + 0x190], 0
cmp dword [r14 + 0x120], 6
jne 0x14012df16
lea rdx, [r14 + 0x180]
mov r9, rsi
lea r8, [r14 + 0x708]
mov rcx, qword [r14 + 0x830]
call fcn.1401bc370
test al, al
jne 0x14012defa
mov rax, qword [rsi]
lea rdx, str.TLS_gcm_encrypt_setup_failed.
mov rcx, rsi
call qword [rax + 0x28]
mov dword [r15], 0
jmp 0x14012db30
cmp eax, 4
je 0x14012de7a
lea rdx, str.WriteIV_is_not_the_correct_length_for_GCM_mode.
jmp 0x14012dbeb
mov r8d, 8
lea rdx, [r14 + 0x178]
lea rcx, [r14 + 0x788]
call fcn.1400408c0
mov rdx, r13
lea rcx, [r14 + 0x40]
call fcn.140040850
mov r8d, 8
lea rdx, [r14 + 0x178]
lea rcx, [r14 + 0x40]
call fcn.1400408c0
mov eax, dword [rsp + 0x5c]
mov byte [rbp - 0x80], al
mov r13d, dword [rsp + 0x60]
mov byte [rbp - 0x7f], r13b
mov eax, dword [rsp + 0x54]
mov byte [rbp - 0x7e], al
movzx eax, byte [r15 + 1]
mov byte [rbp - 0x7d], al
movzx eax, byte [r15]
mov byte [rbp - 0x7c], al
mov r8d, 5
lea rdx, [rbp - 0x80]
lea rcx, [r14 + 0x788]
call fcn.1400408c0
mov rbx, qword [rbp - 0x78]
jmp 0x14012dc9b
cmp byte [rsp + 0x50], 0
jne 0x14012df16
lea rdx, [r14 + 0x178]
mov r8d, 8
mov rcx, r12
call fcn.1400408c0
lea rcx, [r14 + 0x70]
call fcn.140044dc0
mov ebx, eax
lea rcx, [r14 + 0x70]
call fcn.140044a90
mov r9, rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], ebx
lea r8, [r14 + 0x708]
lea rdx, [r14 + 0x180]
mov rcx, qword [r14 + 0x830]
call fcn.1401004f0
movzx ebx, al
movzx eax, byte [rsp + 0x58]
mov byte [rsi + 0x169], al
test bl, bl
jne 0x14012df73
lea rdx, str.Failed_to_encrypt_TLS_fragment
jmp 0x14012db26
cmp dword [r14 + 0x120], 6
jne 0x14012e30b
mov r9, rsi
lea r8, [r14 + 0x708]
lea rdx, [r14 + 0x180]
mov rcx, qword [r14 + 0x830]
call fcn.1401bc2c0
test al, al
jne 0x14012dfae
lea rdx, str.TLS_gcm_encrypt_finalize_failed.
jmp 0x14012db26
lea rcx, [r14 + 0x7b8]
call fcn.140044dc0
cmp eax, 0x10
je 0x14012e2f9
lea rdx, str.GCM_auth_tag_is_not_16_bytes.
jmp 0x14012db26
lea rcx, [r14 + 0x70]
call fcn.140042710
mov r8d, dword [r15]
mov rdx, rbx
lea rcx, [r14 + 0x70]
call fcn.1400408c0
cmp byte [rsp + 0x50], 0
je 0x14012dffc
movzx edx, byte [rsp + 0x5c]
lea rcx, [r14 + 0x70]
call fcn.140040b30
cmp dword [r14 + 0x124], 0
je 0x14012e050
mov qword [rsp + 0x40], rsi
lea rax, [rbp - 0x20]
mov qword [rsp + 0x38], rax
mov eax, dword [r15]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbx
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x60]
mov r8d, dword [rsp + 0x5c]
mov dl, 1
mov rcx, r14
call fcn.140127360
test eax, eax
je 0x14012e050
mov r8d, eax
lea rdx, [rbp - 0x20]
lea rcx, [r14 + 0x70]
call fcn.1400408c0
cmp byte [r14 + 0x104], 0
je 0x14012e319
mov ecx, dword [r14 + 0x120]
lea eax, [rcx - 6]
cmp eax, 1
jbe 0x14012e0b5
cmp ecx, 0x63
je 0x14012e0b5
xor r8d, r8d
mov ecx, dword [r14 + 0x138]
test ecx, ecx
je 0x14012e09c
lea rcx, [r14 + 0x70]
call fcn.140044dc0
inc eax
mov ecx, dword [r14 + 0x138]
xor edx, edx
div ecx
mov r8d, ecx
sub r8d, edx
xor eax, eax
cmp r8d, ecx
cmovne eax, r8d
lea r8d, [rax + 1]
movzx edx, al
lea rcx, [r14 + 0x70]
call fcn.140040bc0
cmp dword [r14 + 0x120], 7
jne 0x14012e226
mov edx, edi
lea rcx, [r14 + 0x40]
call fcn.140044a10
mov rbx, rax
test rax, rax
je 0x14012e130
mov dword [rax], 0
mov rcx, qword [r14 + 0x178]
mov qword [rax + 4], rcx
mov edx, edi
lea rcx, [r14 + 0x40]
call fcn.140040790
lea rcx, [r14 + 0x148]
call fcn.140044dc0
cmp eax, edi
je 0x14012e10e
lea rdx, str.m_fixedIv_should_be_12_bytes
jmp 0x14012db26
lea rcx, [r14 + 0x148]
call fcn.140044a90
sub rax, rbx
nop dword [rax]
movzx ecx, byte [rax + rbx]
xor byte [rbx], cl
lea rbx, [rbx + 1]
sub rdi, 1
jne 0x14012e120
lea rdi, [r14 + 0x178]
lea rcx, [r14 + 0x788]
call fcn.140042710
lea rcx, [r14 + 0x788]
cmp byte [rsp + 0x50], 0
je 0x14012e16e
mov word [rbp - 0x80], 0x317
mov byte [rbp - 0x7e], 3
mov edx, dword [r15]
add edx, 0x11
mov eax, edx
shr eax, 8
mov byte [rbp - 0x7d], al
mov byte [rbp - 0x7c], dl
jmp 0x14012e1a7
mov r8d, 8
mov rdx, rdi
call fcn.1400408c0
mov eax, dword [rsp + 0x5c]
mov byte [rbp - 0x80], al
mov eax, dword [rsp + 0x60]
mov byte [rbp - 0x7f], al
mov eax, dword [rsp + 0x54]
mov byte [rbp - 0x7e], al
movzx eax, byte [r15 + 1]
mov byte [rbp - 0x7d], al
movzx eax, byte [r15]
mov byte [rbp - 0x7c], al
lea rcx, [r14 + 0x788]
mov r8d, 5
lea rdx, [rbp - 0x80]
call fcn.1400408c0
lea rdx, [r14 + 0x40]
lea rcx, [r14 + 0x708]
call fcn.1401008b0
mov rcx, qword [r14 + 0x830]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rsi
lea r9, [r14 + 0x180]
lea r8, [r14 + 0x708]
mov dl, 1
call qword [rax + 0x18]
mov rcx, qword [r14 + 0x830]
mov rax, qword [rcx]
mov r9, rsi
lea r8, [r14 + 0x708]
lea rdx, [r14 + 0x180]
call qword [rax + 0x48]
test al, al
jne 0x14012e226
mov rax, qword [rsi]
lea rdx, str.TLS_aead_encrypt_setup_failed.
mov rcx, rsi
call qword [rax + 0x28]
mov dword [r15], 0
jmp 0x14012db30
mov rcx, r12
call fcn.140044dc0
mov dword [rsp + 0x54], eax
movzx edi, byte [rsi + 0x169]
movzx edx, byte [rsi + 0x16a]
mov byte [rsi + 0x169], dl
lea rcx, [r14 + 0x70]
call fcn.140044dc0
mov ebx, eax
lea rcx, [r14 + 0x70]
call fcn.140044a90
mov r9, rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], ebx
lea r8, [r14 + 0x708]
lea rdx, [r14 + 0x180]
mov rcx, qword [r14 + 0x830]
call fcn.1401004f0
movzx ebx, al
mov byte [rsi + 0x169], dil
test al, al
jne 0x14012e2a4
mov r9, qword [rsi]
lea rdx, str.Failed_to_encrypt_TLS_fragment.
mov rcx, rsi
call qword [r9 + 0x28]
cmp dword [r14 + 0x120], 7
jne 0x14012e30b
mov rcx, qword [r14 + 0x830]
mov rax, qword [rcx]
mov r9, rsi
lea r8, [r14 + 0x708]
lea rdx, [r14 + 0x180]
call qword [rax + 0x50]
test al, al
jne 0x14012e2dc
lea rdx, str.TLS_aead_encrypt_finalize_failed.
jmp 0x14012db26
lea rcx, [r14 + 0x7b8]
call fcn.140044dc0
cmp eax, 0x10
je 0x14012e2f9
lea rdx, str.AEAD_auth_tag_is_not_16_bytes.
jmp 0x14012db26
lea rdx, [r14 + 0x7b8]
mov rcx, r12
call fcn.140040850
movzx ebx, al
mov rcx, r12
call fcn.140044dc0
sub eax, dword [rsp + 0x54]
jmp 0x14012e331
lea rdx, [r14 + 0x70]
mov rcx, r12
call fcn.140040850
movzx ebx, al
lea rcx, [r14 + 0x70]
call fcn.140044dc0
mov dword [r15], eax
lea rcx, [rsp + 0x68]
call fcn.140054c00
movzx eax, bl
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1401da8c0
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret