Function at 0x511ed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x98
mov esi, dword [ebp + 0x28]
mov eax, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x18]
mov ecx, dword [0x54a010]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
test eax, eax
jne 0x511ef9
call fcn.004f5740
test esi, esi
cmove esi, eax
mov dword [ebp - 0x98], eax
push eax
call fcn.0043dbd0
add esp, 4
lea ecx, [eax*2 + 2]
xor edi, edi
cmp ecx, ebx
jbe 0x511f57
push 0xfb
push str....._third_party_boringssl_srccrypto_rsa_extra_rsa_crypt.c
push 0x85
push 0
push 4
call fcn.0050d790
add esp, 0x14
push edi
call fcn.0047b330
add esp, 4
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0403
mov eax, esi
add esp, 0x98
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, eax
mov eax, ebx
mov dword [ebp - 0xa0], ecx
mov ebx, ecx
not ebx
add ebx, eax
push ebx
call fcn.0047b2e0
add esp, 4
test eax, eax
je 0x5120f3
mov edi, eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xa0]
add eax, ecx
inc eax
mov edx, ecx
pcmpeqd xmm0, xmm0
lea ecx, [ebp - 0x50]
movdqu xmmword [ecx + 0x30], xmm0
movdqu xmmword [ecx + 0x20], xmm0
movdqu xmmword [ecx + 0x10], xmm0
movdqu xmmword [ecx], xmm0
push esi
mov dword [ebp - 0x9c], ebx
push ebx
mov dword [ebp - 0x94], eax
push eax
mov ebx, edx
push edx
push ecx
call fcn.00440350
add esp, 0x14
test eax, eax
je 0x511f35
test ebx, ebx
je 0x511fdb
mov eax, dword [ebp + 0x14]
inc eax
xor ecx, ecx
mov dl, byte [eax + ecx]
xor byte [ebp + ecx - 0x50], dl
inc ecx
cmp ebx, ecx
jne 0x511fcf
push esi
push ebx
lea eax, [ebp - 0x50]
push eax
mov esi, dword [ebp - 0x9c]
push esi
push edi
call fcn.00440350
add esp, 0x14
test eax, eax
je 0x511f35
test esi, esi
mov ecx, dword [ebp - 0x94]
je 0x512010
xor edx, edx
mov al, byte [ecx + edx]
xor byte [edi + edx], al
inc edx
cmp esi, edx
jne 0x512005
mov dword [ebp - 0x94], edi
pcmpeqd xmm0, xmm0
lea edi, [ebp - 0x90]
movdqu xmmword [edi + 0x30], xmm0
movdqu xmmword [edi + 0x20], xmm0
movdqu xmmword [edi + 0x10], xmm0
movdqu xmmword [edi], xmm0
xor esi, esi
push esi
push dword [ebp - 0x98]
push esi
push edi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call fcn.0043dbe0
add esp, 0x18
test eax, eax
je 0x51212f
push ebx
push edi
mov edi, dword [ebp - 0x94]
push edi
call fcn.0047b440
add esp, 0xc
mov ecx, eax
not ecx
dec eax
and eax, ecx
mov ecx, dword [ebp + 0x14]
movzx ecx, byte [ecx]
dec ecx
and ecx, eax
not ecx
sar ecx, 0x1f
cmp ebx, dword [ebp - 0x9c]
jae 0x5120fa
mov eax, ebx
add eax, ebx
not eax
add eax, dword [ebp + 0x18]
mov dword [ebp - 0xa4], eax
xor eax, eax
dec eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0xa0], ecx
mov ecx, dword [ebp - 0x94]
movzx edi, byte [ecx + ebx]
mov edx, edi
xor edx, 1
dec edx
sar edx, 0x1f
mov esi, edx
and esi, eax
mov ecx, esi
not esi
and esi, dword [ebp - 0x98]
and ecx, ebx
or esi, ecx
mov ecx, dword [ebp - 0xa0]
not edx
and edx, eax
test edi, edi
cmovne edi, edx
or ecx, edi
mov edi, dword [ebp - 0x94]
inc ebx
mov dword [ebp - 0x98], esi
mov eax, edx
dec dword [ebp - 0xa4]
jne 0x51209e
jmp 0x5120fd
xor edi, edi
jmp 0x511f35
xor edx, edx
dec edx
or ecx, edx
test ecx, ecx
jne 0x511f1a
inc esi
mov eax, dword [ebp - 0x9c]
mov edi, eax
sub edi, esi
cmp edi, dword [ebp + 0x10]
jbe 0x51213a
push 0xef
push str....._third_party_boringssl_srccrypto_rsa_extra_rsa_crypt.c
push 0x71
push 0
push 4
call fcn.0050d790
add esp, 0x14
mov edi, dword [ebp - 0x94]
jmp 0x511f35
mov ecx, dword [ebp + 0xc]
cmp eax, esi
mov ebx, dword [ebp - 0x94]
je 0x51215c
mov eax, ebx
add eax, esi
push edi
push eax
push dword [ebp + 8]
mov esi, ecx
call fcn.004a3290
mov ecx, esi
add esp, 0xc
mov dword [ecx], edi
push ebx
call fcn.0047b330
add esp, 4
xor esi, esi
inc esi
jmp 0x511f40