Function at 0x1002a220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x100f529c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x3c], edx
cmp dword [esi], 0
je 0x1002a438
mov al, byte [esi + 0x261]
xor ecx, ecx
mov byte [ebp - 0x2d], al
push ebx
test al, 8
jne 0x1002a2ba
lea eax, [esi + 8]
push eax
call sym.ssl.dll_SSL_COMP_get_id
push eax
call fcn.1004f410
mov edx, eax
add esp, 8
mov al, byte [esi + 0x261]
mov byte [ebp - 0x2d], al
test al, 1
je 0x1002a27c
movzx ecx, byte [esi + 0x25d]
jmp 0x1002a27e
xor ecx, ecx
mov ebx, dword [ebp + 0x28]
lea eax, [edx + ecx]
cmp ebx, eax
jae 0x1002a2b4
push 0x100
push str.C:_boringssl_x86_ssl_ssl_aead_ctx.cc
push 0x70
push 0
push 0x10
call fcn.10068920
add esp, 0x14
xor al, al
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a69cd
mov esp, ebp
pop ebp
ret 0x24
mov ecx, ebx
sub ecx, eax
jmp 0x1002a2bd
mov ebx, dword [ebp + 0x28]
push edi
push dword [ebp + 0x20]
lea eax, [ebp - 0x2c]
push dword [ebp + 0x1c]
push ecx
push dword [ebp + 0x18]
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.1002a130
test byte [ebp - 0x2d], 4
movzx edi, byte [esi + 0x25c]
je 0x1002a306
movzx eax, byte [esi + 0x25d]
sub edi, eax
je 0x1002a31e
push edi
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.100a7e90
jmp 0x1002a31b
test edi, edi
je 0x1002a31e
push edi
lea eax, [esi + 0x250]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.100a7910
add esp, 0xc
test byte [ebp - 0x2d], 1
je 0x1002a3a0
movzx eax, byte [esi + 0x25d]
mov dword [ebp - 0x34], eax
cmp ebx, eax
jae 0x1002a35f
push 0x11b
push str.C:_boringssl_x86_ssl_ssl_aead_ctx.cc
push 0x70
push 0
push 0x10
call fcn.10068920
add esp, 0x14
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a69cd
mov esp, ebp
pop ebp
ret 0x24
test eax, eax
je 0x1002a378
push eax
push dword [ebp + 0x24]
lea eax, [ebp - 0x1c]
add eax, edi
push eax
call fcn.100a7910
mov eax, dword [ebp - 0x34]
add esp, 0xc
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 0x24]
call fcn.10015e20
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov al, byte [esi + 0x261]
mov dword [ebp - 0x34], ecx
mov dword [ebp + 0x24], ecx
mov dword [ebp + 0x28], ebx
mov byte [ebp - 0x2d], al
jmp 0x1002a3b8
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
bswap eax
mov dword [ebp + edi - 0x1c], eax
mov eax, dword [ebp + 0x24]
bswap ecx
mov dword [ebp + edi - 0x18], ecx
mov dword [ebp - 0x34], eax
movzx eax, byte [esi + 0x25d]
add edi, eax
test byte [ebp - 0x2d], 4
je 0x1002a3e4
movzx edx, byte [esi + 0x25c]
xor ecx, ecx
test edx, edx
je 0x1002a3e4
mov al, byte [esi + ecx + 0x250]
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, edx
jb 0x1002a3d4
push dword [ebp - 0x40]
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x44]
push ebx
push eax
push edi
push ecx
push ebx
lea ecx, [ebp - 0x38]
push ecx
push eax
lea eax, [esi + 8]
push eax
call fcn.1004f030
add esp, 0x28
test eax, eax
je 0x1002a34a
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x38], edx
mov ecx, dword [ebp + 0x24]
cmovb edx, dword [ebp - 0x38]
pop edi
pop ebx
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a69cd
mov esp, ebp
pop ebp
ret 0x24
mov ecx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x24]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 4]
mov dword [edx], eax
xor ecx, ebp
mov al, 1
pop esi
call fcn.100a69cd
mov esp, ebp
pop ebp
ret 0x24