Function at 0x5d7140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov edi, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x18]
test edx, edx
jne 0x5d7177
push 0x5be020
push 0x9b6e38
mov esi, ecx
call sym.adb.exe_CRYPTO_once
mov ecx, esi
add esp, 8
mov edx, 0x9b6e3c
test edi, edi
cmove edi, edx
mov ebx, dword [edx + 4]
lea eax, [ebx + ebx]
add eax, 2
xor esi, esi
cmp eax, ecx
jbe 0x5d71ab
push 0x1e0
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x85
push 0
push 4
call sym.adb.exe_ERR_put_error
add esp, 0x14
jmp 0x5d7641
mov dword [esp + 8], edx
mov esi, ebx
not esi
add esi, ecx
push esi
call sym.adb.exe_OPENSSL_malloc
add esp, 4
mov dword [esp + 4], eax
test eax, eax
je 0x5d730e
mov eax, dword [ebp + 0x14]
add eax, ebx
inc eax
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
lea ecx, [esp + 0x20]
mov edx, ebx
push edi
mov dword [esp + 0x14], esi
push esi
mov dword [esp + 0x14], eax
push eax
call fcn.005d6fc0
add esp, 0xc
test eax, eax
je 0x5d763d
test ebx, ebx
mov edx, ebx
je 0x5d733e
mov eax, dword [ebp + 0x14]
inc eax
xor ecx, ecx
cmp edx, 8
jb 0x5d7331
xor ecx, ecx
cmp edx, 0x20
jb 0x5d72dc
lea ecx, [edx - 0x20]
mov edx, ecx
shr edx, 5
inc edx
mov dword [esp + 0x14], edx
xor edx, edx
cmp ecx, 0x20
mov esi, dword [ebp + 0x14]
jb 0x5d72a0
mov ecx, dword [esp + 0x14]
and ecx, 0xfffffffe
xor edx, edx
nop dword [eax]
movups xmm0, xmmword [esi + edx + 1]
movups xmm1, xmmword [esi + edx + 0x11]
movups xmm2, xmmword [esp + edx + 0x20]
xorps xmm2, xmm0
movups xmm0, xmmword [esp + edx + 0x30]
xorps xmm0, xmm1
movups xmmword [esp + edx + 0x20], xmm2
movups xmmword [esp + edx + 0x30], xmm0
movups xmm0, xmmword [esi + edx + 0x21]
movups xmm1, xmmword [esi + edx + 0x31]
movups xmm2, xmmword [esp + edx + 0x40]
xorps xmm2, xmm0
movups xmm0, xmmword [esp + edx + 0x50]
xorps xmm0, xmm1
movups xmmword [esp + edx + 0x40], xmm2
movups xmmword [esp + edx + 0x50], xmm0
add edx, 0x40
add ecx, 0xfffffffe
jne 0x5d7250
mov esi, ebx
mov ecx, ebx
and ecx, 0xffffffe0
test byte [esp + 0x14], 1
je 0x5d72d1
movups xmm0, xmmword [eax + edx]
movups xmm1, xmmword [eax + edx + 0x10]
movups xmm2, xmmword [esp + edx + 0x20]
xorps xmm2, xmm0
movups xmm0, xmmword [esp + edx + 0x30]
xorps xmm0, xmm1
movups xmmword [esp + edx + 0x20], xmm2
movups xmmword [esp + edx + 0x30], xmm0
cmp esi, ecx
mov edx, esi
je 0x5d733e
test dl, 0x18
je 0x5d7331
mov esi, edx
mov edx, ecx
mov ecx, esi
and ecx, 0xfffffff8
nop word cs:[eax + eax]
movsd xmm0, qword [eax + edx]
movsd xmm1, qword [esp + edx + 0x20]
xorps xmm1, xmm0
movlps qword [esp + edx + 0x20], xmm1
add edx, 8
cmp ecx, edx
jne 0x5d72f0
mov edx, ebx
jmp 0x5d732d
push 0x1a0
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 esi, esi
jmp 0x5d7641
cmp ebx, ecx
je 0x5d733e
movzx edx, byte [eax + ecx]
xor byte [esp + ecx + 0x20], dl
mov edx, ebx
inc ecx
jmp 0x5d732d
mov ecx, dword [esp + 4]
mov esi, dword [esp + 0x10]
mov eax, edx
mov edx, esi
push edi
push eax
lea eax, [esp + 0x28]
push eax
call fcn.005d6fc0
add esp, 0xc
test eax, eax
je 0x5d763d
test esi, esi
mov ecx, esi
mov esi, dword [esp + 4]
mov edi, dword [esp + 0xc]
je 0x5d7486
xor edx, edx
cmp ecx, 8
jb 0x5d747c
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
add eax, edi
mov edi, dword [esp + 0xc]
cmp esi, eax
jae 0x5d7399
lea eax, [esi + ecx]
cmp edi, eax
jb 0x5d747c
xor edx, edx
cmp ecx, 0x20
jb 0x5d7458
add ecx, 0xffffffe0
mov eax, ecx
shr eax, 5
inc eax
mov edi, esi
xor esi, esi
cmp ecx, 0x20
jb 0x5d7415
mov edx, eax
and edx, 0xfffffffe
mov ecx, ebx
mov esi, dword [ebp + 0x14]
lea ecx, [ebx + esi]
add ecx, 0x31
xor esi, esi
movups xmm0, xmmword [ecx + esi - 0x30]
movups xmm1, xmmword [ecx + esi - 0x20]
movups xmm2, xmmword [edi + esi]
xorps xmm2, xmm0
movups xmm0, xmmword [edi + esi + 0x10]
xorps xmm0, xmm1
movups xmmword [edi + esi], xmm2
movups xmmword [edi + esi + 0x10], xmm0
movups xmm0, xmmword [ecx + esi - 0x10]
movups xmm1, xmmword [ecx + esi]
movups xmm2, xmmword [edi + esi + 0x20]
xorps xmm2, xmm0
movups xmm0, xmmword [edi + esi + 0x30]
xorps xmm0, xmm1
movups xmmword [edi + esi + 0x20], xmm2
movups xmmword [edi + esi + 0x30], xmm0
add esi, 0x40
add edx, 0xfffffffe
jne 0x5d73c8
mov ecx, dword [esp + 0x10]
mov edx, ecx
and edx, 0xffffffe0
test al, 1
mov edi, dword [esp + 0xc]
je 0x5d744b
movups xmm0, xmmword [edi + esi]
movups xmm1, xmmword [edi + esi + 0x10]
mov eax, dword [esp + 4]
movups xmm2, xmmword [eax + esi]
xorps xmm2, xmm0
movups xmm0, xmmword [eax + esi + 0x10]
xorps xmm0, xmm1
movups xmmword [eax + esi], xmm2
movups xmmword [eax + esi + 0x10], xmm0
cmp ecx, edx
mov esi, dword [esp + 4]
je 0x5d7486
test cl, 0x18
je 0x5d747c
mov eax, edx
mov edx, ecx
and edx, 0xfffffff8
nop
movsd xmm0, qword [edi + eax]
movsd xmm1, qword [esi + eax]
xorps xmm1, xmm0
movlps qword [esi + eax], xmm1
add eax, 8
cmp edx, eax
jne 0x5d7460
cmp ecx, edx
je 0x5d7486
movzx eax, byte [edi + edx]
xor byte [esi + edx], al
inc edx
jmp 0x5d7478
xorps xmm0, xmm0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
sub esp, 4
lea esi, [esp + 0x64]
push dword [esp + 0xc]
push 0
push esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call sym.adb.exe_EVP_Digest
add esp, 0x18
test eax, eax
je 0x5d763d
push ebx
push esi
push dword [esp + 0xc]
call sym.adb.exe_CRYPTO_memcmp
mov edi, ebx
add esp, 0xc
mov ecx, eax
not ecx
dec eax
and eax, ecx
mov ecx, dword [ebp + 0x14]
movzx ebx, byte [ecx]
dec ebx
and ebx, eax
sar ebx, 0x1f
not ebx
cmp edi, dword [esp + 0x10]
jae 0x5d7515
lea eax, [edi + edi]
mov esi, eax
not esi
mov ecx, dword [ebp + 0x18]
add esi, ecx
add ecx, 0xfffffffe
cmp ecx, eax
mov dword [esp + 0x18], esi
jne 0x5d7530
mov ecx, 0xffffffff
xor eax, eax
jmp 0x5d75da
mov eax, 1
mov ecx, 0xffffffff
or ebx, ecx
je 0x5d7618
mov esi, dword [esp + 4]
jmp 0x5d718b
and esi, 0xfffffffe
mov ecx, 0xffffffff
xor eax, eax
nop word [eax + eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 8], edi
mov dword [esp + 0x14], esi
mov edx, dword [esp + 8]
xor edx, eax
mov esi, dword [esp + 8]
mov edi, dword [esp + 4]
movzx ebx, byte [edi + esi]
cmp bl, 1
mov esi, 0
cmove esi, ecx
mov edi, 0
cmove ecx, edi
xor edi, edi
and esi, edx
xor esi, eax
test bl, bl
mov edx, ecx
cmove edx, edi
mov eax, dword [esp + 8]
mov edi, dword [esp + 4]
movzx eax, byte [edi + eax + 1]
mov byte [esp + 0xc], al
or edx, dword [esp + 0x1c]
mov eax, dword [esp + 8]
lea ebx, [eax + 1]
xor ebx, esi
cmp byte [esp + 0xc], 1
mov eax, 0
cmove eax, ecx
mov edi, 0
cmove ecx, edi
and eax, ebx
xor eax, esi
mov esi, dword [esp + 0x14]
cmp byte [esp + 0xc], 0
mov ebx, ecx
mov edi, 0
cmove ebx, edi
or ebx, edx
mov edi, dword [esp + 8]
add edi, 2
add esi, 0xfffffffe
jne 0x5d7540
test byte [esp + 0x18], 1
je 0x5d760f
mov edx, dword [esp + 4]
movzx edx, byte [edx + edi]
mov byte [esp + 8], dl
xor edi, eax
xor edx, edx
cmp byte [esp + 8], 1
mov esi, 0
cmove esi, ecx
cmove ecx, edx
and esi, edi
xor eax, esi
cmp byte [esp + 8], 0
cmovne edx, ecx
or ebx, edx
inc eax
or ebx, ecx
jne 0x5d7527
mov ecx, dword [esp + 0x10]
mov ebx, ecx
sub ebx, eax
cmp ebx, dword [ebp + 0x10]
jbe 0x5d7654
push 0x1d3
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x71
push 0
push 4
call sym.adb.exe_ERR_put_error
add esp, 0x14
mov esi, dword [esp + 4]
push esi
call sym.adb.exe_OPENSSL_free
add esp, 4
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [ebp + 0xc]
cmp ecx, eax
je 0x5d766e
mov ecx, dword [esp + 4]
add ecx, eax
push ebx
push ecx
push dword [ebp + 8]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov dword [esi], ebx
push dword [esp + 4]
call sym.adb.exe_OPENSSL_free
add esp, 4
mov eax, 1
jmp 0x5d764c