Function at 0x505c00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [0x7024bc]
xor ecx, ebp
mov dword [esp + 0x68], ecx
test eax, eax
jne 0x505c3c
push 0x4f1350
push 0x7054ac
call fcn.0057fb00
add esp, 8
mov eax, 0x7054b0
test esi, esi
cmove esi, eax
mov edx, dword [eax + 4]
lea ecx, [edx + edx]
add ecx, 2
cmp ecx, ebx
jbe 0x505c55
push 0x14a
jmp 0x505c88
mov dword [esp + 8], edx
lea ecx, [edx + edx]
mov edi, ecx
not edi
lea edx, [ebx + edi]
add edx, 0xffffffff
cmp edx, dword [ebp + 0x14]
jae 0x505c79
push 0x150
push str..._.._third_party_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x72
jmp 0x505c8f
lea edx, [ebx - 1]
or ecx, 1
cmp edx, ecx
jae 0x505cb2
push 0x155
push str..._.._third_party_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x7e
push 0
push 4
call fcn.004d86c0
add esp, 0x14
xor edi, edi
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0064180a
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x18], edx
mov edx, dword [ebp + 8]
mov byte [edx], 0
mov ecx, dword [esp + 8]
add ecx, edx
add ecx, 1
sub esp, 4
push eax
push 0
mov dword [esp + 0x1c], ecx
push ecx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.004f1240
add esp, 0x18
test eax, eax
je 0x505c9b
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x14]
sub eax, ecx
mov dword [esp + 0xc], eax
add edi, eax
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
je 0x505d18
mov eax, dword [esp + 8]
add eax, edx
push edi
push 0
push eax
call fcn.00645dd0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x14]
add esp, 0xc
not eax
mov edi, dword [esp + 0xc]
add edi, eax
mov byte [edx + edi], 1
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
test ecx, ecx
mov ecx, dword [esp + 8]
mov edi, dword [esp + 0x18]
je 0x505d5c
mov eax, dword [esp + 0x10]
add eax, edi
sub eax, dword [ebp + 0x14]
sub eax, ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
mov edi, edx
call fcn.006452d0
mov edx, edi
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
add esp, 0xc
mov dword [esp + 0x1c], edx
push 0x68d2c1
push ecx
push edx
call fcn.004eed60
add esp, 0xc
sub edi, dword [esp + 8]
push edi
call fcn.005166d0
add esp, 4
test eax, eax
mov edx, edi
mov edi, 0
je 0x505dd2
mov dword [esp + 0xc], eax
mov ecx, eax
mov edi, edx
push esi
push dword [esp + 0xc]
push dword [esp + 0x24]
call fcn.00506050
add esp, 0xc
test eax, eax
je 0x505def
mov dword [esp + 0x14], 0
test edi, edi
mov edx, dword [esp + 8]
mov ecx, edi
mov edi, dword [esp + 0x10]
je 0x505f16
xor eax, eax
cmp ecx, 0x1f
mov edi, ecx
ja 0x505dfc
mov ecx, edi
mov edi, dword [esp + 0x10]
jmp 0x505f00
push 0x169
push str..._.._third_party_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x41
push 0
push 4
call fcn.004d86c0
add esp, 0x14
jmp 0x505c9d
mov dword [esp + 0x14], 0
jmp 0x50602f
mov ecx, dword [esp + 0xc]
add ecx, edi
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x10]
cmp edi, ecx
mov ecx, dword [esp + 0x18]
jae 0x505e1f
add ebx, dword [ebp + 8]
cmp dword [esp + 0xc], ebx
jb 0x505f00
mov eax, ecx
and eax, 0xffffffe0
lea edx, [eax - 0x20]
mov ecx, edx
shr ecx, 5
add ecx, 1
test edx, edx
mov dword [esp + 0x14], ecx
je 0x505ea3
mov edx, dword [esp + 8]
mov edi, dword [ebp + 8]
add edi, edx
add edi, 0x31
mov ebx, ecx
and ebx, 0xfffffffe
neg ebx
xor edx, edx
mov ecx, dword [esp + 0xc]
movups xmm0, xmmword [ecx + edx]
movups xmm1, xmmword [ecx + edx + 0x10]
movups xmm2, xmmword [edi + edx - 0x30]
xorps xmm2, xmm0
movups xmm0, xmmword [edi + edx - 0x20]
xorps xmm0, xmm1
movups xmmword [edi + edx - 0x30], xmm2
movups xmmword [edi + edx - 0x20], xmm0
movups xmm0, xmmword [ecx + edx + 0x20]
movdqu xmm1, xmmword [ecx + edx + 0x30]
movups xmm2, xmmword [edi + edx - 0x10]
xorps xmm2, xmm0
movdqu xmm0, xmmword [edi + edx]
pxor xmm0, xmm1
movups xmmword [edi + edx - 0x10], xmm2
movdqu xmmword [edi + edx], xmm0
add edx, 0x40
add ebx, 2
jne 0x505e50
jmp 0x505ea5
xor edx, edx
test byte [esp + 0x14], 1
mov dword [esp + 0x14], 0
je 0x505ee1
mov ecx, dword [esp + 0xc]
movups xmm0, xmmword [ecx + edx]
movdqu xmm1, xmmword [ecx + edx + 0x10]
mov ecx, dword [esp + 0x10]
movups xmm2, xmmword [ecx + edx]
xorps xmm2, xmm0
movdqu xmm0, xmmword [ecx + edx + 0x10]
pxor xmm0, xmm1
movups xmmword [ecx + edx], xmm2
movdqu xmmword [ecx + edx + 0x10], xmm0
mov ecx, dword [esp + 0x18]
cmp ecx, eax
mov edx, dword [esp + 8]
mov edi, dword [esp + 0x10]
je 0x505f16
nop word cs:[eax + eax]
nop dword [eax + eax]
mov ebx, ecx
mov ecx, dword [esp + 0xc]
movzx ecx, byte [ecx + eax]
xor byte [edi + eax], cl
mov ecx, ebx
add eax, 1
cmp ebx, eax
jne 0x505f00
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
mov eax, ecx
lea ecx, [esp + 0x20]
mov ebx, edx
push esi
push eax
push edi
call fcn.00506050
add esp, 0xc
test eax, eax
mov edi, dword [esp + 0xc]
je 0x506033
mov dword [esp + 0x14], 1
test ebx, ebx
je 0x506033
xor eax, eax
cmp ebx, 0x1f
jbe 0x50601b
mov eax, ebx
and eax, 0xffffffe0
lea ecx, [eax - 0x20]
mov edx, ecx
shr edx, 5
add edx, 1
test ecx, ecx
je 0x505fe2
mov esi, edx
and esi, 0xfffffffe
neg esi
xor ecx, ecx
mov ebx, dword [ebp + 8]
movups xmm0, xmmword [esp + ecx + 0x20]
movups xmm1, xmmword [esp + ecx + 0x30]
movups xmm2, xmmword [ebx + ecx + 1]
xorps xmm2, xmm0
movups xmm0, xmmword [ebx + ecx + 0x11]
xorps xmm0, xmm1
movups xmmword [ebx + ecx + 1], xmm2
movups xmmword [ebx + ecx + 0x11], xmm0
movups xmm0, xmmword [esp + ecx + 0x40]
movdqu xmm1, xmmword [esp + ecx + 0x50]
movups xmm2, xmmword [ebx + ecx + 0x21]
xorps xmm2, xmm0
movdqu xmm0, xmmword [ebx + ecx + 0x31]
pxor xmm0, xmm1
movups xmmword [ebx + ecx + 0x21], xmm2
movdqu xmmword [ebx + ecx + 0x31], xmm0
add ecx, 0x40
add esi, 2
jne 0x505f8c
jmp 0x505fe4
xor ecx, ecx
test dl, 1
je 0x506013
movups xmm0, xmmword [esp + ecx + 0x20]
movdqu xmm1, xmmword [esp + ecx + 0x30]
mov edx, dword [esp + 0x1c]
movups xmm2, xmmword [edx + ecx]
xorps xmm2, xmm0
movdqu xmm0, xmmword [edx + ecx + 0x10]
pxor xmm0, xmm1
movups xmmword [edx + ecx], xmm2
movdqu xmmword [edx + ecx + 0x10], xmm0
mov ebx, dword [esp + 8]
cmp ebx, eax
je 0x50602f
mov edx, dword [esp + 0x1c]
nop
movzx ecx, byte [esp + eax + 0x20]
xor byte [edx + eax], cl
add eax, 1
cmp ebx, eax
jne 0x506020
mov edi, dword [esp + 0xc]
push edi
call fcn.00516700
add esp, 4
mov edi, dword [esp + 0x14]
jmp 0x505c9d