Function at 0x1002a600
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x100f529c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x2c]
push esi
mov esi, ecx
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], ecx
test byte [esi + 0x261], 1
mov ecx, dword [ebp + 0x34]
push edi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ecx
je 0x1002a648
movzx ecx, byte [esi + 0x25d]
mov dword [ebp - 0x38], ecx
jmp 0x1002a64f
mov dword [ebp - 0x38], 0
cmp dword [esi], 0
mov edi, dword [ebp + 0x30]
je 0x1002a6ac
push dword [ebp + 0x38]
lea eax, [ebp - 0x34]
push edi
push eax
lea eax, [esi + 8]
push eax
call fcn.1004f370
add esp, 0x10
test eax, eax
setne al
test al, al
jne 0x1002a6a4
push 0x142
push str.C:_boringssl_x86_ssl_ssl_aead_ctx.cc
push 0xc8
push 0
push 0x10
call fcn.10068920
add esp, 0x14
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a69cd
mov esp, ebp
pop ebp
ret 0x34
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x3c]
jmp 0x1002a6b2
mov edx, dword [ebp + 0x38]
mov dword [ebp - 0x34], edx
lea ecx, [ebx + edi]
cmp ebx, eax
je 0x1002a6c3
cmp ecx, eax
jbe 0x1002a6c3
add eax, edi
cmp eax, ebx
ja 0x1002a6e2
cmp ecx, dword [ebp - 0x30]
jbe 0x1002a6d5
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
cmp eax, ebx
ja 0x1002a6e2
mov eax, dword [ebp - 0x40]
cmp ecx, eax
jbe 0x1002a6ec
add eax, edx
cmp eax, ebx
jbe 0x1002a6ec
push 0x148
jmp 0x1002a7c0
cmp dword [esi], 0
je 0x1002a87c
push dword [ebp + 0x28]
lea eax, [ebp - 0x2c]
mov ecx, esi
push dword [ebp + 0x24]
push edi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.1002a130
mov bl, byte [esi + 0x261]
movzx edi, byte [esi + 0x25c]
test bl, 4
je 0x1002a742
movzx eax, byte [esi + 0x25d]
sub edi, eax
je 0x1002a75a
push edi
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.100a7e90
jmp 0x1002a757
test edi, edi
je 0x1002a75a
push edi
lea eax, [esi + 0x250]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.100a7910
add esp, 0xc
lea ecx, [ebp - 0x1c]
add ecx, edi
test bl, 2
je 0x1002a785
movzx eax, byte [esi + 0x25d]
push eax
push ecx
call fcn.10051980
add esp, 8
test eax, eax
je 0x1002a68f
mov bl, byte [esi + 0x261]
jmp 0x1002a794
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
bswap eax
bswap edx
mov dword [ecx], eax
mov dword [ecx + 4], edx
movzx eax, byte [esi + 0x25d]
add edi, eax
mov dword [ebp - 0x38], eax
test bl, 1
je 0x1002a811
push eax
push dword [ebp - 0x30]
push dword [ebp + 0x30]
push dword [ebp - 0x44]
call fcn.1002a920
add esp, 0x10
test eax, eax
je 0x1002a7eb
push 0x176
push str.C:_boringssl_x86_ssl_ssl_aead_ctx.cc
push 0xbd
push 0
push 0x10
call fcn.10068920
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a69cd
mov esp, ebp
pop ebp
ret 0x34
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1002a811
push eax
movzx eax, byte [esi + 0x25c]
lea ecx, [ebp - 0x1c]
add eax, ecx
push eax
push dword [ebp - 0x30]
call fcn.100a7910
mov bl, byte [esi + 0x261]
add esp, 0xc
test bl, 4
je 0x1002a833
movzx edx, byte [esi + 0x25c]
xor ecx, ecx
test edx, edx
je 0x1002a833
mov al, byte [esi + ecx + 0x250]
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, edx
jb 0x1002a823
push dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x50]
push dword [ebp + 0x38]
push dword [ebp - 0x48]
push dword [ebp + 0x30]
push dword [ebp - 0x44]
push edi
push eax
push dword [ebp - 0x34]
lea eax, [ebp - 0x54]
push eax
push ecx
push dword [ebp - 0x3c]
lea eax, [esi + 8]
push eax
call fcn.1004f280
add esp, 0x34
test eax, eax
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a69cd
mov esp, ebp
pop ebp
ret 0x34
test edi, edi
je 0x1002a88d
push edi
push ebx
push dword [ebp - 0x3c]
call fcn.100a7910
add esp, 0xc
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x1002a8a4
mov ecx, dword [ebp - 0x40]
push eax
push dword [ebp - 0x48]
push ecx
call fcn.100a7910
add esp, 0xc
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a69cd
mov esp, ebp
pop ebp
ret 0x34