Function at 0x533e20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74a4cb
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x899944]
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, dword [ebp + 0x20]
movzx edx, byte [edi + 0xae]
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov esi, ecx
mov ecx, dword [ebp + 0x1c]
push edx
push str.encryptFragment
mov dword [ebp - 0xb0], ecx
push edi
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xac], eax
call fcn.00474f30
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x533eb9
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push str.Nothing_to_TLS_encrypt.
mov ecx, edi
call edx
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], 0xffffffff
call fcn.00474f80
xor al, al
jmp 0x534597
cmp dword [esi + 0xb0], 0
jne 0x533ee7
cmp byte [esi + 0x98], 0
jne 0x533ee7
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 0xb0]
push ebx
call fcn.00411260
mov bl, al
jmp 0x534583
lea ecx, [esi + 0x24]
call fcn.0040fb90
cmp dword [esi + 0xac], 6
jne 0x533fb7
mov eax, dword [esi + 0xc4]
add eax, dword [esi + 0xc0]
cmp eax, 0xc
je 0x533f1d
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push str.Nonce_length_not_correct_for_GCM_mode.
mov ecx, edi
call eax
jmp 0x533ea0
lea ebx, [esi + 0xd0]
mov ecx, ebx
call fcn.004033b0
cmp eax, 4
je 0x533f42
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push str.WriteIV_is_not_the_correct_length_for_GCM_mode.
mov ecx, edi
call eax
jmp 0x533ea0
push ebx
lea ecx, [esi + 0x24]
call fcn.00412840
lea eax, [esi + 0xec]
push 8
push eax
lea ecx, [esi + 0x24]
call fcn.00411260
lea ecx, [esi + 0x10684]
call fcn.0040fb90
push 8
lea eax, [esi + 0xec]
push eax
lea ecx, [esi + 0x10684]
call fcn.00411260
mov al, byte [ebp + 0x10]
mov cl, byte [ebp + 8]
mov dl, byte [ebp + 0xc]
mov byte [ebp - 0x16], al
mov eax, dword [ebp - 0xac]
mov byte [ebp - 0x18], cl
movzx ecx, byte [eax + 1]
mov byte [ebp - 0x17], dl
movzx edx, byte [eax]
push 5
lea eax, [ebp - 0x18]
mov byte [ebp - 0x15], cl
push eax
lea ecx, [esi + 0x10684]
mov byte [ebp - 0x14], dl
call fcn.00411260
mov ebx, dword [ebp - 0xa4]
cmp dword [ebp + 0xc], 3
jne 0x53424c
cmp dword [ebp + 0x10], 2
jl 0x53424c
cmp dword [esi + 0xc4], 0
jbe 0x53424c
lea ecx, [esi + 0x40]
mov dword [ebp - 0xa4], ecx
call fcn.0040fb90
cmp dword [esi + 0xac], 6
je 0x534005
mov ecx, dword [ebp - 0xa4]
mov edx, dword [esi + 0xc4]
push ecx
push edx
call fcn.004263a0
add esp, 8
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 0xa4]
push ebx
call fcn.00411260
cmp dword [esi + 0xb0], 0
je 0x534068
cmp dword [esi + 0xac], 6
je 0x534068
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
push edi
lea edx, [ebp - 0xa0]
push edx
mov edx, dword [ebp + 0x10]
push ecx
push ebx
push edx
push 3
push eax
push 1
mov ecx, esi
call fcn.00533c30
test eax, eax
je 0x534068
push eax
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, dword [ebp - 0xa4]
call fcn.00411260
cmp byte [esi + 0x98], 0
je 0x53455c
mov eax, dword [esi + 0xac]
cmp eax, 6
je 0x5340c0
cmp eax, 0x63
je 0x5340c0
cmp eax, 7
je 0x5340c0
mov ebx, dword [esi + 0xc4]
xor eax, eax
test ebx, ebx
je 0x5340aa
mov ecx, dword [ebp - 0xa4]
call fcn.004033b0
inc eax
xor edx, edx
div ebx
mov eax, ebx
sub eax, edx
cmp eax, ebx
jne 0x5340b0
xor eax, eax
mov ecx, dword [ebp - 0xa4]
lea edx, [eax + 1]
push edx
push eax
call fcn.00410f50
cmp dword [esi + 0xac], 6
jne 0x5340d8
lea eax, [esi + 0x24]
push eax
lea ecx, [esi + 0x10638]
call fcn.004e1830
mov ecx, dword [ebp - 0xb0]
call fcn.004033b0
mov cl, byte [edi + 0xae]
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov al, byte [edi + 0xad]
mov byte [edi + 0xad], cl
cmp dword [esi + 0xac], 6
mov byte [ebp - 0xa5], al
mov dword [esi + 0x100], ebx
mov dword [esi + 0x104], ebx
mov dword [esi + 0x108], ebx
mov dword [esi + 0x10c], ebx
jne 0x53416e
mov ecx, dword [esi + 0x106c8]
push edi
lea edx, [esi + 0x10638]
push edx
lea eax, [esi + 0xf8]
push eax
call fcn.0055bfa0
test al, al
jne 0x53415a
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push str.TLS_gcm_encrypt_setup_failed.
mov ecx, edi
call eax
mov ecx, dword [ebp - 0xac]
mov dword [ecx], ebx
jmp 0x533ea0
mov ecx, dword [ebp - 0xb0]
push 8
lea edx, [esi + 0xec]
push edx
call fcn.00411260
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xa4]
push edi
push eax
lea ebx, [esi + 0x10638]
call fcn.004033b0
mov ecx, dword [ebp - 0xa4]
push eax
call fcn.0040fbb0
mov ecx, dword [esi + 0x106c8]
push eax
push ebx
lea eax, [esi + 0xf8]
push eax
call fcn.004e1a40
mov cl, byte [ebp - 0xa5]
mov bl, al
mov byte [edi + 0xad], cl
test bl, bl
jne 0x5341cc
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push str.Failed_to_encrypt_TLS_fragment
mov ecx, edi
call eax
jmp 0x533ea0
cmp dword [esi + 0xac], 6
jne 0x534239
mov ecx, dword [esi + 0x106c8]
push edi
lea eax, [esi + 0x10638]
push eax
lea eax, [esi + 0xf8]
push eax
call fcn.0055c030
test al, al
jne 0x534206
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push str.TLS_gcm_encrypt_finalize_failed.
mov ecx, edi
call eax
jmp 0x533ea0
add esi, 0x106a0
mov ecx, esi
call fcn.004033b0
cmp eax, 0x10
je 0x53422b
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push str.GCM_auth_tag_is_not_16_bytes.
mov ecx, edi
call eax
jmp 0x533ea0
mov ecx, dword [ebp - 0xb0]
push esi
call fcn.00412840
mov bl, al
mov ecx, dword [ebp - 0xb0]
call fcn.004033b0
sub eax, dword [ebp - 0x18]
jmp 0x53457b
lea ecx, [esi + 0x40]
mov dword [ebp - 0xa4], ecx
call fcn.0040fb90
mov edx, dword [ebp - 0xac]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xa4]
push eax
push ebx
call fcn.00411260
cmp dword [esi + 0xb0], 0
je 0x5342b0
mov edx, dword [ebp - 0xac]
mov eax, dword [edx]
mov edx, dword [ebp + 0xc]
push edi
lea ecx, [ebp - 0x60]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push ebx
push ecx
push edx
push eax
push 1
mov ecx, esi
call fcn.00533c30
test eax, eax
je 0x5342b0
push eax
lea ecx, [ebp - 0x60]
push ecx
mov ecx, dword [ebp - 0xa4]
call fcn.00411260
cmp byte [esi + 0x98], 0
je 0x53455c
mov eax, dword [esi + 0xac]
cmp eax, 6
je 0x534308
cmp eax, 0x63
je 0x534308
cmp eax, 7
je 0x534308
mov ebx, dword [esi + 0xc4]
xor eax, eax
test ebx, ebx
je 0x5342f2
mov ecx, dword [ebp - 0xa4]
call fcn.004033b0
inc eax
xor edx, edx
div ebx
mov eax, ebx
sub eax, edx
cmp eax, ebx
jne 0x5342f8
xor eax, eax
mov ecx, dword [ebp - 0xa4]
lea edx, [eax + 1]
push edx
push eax
call fcn.00410f50
cmp dword [esi + 0xac], 7
jne 0x53447d
push 0xc
lea ecx, [esi + 0x24]
call fcn.00414050
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x5343c6
mov dword [ebx], 0
mov eax, dword [esi + 0xec]
mov dword [ebx + 4], eax
mov ecx, dword [esi + 0xf0]
mov dword [ebx + 8], ecx
push 0xc
lea ecx, [esi + 0x24]
call fcn.0040fbc0
lea ecx, [esi + 0xd0]
call fcn.004033b0
cmp eax, 0xc
je 0x534371
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push str.m_fixedIv_should_be_12_bytes
mov ecx, edi
call eax
jmp 0x533ea0
lea ecx, [esi + 0xd0]
call fcn.0040fbb0
lea edx, [eax + 2]
sub eax, dword [ebp - 0x18]
mov ecx, ebx
mov dword [ebp - 0xa4], 2
mov edi, edi
movzx ebx, byte [eax + ecx]
xor byte [ecx], bl
movzx ebx, byte [edx - 1]
xor byte [ecx + 1], bl
movzx ebx, byte [edx]
xor byte [ecx + 2], bl
movzx ebx, byte [edx + 1]
xor byte [ecx + 3], bl
movzx ebx, byte [edx + 2]
xor byte [ecx + 4], bl
movzx ebx, byte [edx + 3]
xor byte [ecx + 5], bl
add ecx, 6
add edx, 6
dec dword [ebp - 0xa4]
jne 0x534390
lea ecx, [esi + 0x10684]
call fcn.0040fb90
push 8
lea ecx, [esi + 0xec]
push ecx
lea ecx, [esi + 0x10684]
call fcn.00411260
mov al, byte [ebp + 0xc]
mov dl, byte [ebp + 8]
mov cl, byte [ebp + 0x10]
mov byte [ebp - 0x1f], al
mov eax, dword [ebp - 0xac]
mov byte [ebp - 0x20], dl
movzx edx, byte [eax + 1]
movzx eax, byte [eax]
mov byte [ebp - 0x1e], cl
push 5
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [esi + 0x10684]
mov byte [ebp - 0x1d], dl
mov byte [ebp - 0x1c], al
call fcn.00411260
lea eax, [esi + 0x24]
lea ebx, [esi + 0x10638]
push eax
mov ecx, ebx
call fcn.004e1830
mov ecx, dword [esi + 0x106c8]
mov edx, dword [ecx]
push edi
lea eax, [esi + 0xf8]
push eax
mov eax, dword [edx + 0xc]
push ebx
push 1
call eax
mov ecx, dword [esi + 0x106c8]
mov edx, dword [ecx]
push edi
push ebx
lea eax, [esi + 0xf8]
push eax
mov eax, dword [edx + 0x24]
call eax
test al, al
jne 0x53447d
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push str.TLS_aead_encrypt_setup_failed.
mov ecx, edi
call eax
mov ecx, dword [ebp - 0xac]
mov dword [ecx], 0
jmp 0x533ea0
mov ebx, dword [ebp - 0xb0]
mov ecx, ebx
call fcn.004033b0
mov dl, byte [edi + 0xad]
push edi
push ebx
mov dword [ebp - 0x18], eax
mov al, byte [edi + 0xae]
lea ebx, [esi + 0x40]
mov ecx, ebx
mov byte [ebp - 0xa5], dl
mov byte [edi + 0xad], al
call fcn.004033b0
push eax
mov ecx, ebx
call fcn.0040fbb0
mov ecx, dword [esi + 0x106c8]
push eax
lea eax, [esi + 0x10638]
push eax
lea eax, [esi + 0xf8]
push eax
call fcn.004e1a40
mov cl, byte [ebp - 0xa5]
mov bl, al
mov byte [edi + 0xad], cl
test bl, bl
jne 0x5344f3
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push str.Failed_to_encrypt_TLS_fragment.
mov ecx, edi
call eax
cmp dword [esi + 0xac], 7
jne 0x534239
mov ecx, dword [esi + 0x106c8]
mov edx, dword [ecx]
push edi
lea eax, [esi + 0x10638]
push eax
lea eax, [esi + 0xf8]
push eax
mov eax, dword [edx + 0x28]
call eax
test al, al
jne 0x534533
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push str.TLS_aead_encrypt_finalize_failed.
mov ecx, edi
call eax
jmp 0x533ea0
add esi, 0x106a0
mov ecx, esi
call fcn.004033b0
cmp eax, 0x10
je 0x53422b
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push str.AEAD_auth_tag_is_not_16_bytes.
mov ecx, edi
call eax
jmp 0x533ea0
mov edx, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xb0]
push edx
call fcn.00412840
mov ecx, dword [ebp - 0xa4]
mov bl, al
call fcn.004033b0
mov ecx, dword [ebp - 0xac]
mov dword [ecx], eax
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], 0xffffffff
call fcn.00474f80
mov al, bl
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.0070bb4c
mov esp, ebp
pop ebp
ret 0x1c