Function at 0x51c160
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x98
mov edi, dword [ebp + 0x28]
mov eax, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x18]
mov ecx, dword [0x557008]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
test eax, eax
jne 0x51c189
call fcn.00500cd0
test edi, edi
cmove edi, eax
mov dword [ebp - 0x98], eax
push eax
call fcn.0043f380
add esp, 4
lea ecx, [eax*2 + 2]
xor esi, esi
cmp ecx, ebx
jbe 0x51c1eb
push 0xfb
push str....._third_party_boringssl_srccrypto_rsa_extra_rsa_crypt.c
push 0x85
push 0
push 4
call fcn.00517980
add esp, 0x14
push esi
call fcn.0047d2c0
add esp, 4
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a927c
mov eax, esi
add esp, 0x98
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x51c1c5
mov ecx, eax
mov eax, ebx
mov dword [ebp - 0xa0], ecx
mov ebx, ecx
not ebx
add ebx, eax
push ebx
call fcn.0047d270
add esp, 4
test eax, eax
je 0x51c1e7
mov esi, 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 edi
mov dword [ebp - 0x9c], ebx
push ebx
mov dword [ebp - 0x94], eax
push eax
mov ebx, edx
push edx
push ecx
call fcn.00440bf0
add esp, 0x14
test eax, eax
je 0x51c1c5
test ebx, ebx
je 0x51c26b
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 0x51c25f
push edi
push ebx
lea eax, [ebp - 0x50]
push eax
mov edi, dword [ebp - 0x9c]
push edi
push esi
call fcn.00440bf0
add esp, 0x14
test eax, eax
je 0x51c1c5
test edi, edi
mov ecx, dword [ebp - 0x94]
je 0x51c2a0
xor edx, edx
mov al, byte [ecx + edx]
xor byte [esi + edx], al
inc edx
cmp edi, edx
jne 0x51c295
mov dword [ebp - 0x94], esi
pcmpeqd xmm0, xmm0
lea esi, [ebp - 0x90]
movdqu xmmword [esi + 0x30], xmm0
movdqu xmmword [esi + 0x20], xmm0
movdqu xmmword [esi + 0x10], xmm0
movdqu xmmword [esi], xmm0
xor edi, edi
push edi
push dword [ebp - 0x98]
push edi
push esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call fcn.0043f390
add esp, 0x18
test eax, eax
je 0x51c349
push ebx
push esi
mov esi, dword [ebp - 0x94]
push esi
call fcn.0047d3d0
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
mov eax, ecx
not eax
sar eax, 0x1f
cmp ebx, dword [ebp - 0x9c]
jb 0x51c354
xor edx, edx
dec edx
or eax, edx
test eax, eax
jne 0x51c1aa
inc edi
mov eax, dword [ebp - 0x9c]
mov esi, eax
sub esi, edi
cmp esi, dword [ebp + 0x10]
jbe 0x51c3c8
push 0xef
push str....._third_party_boringssl_srccrypto_rsa_extra_rsa_crypt.c
push 0x71
push 0
push 4
call fcn.00517980
add esp, 0x14
mov esi, dword [ebp - 0x94]
jmp 0x51c1c5
mov ecx, ebx
add ecx, ebx
not ecx
add ecx, dword [ebp + 0x18]
mov dword [ebp - 0xa4], ecx
xor ecx, ecx
dec ecx
mov dword [ebp - 0x98], ecx
xor ecx, ecx
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x94]
movzx esi, byte [eax + ebx]
mov edx, esi
xor edx, 1
dec edx
sar edx, 0x1f
mov eax, edx
and eax, dword [ebp - 0x98]
mov edi, ebx
xor edi, ecx
and edi, eax
mov eax, dword [ebp - 0xa0]
xor edi, ecx
not edx
and edx, dword [ebp - 0x98]
test esi, esi
cmovne esi, edx
or eax, esi
mov esi, dword [ebp - 0x94]
inc ebx
mov ecx, edi
mov dword [ebp - 0x98], edx
dec dword [ebp - 0xa4]
jne 0x51c36e
jmp 0x51c313
mov ecx, dword [ebp + 0xc]
cmp eax, edi
mov ebx, dword [ebp - 0x94]
je 0x51c3ea
mov eax, ebx
add eax, edi
push esi
push eax
push dword [ebp + 8]
mov edi, ecx
call fcn.004ac560
mov ecx, edi
add esp, 0xc
mov dword [ecx], esi
push ebx
call fcn.0047d2c0
add esp, 4
xor esi, esi
inc esi
jmp 0x51c1d0