Function at 0x140103fc0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x128
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov r13d, r9d
mov dword [rsp + 0x54], r9d
mov esi, r8d
mov dword [rsp + 0x5c], r8d
mov dword [rsp + 0x58], edx
mov rbx, rcx
mov r12, qword [rsp + 0x190]
mov r15, qword [rsp + 0x198]
mov rbp, qword [rsp + 0x1a0]
mov r14, qword [rsp + 0x1a8]
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
movzx r9d, byte [r14 + 0xaa]
lea r8, str.encryptFragment
mov rdx, r14
lea rcx, [rsp + 0x68]
call fcn.1400712c0
nop
test r12, r12
jne 0x140104071
mov rax, qword [r14]
lea rdx, str.Nothing_to_TLS_encrypt.
mov rcx, r14
call qword [rax + 0x28]
xor dil, dil
jmp 0x14010479e
cmp dword [rbx + 0x124], 0
jne 0x140104099
cmp byte [rbx + 0x104], 0
jne 0x140104099
mov r8d, dword [r15]
mov rdx, r12
mov rcx, rbp
call fcn.140034960
movzx edi, al
jmp 0x14010479e
lea rdi, [rbx + 0x40]
mov rcx, rdi
call fcn.140035e00
cmp dword [rbx + 0x120], 6
jne 0x1401041a5
mov eax, dword [rbx + 0x138]
add eax, dword [rbx + 0x134]
cmp eax, 0xc
je 0x1401040db
mov rax, qword [r14]
lea rdx, str.Nonce_length_not_correct_for_GCM_mode.
mov rcx, r14
call qword [rax + 0x28]
xor dil, dil
jmp 0x14010479e
lea rcx, [rbx + 0x148]
call fcn.1400372d0
cmp eax, 4
je 0x140104104
mov rax, qword [r14]
lea rdx, str.WriteIV_is_not_the_correct_length_for_GCM_mode.
mov rcx, r14
call qword [rax + 0x28]
xor dil, dil
jmp 0x14010479e
lea rdx, [rbx + 0x148]
mov rcx, rdi
call fcn.1400348f0
mov r8d, 8
lea rdx, [rbx + 0x178]
lea rcx, [rbx + 0x40]
call fcn.140034960
lea rcx, [rbx + 0x10760]
call fcn.140035e00
mov r8d, 8
lea rdx, [rbx + 0x178]
lea rcx, [rbx + 0x10760]
call fcn.140034960
mov eax, dword [rsp + 0x58]
mov byte [rsp + 0x80], al
mov eax, dword [rsp + 0x5c]
mov byte [rsp + 0x81], al
mov byte [rsp + 0x82], r13b
movzx eax, byte [r15 + 1]
mov byte [rsp + 0x83], al
movzx eax, byte [r15]
mov byte [rsp + 0x84], al
mov r8d, 5
lea rdx, [rsp + 0x80]
lea rcx, [rbx + 0x10760]
call fcn.140034960
lea rdi, [rbx + 0x40]
mov esi, dword [rsp + 0x5c]
cmp esi, 3
jne 0x140104453
cmp r13d, 2
jl 0x140104453
cmp dword [rbx + 0x138], 0
jbe 0x140104453
lea rcx, [rbx + 0x70]
call fcn.140035e00
cmp dword [rbx + 0x120], 6
je 0x1401041e6
lea rdx, [rbx + 0x70]
mov ecx, dword [rbx + 0x138]
call fcn.140040dd0
mov r8d, dword [r15]
mov rdx, r12
lea rcx, [rbx + 0x70]
call fcn.140034960
cmp dword [rbx + 0x124], 0
je 0x140104257
cmp dword [rbx + 0x120], 6
je 0x140104257
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov eax, dword [r15]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r13d
mov r9d, 3
mov r8d, dword [rsp + 0x58]
mov dl, 1
mov rcx, rbx
call fcn.1400ff780
test eax, eax
je 0x140104257
mov r8d, eax
lea rdx, [rsp + 0x90]
lea rcx, [rbx + 0x70]
call fcn.140034960
cmp byte [rbx + 0x104], 0
je 0x140104783
mov ecx, dword [rbx + 0x120]
lea eax, [rcx - 6]
xor r12d, r12d
cmp eax, 1
jbe 0x1401042b6
cmp ecx, 0x63
je 0x1401042b6
mov eax, r12d
mov ecx, dword [rbx + 0x138]
test ecx, ecx
je 0x1401042a0
lea rcx, [rbx + 0x70]
call fcn.1400372d0
inc eax
mov ecx, dword [rbx + 0x138]
xor edx, edx
div ecx
mov eax, ecx
sub eax, edx
cmp eax, ecx
cmove eax, r12d
lea r8d, [rax + 1]
movzx edx, al
lea rcx, [rbx + 0x70]
call fcn.140034c10
cmp dword [rbx + 0x120], 6
jne 0x1401042ce
lea rcx, [rbx + 0x106e0]
mov rdx, rdi
call fcn.1400db910
mov rcx, rbp
call fcn.1400372d0
mov dword [rsp + 0x54], eax
movzx eax, byte [r14 + 0xa9]
mov byte [rsp + 0x50], al
movzx ecx, byte [r14 + 0xaa]
mov byte [r14 + 0xa9], cl
mov qword [rbx + 0x188], r12
mov qword [rbx + 0x190], r12
cmp dword [rbx + 0x120], 6
jne 0x14010435d
lea r8, [rbx + 0x106e0]
lea rdx, [rbx + 0x180]
mov r9, r14
mov rcx, qword [rbx + 0x107d0]
call fcn.14013d070
test al, al
jne 0x140104348
mov rax, qword [r14]
lea rdx, str.TLS_gcm_encrypt_setup_failed.
mov rcx, r14
call qword [rax + 0x28]
mov dword [r15], r12d
xor dil, dil
jmp 0x14010479e
lea rdx, [rbx + 0x178]
mov r8d, 8
mov rcx, rbp
call fcn.140034960
lea rcx, [rbx + 0x70]
call fcn.1400372d0
mov edi, eax
lea rcx, [rbx + 0x70]
call fcn.140036f60
mov r9, rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], edi
lea r8, [rbx + 0x106e0]
lea rdx, [rbx + 0x180]
mov rcx, qword [rbx + 0x107d0]
call fcn.1400db5b0
movzx edi, al
movzx eax, byte [rsp + 0x50]
mov byte [r14 + 0xa9], al
test dil, dil
jne 0x1401043c5
mov rax, qword [r14]
lea rdx, str.Failed_to_encrypt_TLS_fragment
mov rcx, r14
call qword [rax + 0x28]
jmp 0x14010479e
cmp dword [rbx + 0x120], 6
jne 0x140104442
mov r9, r14
lea r8, [rbx + 0x106e0]
lea rdx, [rbx + 0x180]
mov rcx, qword [rbx + 0x107d0]
call fcn.14013cfb0
test al, al
jne 0x140104407
mov rax, qword [r14]
lea rdx, str.TLS_gcm_encrypt_finalize_failed.
mov rcx, r14
call qword [rax + 0x28]
xor dil, dil
jmp 0x14010479e
lea rcx, [rbx + 0x10790]
call fcn.1400372d0
cmp eax, 0x10
je 0x140104430
mov rax, qword [r14]
lea rdx, str.GCM_auth_tag_is_not_16_bytes.
mov rcx, r14
call qword [rax + 0x28]
xor dil, dil
jmp 0x14010479e
lea rdx, [rbx + 0x10790]
mov rcx, rbp
call fcn.1400348f0
movzx edi, al
mov rcx, rbp
call fcn.1400372d0
sub eax, dword [rsp + 0x54]
jmp 0x14010479b
lea rcx, [rbx + 0x70]
call fcn.140035e00
mov r8d, dword [r15]
mov rdx, r12
lea rcx, [rbx + 0x70]
call fcn.140034960
cmp dword [rbx + 0x124], 0
je 0x1401044c4
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x38], rax
mov eax, dword [r15]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r12
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x20], eax
mov r9d, esi
mov r8d, dword [rsp + 0x58]
mov dl, 1
mov rcx, rbx
call fcn.1400ff780
test eax, eax
je 0x1401044c4
mov r8d, eax
lea rdx, [rsp + 0xd0]
lea rcx, [rbx + 0x70]
call fcn.140034960
cmp byte [rbx + 0x104], 0
je 0x140104783
mov ecx, dword [rbx + 0x120]
lea eax, [rcx - 6]
xor r12d, r12d
cmp eax, 1
jbe 0x140104523
cmp ecx, 0x63
je 0x140104523
mov eax, r12d
mov ecx, dword [rbx + 0x138]
test ecx, ecx
je 0x14010450d
lea rcx, [rbx + 0x70]
call fcn.1400372d0
inc eax
mov ecx, dword [rbx + 0x138]
xor edx, edx
div ecx
mov eax, ecx
sub eax, edx
cmp eax, ecx
cmove eax, r12d
lea r8d, [rax + 1]
movzx edx, al
lea rcx, [rbx + 0x70]
call fcn.140034c10
cmp dword [rbx + 0x120], 7
jne 0x140104695
mov esi, reloc.WS2_32.dll_inet_ntoa
mov edx, esi
mov rcx, rdi
call fcn.140036ee0
mov rdi, rax
test rax, rax
je 0x1401045b0
mov dword [rax], r12d
mov rcx, qword [rbx + 0x178]
mov qword [rax + 4], rcx
mov edx, esi
lea rcx, [rbx + 0x40]
call fcn.140034830
lea rcx, [rbx + 0x148]
call fcn.1400372d0
cmp eax, esi
je 0x140104588
mov rax, qword [r14]
lea rdx, str.m_fixedIv_should_be_12_bytes
mov rcx, r14
call qword [rax + 0x28]
xor dil, dil
jmp 0x14010479e
lea rcx, [rbx + 0x148]
call fcn.140036f60
sub rax, rdi
nop word [rax + rax]
movzx ecx, byte [rax + rdi]
xor byte [rdi], cl
lea rdi, [rdi + 1]
sub rsi, 1
jne 0x1401045a0
lea rcx, [rbx + 0x10760]
call fcn.140035e00
lea rdx, [rbx + 0x178]
mov r8d, 8
lea rcx, [rbx + 0x10760]
call fcn.140034960
mov eax, dword [rsp + 0x58]
mov byte [rsp + 0x80], al
mov eax, dword [rsp + 0x5c]
mov byte [rsp + 0x81], al
mov eax, dword [rsp + 0x54]
mov byte [rsp + 0x82], al
movzx eax, byte [r15 + 1]
mov byte [rsp + 0x83], al
movzx eax, byte [r15]
mov byte [rsp + 0x84], al
mov r8d, 5
lea rdx, [rsp + 0x80]
lea rcx, [rbx + 0x10760]
call fcn.140034960
lea rdx, [rbx + 0x40]
lea rcx, [rbx + 0x106e0]
call fcn.1400db910
lea rdi, [rbx + 0x180]
mov rcx, qword [rbx + 0x107d0]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r14
mov r9, rdi
lea r8, [rbx + 0x106e0]
mov dl, 1
call qword [rax + 0x18]
mov rcx, qword [rbx + 0x107d0]
mov rax, qword [rcx]
mov r9, r14
lea r8, [rbx + 0x106e0]
mov rdx, rdi
call qword [rax + 0x48]
test al, al
jne 0x140104695
mov rax, qword [r14]
lea rdx, str.TLS_aead_encrypt_setup_failed.
mov rcx, r14
call qword [rax + 0x28]
mov dword [r15], r12d
xor dil, dil
jmp 0x14010479e
mov rcx, rbp
call fcn.1400372d0
mov dword [rsp + 0x54], eax
movzx esi, byte [r14 + 0xa9]
movzx edx, byte [r14 + 0xaa]
mov byte [r14 + 0xa9], dl
lea rcx, [rbx + 0x70]
call fcn.1400372d0
mov edi, eax
lea rcx, [rbx + 0x70]
call fcn.140036f60
mov r9, rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], edi
lea r8, [rbx + 0x106e0]
lea rdx, [rbx + 0x180]
mov rcx, qword [rbx + 0x107d0]
call fcn.1400db5b0
movzx edi, al
mov byte [r14 + 0xa9], sil
test al, al
jne 0x140104715
mov rax, qword [r14]
lea rdx, str.Failed_to_encrypt_TLS_fragment.
mov rcx, r14
call qword [rax + 0x28]
cmp dword [rbx + 0x120], 7
jne 0x140104442
mov rcx, qword [rbx + 0x107d0]
mov rax, qword [rcx]
mov r9, r14
lea r8, [rbx + 0x106e0]
lea rdx, [rbx + 0x180]
call qword [rax + 0x50]
test al, al
jne 0x140104759
mov rax, qword [r14]
lea rdx, str.TLS_aead_encrypt_finalize_failed.
mov rcx, r14
call qword [rax + 0x28]
xor dil, dil
jmp 0x14010479e
lea rcx, [rbx + 0x10790]
call fcn.1400372d0
cmp eax, 0x10
je 0x140104430
mov rax, qword [r14]
lea rdx, str.AEAD_auth_tag_is_not_16_bytes.
mov rcx, r14
call qword [rax + 0x28]
xor dil, dil
jmp 0x14010479e
lea rdx, [rbx + 0x70]
mov rcx, rbp
call fcn.1400348f0
movzx edi, al
lea rcx, [rbx + 0x70]
call fcn.1400372d0
mov dword [r15], eax
lea rcx, [rsp + 0x68]
call fcn.140071380
movzx eax, dil
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140168e10
add rsp, 0x128
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret