Function at 0x5d7690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
xorps xmm0, xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
test esi, esi
cmove esi, ecx
movaps xmmword [esp + 0x20], xmm0
mov ecx, dword [ecx + 4]
mov edx, ecx
cmp eax, 0xffffffff
je 0x5d76f7
cmp eax, 0xfffffffe
jne 0x5d76df
mov edx, 0xfffffffe
jmp 0x5d76f7
mov edx, eax
jge 0x5d76f7
push 0x206
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x8a
jmp 0x5d7b47
mov dword [esp + 0x10], esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x1c], ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 4]
mov esi, dword [ecx + 4]
mov eax, esi
sar eax, 0x1f
and eax, esi
mov dword [esp + 8], eax
mov ebx, esi
mov dword [esp + 4], esi
nop dword [eax]
test ebx, ebx
jle 0x5d7731
mov eax, dword [ecx]
mov edi, dword [eax + ebx*4 - 4]
dec ebx
test edi, edi
je 0x5d7720
jmp 0x5d7748
xor ebx, ebx
test esi, esi
jns 0x5d77c9
mov eax, dword [ecx]
mov edx, dword [esp + 8]
lea ebx, [edx - 1]
mov edi, dword [eax + edx*4 - 4]
shl ebx, 5
xor edx, edx
test edi, edi
setne dl
mov esi, edi
shr esi, 0x10
xor eax, eax
cmp edi, 0x10000
cmovb esi, edi
setae al
shl eax, 4
mov dword [esp + 0x14], eax
mov edi, esi
shr edi, 8
xor eax, eax
cmp esi, 0x100
cmovb edi, esi
setae al
mov dword [esp], eax
mov esi, edi
shr esi, 4
xor eax, eax
cmp edi, 0x10
cmovb esi, edi
setae al
mov dword [esp + 0xc], eax
mov edi, esi
shr edi, 2
xor eax, eax
cmp esi, 4
cmovb edi, esi
mov esi, dword [esp + 4]
setae al
or edx, ebx
add edx, dword [esp + 0x14]
mov ebx, dword [esp]
lea edx, [edx + ebx*8]
mov ebx, dword [esp + 0xc]
lea edx, [edx + ebx*4]
cmp edi, 2
lea ebx, [edx + eax*2]
mov edx, dword [ebp + 8]
sbb ebx, 0xffffffff
dec ebx
and ebx, 7
mov eax, dword [edx]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x5d77fb
push edx
call eax
add esp, 4
mov edx, eax
jmp 0x5d7894
mov eax, dword [ecx]
mov edi, dword [eax + esi*4 - 4]
dec esi
test edi, edi
jne 0x5d7817
test esi, esi
jg 0x5d77f0
xor edx, edx
cmp dword [esp + 4], 0
jns 0x5d7894
mov eax, dword [ecx]
mov esi, dword [esp + 8]
mov edi, dword [eax + esi*4 - 4]
dec esi
shl esi, 5
mov dword [esp + 0x14], ebx
mov ebx, edi
shr ebx, 0x10
xor eax, eax
cmp edi, 0x10000
cmovb ebx, edi
setae al
shl eax, 4
mov dword [esp + 4], eax
mov edx, ebx
shr edx, 8
xor eax, eax
cmp ebx, 0x100
cmovb edx, ebx
setae al
mov dword [esp], eax
mov eax, edx
shr eax, 4
xor ebx, ebx
cmp edx, 0x10
cmovb eax, edx
setae bl
mov ecx, eax
shr ecx, 2
xor edx, edx
cmp eax, 4
cmovb ecx, eax
setae dl
cmp edi, 1
sbb esi, 0
add esi, 8
or esi, dword [esp + 4]
cmp ecx, 2
mov eax, dword [esp]
lea eax, [esi + eax*8]
lea eax, [eax + ebx*4]
mov ebx, dword [esp + 0x14]
lea edx, [eax + edx*2]
sbb edx, 0xffffffff
shr edx, 3
mov eax, dword [ebp + 0x18]
movzx eax, byte [eax]
mov ecx, ebx
shr eax, cl
test eax, eax
je 0x5d78b3
push 0x20d
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x7a
jmp 0x5d7b47
xor eax, eax
test ebx, ebx
sete al
mov ecx, edx
mov dword [esp + 4], eax
sub ecx, eax
mov edi, dword [esp + 0x1c]
lea eax, [edi + 2]
cmp ecx, eax
mov eax, dword [esp + 0x38]
jl 0x5d7b1f
add eax, edi
add eax, 2
cmp ecx, eax
jl 0x5d7b1f
mov eax, dword [ebp + 0x18]
mov esi, dword [esp + 4]
add eax, esi
mov dword [esp + 0xc], eax
cmp byte [ecx + eax - 1], 0xbc
jne 0x5d7b2d
mov dword [esp + 8], edx
mov eax, edi
not eax
mov dword [esp + 0x18], eax
add ecx, eax
mov dword [esp], ecx
push ecx
call sym.adb.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x5d7b3b
mov esi, eax
mov eax, dword [esp + 0xc]
mov edx, dword [esp]
add eax, edx
mov ecx, esi
push dword [esp + 0x10]
push edi
mov dword [esp + 0x44], eax
push eax
call fcn.005d6fc0
add esp, 0xc
test eax, eax
je 0x5d7b87
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 4]
neg eax
mov dword [esp + 0x10], eax
cmp dword [esp], 0
mov edi, dword [ebp + 0x18]
jle 0x5d7aac
xor ecx, ecx
mov edx, 0
cmp dword [esp], 8
jb 0x5d7a82
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
add eax, edx
add eax, dword [esp + 4]
add eax, dword [esp + 0x18]
add eax, edi
cmp esi, eax
jae 0x5d799b
mov eax, dword [esp]
add eax, esi
mov edx, 0
cmp dword [esp + 0xc], eax
jb 0x5d7a82
xor edx, edx
cmp dword [esp], 0x20
jb 0x5d7a59
mov eax, dword [esp]
add eax, 0xffffffe0
mov ebx, eax
shr ebx, 5
inc ebx
xor edi, edi
cmp eax, 0x20
jb 0x5d7a1a
mov edx, ebx
and edx, 0xfffffffe
mov eax, dword [ebp + 0x18]
mov edi, dword [esp + 4]
add eax, edi
add eax, 0x30
xor edi, edi
movups xmm0, xmmword [eax + edi - 0x30]
movups xmm1, xmmword [eax + edi - 0x20]
movups xmm2, xmmword [esi + edi]
xorps xmm2, xmm0
movups xmm0, xmmword [esi + edi + 0x10]
xorps xmm0, xmm1
movups xmmword [esi + edi], xmm2
movups xmmword [esi + edi + 0x10], xmm0
movups xmm0, xmmword [eax + edi - 0x10]
movups xmm1, xmmword [eax + edi]
movups xmm2, xmmword [esi + edi + 0x20]
xorps xmm2, xmm0
movups xmm0, xmmword [esi + edi + 0x30]
xorps xmm0, xmm1
movups xmmword [esi + edi + 0x20], xmm2
movups xmmword [esi + edi + 0x30], xmm0
add edi, 0x40
add edx, 0xfffffffe
jne 0x5d79cd
mov eax, dword [esp]
mov edx, eax
and edx, 0xffffffe0
test bl, 1
je 0x5d7a4c
mov ebx, dword [esp + 0xc]
movups xmm0, xmmword [ebx + edi]
movups xmm1, xmmword [ebx + edi + 0x10]
movups xmm2, xmmword [esi + edi]
xorps xmm2, xmm0
movups xmm0, xmmword [esi + edi + 0x10]
xorps xmm0, xmm1
movups xmmword [esi + edi], xmm2
movups xmmword [esi + edi + 0x10], xmm0
cmp eax, edx
mov edi, dword [ebp + 0x18]
je 0x5d7aac
test byte [esp], 0x18
je 0x5d7a82
mov eax, edx
mov edx, dword [esp]
and edx, 0xfffffff8
mov ebx, dword [esp + 0xc]
movsd xmm0, qword [ebx + eax]
movsd xmm1, qword [esi + eax]
xorps xmm1, xmm0
movlps qword [esi + eax], xmm1
add eax, 8
cmp edx, eax
jne 0x5d7a65
cmp dword [esp], edx
je 0x5d7aac
mov eax, dword [esp + 4]
add eax, edx
add edi, eax
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0x10]
add eax, ebx
sub eax, edx
add eax, dword [esp + 0x18]
add edx, esi
nop dword [eax]
movzx ebx, byte [edi + ecx]
xor byte [edx + ecx], bl
inc ecx
cmp eax, ecx
jne 0x5d7aa0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5d7ac1
mov cl, 8
sub cl, al
mov eax, 0xff
shr eax, cl
and byte [esi], al
mov eax, dword [esp]
dec eax
xor ecx, ecx
nop word [eax + eax]
movzx edx, byte [esi + ecx]
lea ebx, [ecx + 1]
test dl, dl
jne 0x5d7ae1
cmp ecx, eax
mov ecx, ebx
jl 0x5d7ad0
cmp dl, 1
jne 0x5d7b8b
mov eax, dword [esp + 0x38]
test eax, eax
js 0x5d7baa
mov ecx, dword [esp + 8]
add ecx, dword [esp + 0x10]
sub ecx, eax
mov eax, dword [esp + 0x18]
add eax, ecx
cmp eax, ebx
je 0x5d7baa
push 0x235
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x8a
jmp 0x5d7b9a
push 0x216
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x71
jmp 0x5d7b47
push 0x21a
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x7f
jmp 0x5d7b47
push 0x221
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x41
push 0
push 4
call sym.adb.exe_ERR_put_error
add esp, 0x14
xor edi, edi
xor esi, esi
push esi
call sym.adb.exe_OPENSSL_free
add esp, 4
push dword [esp + 0x24]
call sym.adb.exe_OPENSSL_free
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x5d7b7d
push dword [esp + 0x28]
call dword [eax]
add esp, 4
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
jmp 0x5d7b57
push 0x231
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x8b
push 0
push 4
call sym.adb.exe_ERR_put_error
add esp, 0x14
xor edi, edi
jmp 0x5d7b57
sub esp, 4
lea eax, [esp + 0x24]
push dword [ebp + 0x10]
push eax
call sym.adb.exe_EVP_DigestInit_ex
add esp, 0xc
xor edi, edi
test eax, eax
je 0x5d7b57
sub dword [esp], ebx
mov eax, dword [esp + 0x20]
push 8
push 0x8bf852
lea ecx, [esp + 0x28]
push ecx
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x20]
push dword [esp + 0x1c]
push dword [ebp + 0xc]
lea ecx, [esp + 0x28]
push ecx
call dword [eax + 0x10]
add esp, 0xc
mov eax, esi
add eax, ebx
mov ecx, dword [esp + 0x20]
push dword [esp]
push eax
lea ebx, [esp + 0x28]
push ebx
call dword [ecx + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x40]
push ecx
push ebx
call dword [eax + 0x14]
add esp, 8
mov eax, dword [esp + 0x20]
push dword [eax + 0x1c]
push dword [esp + 0x28]
call sym.adb.exe_OPENSSL_cleanse
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x5d7c67
push eax
push dword [esp + 0x40]
lea eax, [esp + 0x48]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
je 0x5d7c67
push 0x240
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x69
push 0
push 4
call sym.adb.exe_ERR_put_error
add esp, 0x14
jmp 0x5d7b57
mov edi, 1
jmp 0x5d7b57