Function at 0x51bf70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov edi, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x20]
mov esi, dword [ebp + 0xc]
mov eax, dword [0x557008]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ebx, ebx
jne 0x51bf97
call fcn.00500cd0
mov ebx, eax
test edi, edi
cmove edi, ebx
push ebx
call fcn.0043f380
add esp, 4
lea ecx, [eax*2 + 2]
cmp ecx, esi
ja 0x51bfdb
lea edx, [eax + eax]
mov ecx, esi
mov esi, edx
not esi
add ecx, esi
dec ecx
cmp ecx, dword [ebp + 0x14]
jb 0x51bfd0
mov ecx, dword [ebp + 0xc]
dec ecx
or edx, 1
cmp ecx, edx
jae 0x51c015
push 0x6d
jmp 0x51bfdd
push 0x68
push str....._third_party_boringssl_srccrypto_rsa_extra_rsa_crypt.c
push 0x72
jmp 0x51bfe4
push 0x62
push str....._third_party_boringssl_srccrypto_rsa_extra_rsa_crypt.c
push 0x7e
push 0
push 4
call fcn.00517980
add esp, 0x14
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a927c
mov eax, edi
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
xor edi, edi
push ebx
call fcn.0047d2c0
add esp, 4
jmp 0x51bff2
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
mov dword [ebp - 0x54], eax
add eax, ecx
inc eax
xor ecx, ecx
push ecx
push ebx
push ecx
mov dword [ebp - 0x64], eax
push eax
push edx
push dword [ebp + 0x18]
call fcn.0043f390
add esp, 0x18
test eax, eax
je 0x51c006
mov ebx, dword [ebp - 0x5c]
mov ecx, dword [ebp + 0x14]
sub ebx, ecx
add esi, ebx
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x64]
je 0x51c06d
mov eax, dword [ebp - 0x54]
add eax, edx
push esi
push 0
push eax
mov esi, edx
call fcn.004acae0
mov edx, esi
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov esi, eax
not eax
add ebx, eax
mov byte [edx + ebx], 1
mov edx, dword [ebp + 8]
lea eax, [edx + 1]
mov dword [ebp - 0x58], eax
test ecx, ecx
je 0x51c09d
add edx, esi
add edx, dword [ebp + 0xc]
sub edx, ecx
sub edx, esi
push ecx
push dword [ebp + 0x10]
push edx
call fcn.004ac560
mov esi, dword [ebp - 0x54]
add esp, 0xc
push esi
push dword [ebp - 0x58]
call fcn.0047af70
add esp, 8
test eax, eax
je 0x51c006
mov ebx, dword [ebp - 0x5c]
sub ebx, esi
push ebx
call fcn.0047d270
add esp, 4
test eax, eax
je 0x51c006
mov esi, eax
push edi
push dword [ebp - 0x54]
push dword [ebp - 0x58]
mov dword [ebp - 0x60], ebx
push ebx
push eax
call fcn.00440bf0
add esp, 0x14
test eax, eax
mov ebx, esi
je 0x51c008
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x5c], eax
mov esi, dword [ebp - 0x64]
je 0x51c108
mov eax, dword [ebp - 0x60]
cmp eax, 1
adc eax, 0
xor ecx, ecx
mov dl, byte [ebx + ecx]
xor byte [esi + ecx], dl
inc ecx
cmp eax, ecx
jne 0x51c0fd
pcmpeqd xmm0, xmm0
lea eax, [ebp - 0x50]
movdqu xmmword [eax + 0x30], xmm0
movdqu xmmword [eax + 0x20], xmm0
movdqu xmmword [eax + 0x10], xmm0
movdqu xmmword [eax], xmm0
push edi
push dword [ebp - 0x60]
push esi
mov esi, dword [ebp - 0x54]
push esi
push eax
call fcn.00440bf0
add esp, 0x14
test eax, eax
je 0x51c008
xor edi, edi
inc edi
test esi, esi
je 0x51c00a
mov edx, esi
xor eax, eax
mov esi, dword [ebp - 0x58]
mov cl, byte [ebp + eax - 0x50]
xor byte [esi + eax], cl
inc eax
cmp edx, eax
jne 0x51c14e
jmp 0x51c00a