Function at 0x516b00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fd8cb
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x6baac0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xbc], edi
mov ebx, dword [ebp + 0x20]
lea ecx, [ebp - 0xa4]
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xa8], eax
movzx eax, byte [ebx + 0xae]
push eax
push str.encryptFragment
push ebx
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xb0], ebx
movq qword [ebp - 0xa4], xmm0
mov dword [ebp - 0x9c], 0
call fcn.00430cf0
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 4], 0
test eax, eax
jne 0x516bac
mov eax, dword [ebx]
mov ecx, ebx
push str.Nothing_to_TLS_encrypt.
call dword [eax + 0x14]
xor bh, bh
jmp 0x51726a
cmp dword [edi + 0xb0], 0
jne 0x516bd3
cmp byte [edi + 0x98], 0
jne 0x516bd3
push dword [esi]
mov ecx, dword [ebp - 0xa8]
push eax
call fcn.00412010
mov bh, al
jmp 0x51726a
lea eax, [edi + 0x24]
mov ecx, eax
mov dword [ebp - 0xc0], eax
call fcn.004132b0
cmp dword [edi + 0xac], 6
jne 0x516ca0
mov eax, dword [edi + 0xc4]
add eax, dword [edi + 0xc0]
cmp eax, 0xc
je 0x516c14
mov eax, dword [ebx]
mov ecx, ebx
push str.Nonce_length_not_correct_for_GCM_mode.
call dword [eax + 0x14]
xor bh, bh
jmp 0x51726a
lea esi, [edi + 0xd0]
mov ecx, esi
call fcn.00401c90
cmp eax, 4
je 0x516c39
mov eax, dword [ebx]
mov ecx, ebx
push str.WriteIV_is_not_the_correct_length_for_GCM_mode.
call dword [eax + 0x14]
xor bh, bh
jmp 0x51726a
push esi
lea ecx, [edi + 0x24]
call fcn.00411fb0
push 8
lea esi, [edi + 0xec]
push esi
lea ecx, [edi + 0x24]
call fcn.00412010
add edi, 0x10684
mov ecx, edi
call fcn.004132b0
push 8
push esi
mov ecx, edi
call fcn.00412010
mov eax, dword [ebp + 8]
mov ecx, edi
mov esi, dword [ebp - 0xb8]
mov byte [ebp - 0x18], al
mov eax, dword [ebp + 0xc]
mov byte [ebp - 0x17], al
mov eax, dword [ebp + 0x10]
mov byte [ebp - 0x16], al
mov al, byte [esi + 1]
mov byte [ebp - 0x15], al
mov al, byte [esi]
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x18]
push 5
push eax
call fcn.00412010
mov edi, dword [ebp - 0xbc]
cmp dword [ebp + 0xc], 3
jne 0x516f5c
cmp dword [ebp + 0x10], 2
jl 0x516f5c
cmp dword [edi + 0xc4], 0
jbe 0x516f5c
lea eax, [edi + 0x40]
mov ecx, eax
mov dword [ebp - 0xb0], eax
call fcn.004132b0
cmp dword [edi + 0xac], 6
je 0x516cec
lea eax, [edi + 0x40]
push eax
push dword [edi + 0xc4]
call fcn.00442300
add esp, 8
push dword [esi]
lea ecx, [edi + 0x40]
push dword [ebp - 0xb4]
call fcn.00412010
cmp dword [edi + 0xb0], 0
je 0x516d3d
cmp dword [edi + 0xac], 6
je 0x516d3d
push ebx
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
push dword [esi]
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push 3
push dword [ebp + 8]
push 1
call fcn.005129d0
test eax, eax
je 0x516d3d
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [edi + 0x40]
call fcn.00412010
cmp byte [edi + 0x98], 0
je 0x516f51
mov eax, dword [edi + 0xac]
cmp eax, 6
je 0x516d9a
cmp eax, 0x63
je 0x516d9a
cmp eax, 7
je 0x516d9a
mov eax, dword [edi + 0xc4]
xor ecx, ecx
test eax, eax
je 0x516d86
lea ecx, [edi + 0x40]
call fcn.00401c90
mov ecx, dword [edi + 0xc4]
inc eax
xor edx, edx
div ecx
mov eax, dword [edi + 0xc4]
sub ecx, edx
xor edx, edx
cmp ecx, eax
cmove ecx, edx
lea eax, [ecx + 1]
push eax
push ecx
lea ecx, [edi + 0x40]
call fcn.00412300
cmp dword [edi + 0xac], 6
jne 0x516db2
lea eax, [edi + 0x24]
push eax
lea ecx, [edi + 0x10638]
call fcn.00478510
mov ecx, dword [ebp - 0xa8]
call fcn.00401c90
mov cl, byte [ebx + 0xae]
mov dword [ebp - 0xb0], eax
mov al, byte [ebx + 0xad]
mov byte [ebx + 0xad], cl
mov dword [edi + 0x100], 0
mov dword [edi + 0x104], 0
mov dword [edi + 0x108], 0
mov dword [edi + 0x10c], 0
cmp dword [edi + 0xac], 6
mov byte [ebp - 0xa9], al
jne 0x516e57
mov ecx, dword [edi + 0x106c8]
lea eax, [edi + 0x10638]
push ebx
push eax
lea eax, [edi + 0xf8]
push eax
call fcn.004d2e80
test al, al
jne 0x516e43
mov eax, dword [ebx]
mov ecx, ebx
push str.TLS_gcm_encrypt_setup_failed.
call dword [eax + 0x14]
mov dword [esi], 0
xor bh, bh
jmp 0x51726a
mov ecx, dword [ebp - 0xa8]
lea eax, [edi + 0xec]
push 8
push eax
call fcn.00412010
push ebx
push dword [ebp - 0xa8]
lea ecx, [edi + 0x40]
call fcn.00401c90
push eax
lea ecx, [edi + 0x40]
call fcn.00414910
mov ecx, dword [edi + 0x106c8]
push eax
lea eax, [edi + 0x10638]
push eax
lea eax, [edi + 0xf8]
push eax
call fcn.00477da0
mov cl, byte [ebp - 0xa9]
mov byte [ebp - 0xaa], al
mov byte [ebx + 0xad], cl
test al, al
jne 0x516eb2
mov eax, dword [ebx]
mov ecx, ebx
push str.Failed_to_encrypt_TLS_fragment
call dword [eax + 0x14]
xor bh, bh
jmp 0x51726a
cmp dword [edi + 0xac], 6
jne 0x516f35
mov ecx, dword [edi + 0x106c8]
lea eax, [edi + 0x10638]
push ebx
push eax
lea eax, [edi + 0xf8]
push eax
call fcn.004d2dc0
test al, al
jne 0x516eec
mov eax, dword [ebx]
mov ecx, ebx
push str.TLS_gcm_encrypt_finalize_failed.
call dword [eax + 0x14]
xor bh, bh
jmp 0x51726a
add edi, 0x106a0
mov ecx, edi
call fcn.00401c90
cmp eax, 0x10
je 0x516f11
mov eax, dword [ebx]
mov ecx, ebx
push str.GCM_auth_tag_is_not_16_bytes.
call dword [eax + 0x14]
xor bh, bh
jmp 0x51726a
mov ecx, dword [ebp - 0xa8]
push edi
call fcn.00411fb0
mov ecx, dword [ebp - 0xa8]
mov bh, al
call fcn.00401c90
sub eax, dword [ebp - 0xb0]
jmp 0x517268
mov ecx, dword [ebp - 0xa8]
mov bh, byte [ebp - 0xaa]
call fcn.00401c90
sub eax, dword [ebp - 0xb0]
jmp 0x517268
mov edi, dword [ebp - 0xb0]
jmp 0x517253
lea eax, [edi + 0x40]
mov ecx, eax
mov dword [ebp - 0x18], eax
call fcn.004132b0
push dword [esi]
lea ecx, [edi + 0x40]
push dword [ebp - 0xb4]
call fcn.00412010
cmp dword [edi + 0xb0], 0
je 0x516fb8
push ebx
lea eax, [ebp - 0x98]
mov ecx, edi
push eax
push dword [esi]
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 1
call fcn.005129d0
test eax, eax
je 0x516fb8
push eax
lea eax, [ebp - 0x98]
push eax
lea ecx, [edi + 0x40]
call fcn.00412010
cmp byte [edi + 0x98], 0
je 0x517250
mov eax, dword [edi + 0xac]
cmp eax, 6
je 0x517011
cmp eax, 0x63
je 0x517011
cmp eax, 7
je 0x517011
mov esi, dword [edi + 0xc4]
xor ecx, ecx
test esi, esi
je 0x516ffd
lea ecx, [edi + 0x40]
call fcn.00401c90
mov esi, dword [edi + 0xc4]
inc eax
xor edx, edx
mov ecx, esi
div esi
sub ecx, edx
xor eax, eax
cmp ecx, esi
cmove ecx, eax
lea eax, [ecx + 1]
push eax
push ecx
lea ecx, [edi + 0x40]
call fcn.00412300
cmp dword [edi + 0xac], 7
jne 0x517159
push 0xc
lea ecx, [edi + 0x24]
call fcn.00414890
mov esi, eax
test esi, esi
je 0x517093
mov dword [esi], 0
mov ecx, dword [edi + 0xec]
mov dword [esi + 4], ecx
lea ecx, [edi + 0x24]
mov eax, dword [edi + 0xf0]
push 0xc
mov dword [esi + 8], eax
call fcn.00411ed0
lea ecx, [edi + 0xd0]
call fcn.00401c90
cmp eax, 0xc
je 0x517073
mov eax, dword [ebx]
mov ecx, ebx
push str.m_fixedIv_should_be_12_bytes
call dword [eax + 0x14]
xor bh, bh
jmp 0x51726a
lea ecx, [edi + 0xd0]
call fcn.00414910
sub eax, esi
mov edx, 0xc
mov cl, byte [eax + esi]
lea esi, [esi + 1]
xor byte [esi - 1], cl
sub edx, 1
jne 0x517085
lea ecx, [edi + 0x10684]
call fcn.004132b0
push 8
lea eax, [edi + 0xec]
push eax
lea ecx, [edi + 0x10684]
call fcn.00412010
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xb8]
mov byte [ebp - 0x18], al
mov eax, dword [ebp + 0xc]
mov byte [ebp - 0x17], al
mov eax, dword [ebp + 0x10]
mov byte [ebp - 0x16], al
mov al, byte [ecx + 1]
mov byte [ebp - 0x15], al
mov al, byte [ecx]
lea ecx, [edi + 0x10684]
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x18]
push 5
push eax
call fcn.00412010
push dword [ebp - 0xc0]
add edi, 0x10638
mov ecx, edi
call fcn.00478510
mov ebx, dword [ebp - 0xbc]
push dword [ebp - 0xb0]
mov ecx, dword [ebx + 0x106c8]
lea esi, [ebx + 0xf8]
push esi
push edi
push 1
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebx + 0x106c8]
mov ebx, dword [ebp - 0xb0]
push ebx
push edi
mov eax, dword [ecx]
push esi
mov eax, dword [eax + 0x24]
call eax
test al, al
jne 0x517153
mov eax, dword [ebx]
mov ecx, ebx
push str.TLS_aead_encrypt_setup_failed.
call dword [eax + 0x14]
mov ecx, dword [ebp - 0xb8]
xor bh, bh
mov dword [ecx], 0
jmp 0x51726a
mov edi, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xa8]
call fcn.00401c90
mov esi, dword [ebp - 0xb0]
lea ecx, [edi + 0x40]
mov bl, byte [ebx + 0xad]
push esi
push dword [ebp - 0xa8]
mov dl, byte [esi + 0xae]
mov dword [ebp - 0xc0], eax
mov byte [esi + 0xad], dl
call fcn.00401c90
push eax
lea ecx, [edi + 0x40]
call fcn.00414910
mov ecx, dword [edi + 0x106c8]
push eax
lea eax, [edi + 0x10638]
push eax
lea eax, [edi + 0xf8]
push eax
call fcn.00477da0
mov bh, al
mov byte [esi + 0xad], bl
test bh, bh
jne 0x5171cc
mov eax, dword [esi]
mov ecx, esi
push str.Failed_to_encrypt_TLS_fragment.
call dword [eax + 0x14]
cmp dword [edi + 0xac], 7
jne 0x517235
mov ecx, dword [edi + 0x106c8]
lea edx, [edi + 0x10638]
push esi
push edx
lea edx, [edi + 0xf8]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x28]
call eax
test al, al
jne 0x517205
mov eax, dword [esi]
mov ecx, esi
push str.TLS_aead_encrypt_finalize_failed.
call dword [eax + 0x14]
xor bh, bh
jmp 0x51726a
add edi, 0x106a0
mov ecx, edi
call fcn.00401c90
cmp eax, 0x10
je 0x517227
mov eax, dword [esi]
mov ecx, esi
push str.AEAD_auth_tag_is_not_16_bytes.
call dword [eax + 0x14]
xor bh, bh
jmp 0x51726a
mov ecx, dword [ebp - 0xa8]
push edi
call fcn.00411fb0
mov bh, al
mov ecx, dword [ebp - 0xa8]
call fcn.00401c90
mov ecx, dword [ebp - 0xb8]
sub eax, dword [ebp - 0xc0]
mov dword [ecx], eax
jmp 0x51726a
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xa8]
push edi
call fcn.00411fb0
mov ecx, edi
mov bh, al
call fcn.00401c90
mov dword [esi], eax
lea ecx, [ebp - 0xa4]
call fcn.00430db0
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ebe04
mov esp, ebp
pop ebp
ret 0x1c