Function at 0x51c710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x51c734
call dword [section..00cfg]
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
jmp ecx
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
push ebx
call fcn.00506e20
add esp, 4
cmp eax, esi
jbe 0x51c789
push 0x1dc
push str....._third_party_boringssl_srccrypto_rsa_extra_rsa_crypt.c
push 0x87
push 0
push 4
call fcn.00517980
add esp, 0x14
xor ebx, ebx
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, eax
mov esi, dword [ebp - 0x20]
cmp dword [ebp - 0x10], 3
je 0x51c7a3
push edi
call fcn.0047d270
add esp, 4
mov esi, eax
test eax, eax
je 0x51c7d7
mov eax, dword [ebp - 0x14]
cmp edi, eax
je 0x51c7dd
push 0x1eb
push str....._third_party_boringssl_srccrypto_rsa_extra_rsa_crypt.c
push 0x70
push 0
push 4
call fcn.00517980
add esp, 0x14
xor ebx, ebx
mov edi, dword [ebp - 0x10]
cmp edi, 3
je 0x51c77f
push esi
call fcn.0047d2c0
add esp, 4
jmp 0x51c77f
xor ebx, ebx
xor esi, esi
jmp 0x51c7cc
push eax
push dword [ebp - 0x18]
push esi
push ebx
call fcn.00507e60
add esp, 0x10
xor ebx, ebx
test eax, eax
mov edi, dword [ebp - 0x10]
je 0x51c7c7
cmp edi, 1
je 0x51c836
cmp edi, 3
mov eax, dword [ebp - 0x14]
je 0x51c829
cmp edi, 4
je 0x51c967
push 0x202
push str....._third_party_boringssl_srccrypto_rsa_extra_rsa_crypt.c
push 0x8f
push 0
push 4
call fcn.00517980
add esp, 0x14
xor ebx, ebx
jmp 0x51c7cc
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
xor ebx, ebx
inc ebx
jmp 0x51c77f
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x51c850
cmp ecx, 0xa
ja 0x51c8aa
push 0x125
push str....._third_party_boringssl_srccrypto_rsa_extra_rsa_crypt.c
push 0x7e
jmp 0x51c85c
push 0x11c
push str....._third_party_boringssl_srccrypto_rsa_extra_rsa_crypt.c
push pe_nt_image_headers32
push 0
push 4
call fcn.00517980
add esp, 0x14
push 0x208
push str....._third_party_boringssl_srccrypto_rsa_extra_rsa_crypt.c
push 0x88
push 0
push 4
call fcn.00517980
add esp, 0x14
jmp 0x51c7c7
push 0x14a
push str....._third_party_boringssl_srccrypto_rsa_extra_rsa_crypt.c
push 0x89
push 0
push 4
call fcn.00517980
add esp, 0x14
mov esi, edi
mov edi, dword [ebp - 0x10]
jmp 0x51c868
movzx eax, byte [esi]
mov dword [ebp - 0x28], eax
movzx eax, byte [esi + 1]
xor eax, 2
mov dword [ebp - 0x24], eax
xor eax, eax
xor ecx, ecx
dec ecx
mov ebx, 2
mov dword [ebp - 0x18], esi
mov edx, eax
mov esi, ecx
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax + ebx]
dec ecx
sar ecx, 0x1f
mov edi, ecx
and edi, esi
mov eax, ebx
xor eax, edx
and eax, edi
xor eax, edx
not ecx
and ecx, esi
inc ebx
cmp dword [ebp - 0x14], ebx
jne 0x51c8c7
mov edi, dword [ebp - 0x18]
lea edx, [eax - 0xa]
mov esi, eax
not esi
test edx, esi
mov ebx, 0
js 0x51c888
mov edx, dword [ebp - 0x28]
dec edx
mov esi, dword [ebp - 0x24]
dec esi
and esi, edx
jns 0x51c888
cmp ecx, 0xffffffff
je 0x51c888
inc eax
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov esi, edi
jae 0x51c942
push 0x152
push str....._third_party_boringssl_srccrypto_rsa_extra_rsa_crypt.c
push 0x89
push 0
push 4
call fcn.00517980
add esp, 0x14
jmp 0x51c8a5
mov edi, dword [ebp - 0x10]
je 0x51c95a
add eax, esi
push ecx
push eax
push dword [ebp - 0x20]
mov ebx, ecx
call fcn.004ac560
mov ecx, ebx
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov dword [eax], ecx
xor ebx, ebx
inc ebx
jmp 0x51c7c7
sub esp, 0x24
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.0051c160
add esp, 0x24
test eax, eax
je 0x51c868
xor ebx, ebx
inc ebx
jmp 0x51c7cc