Function at 0x5da660
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebp, dword [esp + 0x40]
push ebp
call fcn.005db670
add esp, 4
xor esi, esi
test eax, eax
je 0x5da7d5
mov eax, dword [ebp]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x5da69d
push ebp
call eax
add esp, 4
cmp eax, dword [esp + 0x4c]
ja 0x5da754
jmp 0x5da765
mov edi, dword [ebp + 4]
mov ebx, dword [edi + 4]
mov edx, ebx
sar edx, 0x1f
and edx, ebx
mov eax, ebx
nop dword [eax]
test eax, eax
jle 0x5da6c1
mov ecx, dword [edi]
mov ecx, dword [ecx + eax*4 - 4]
dec eax
test ecx, ecx
je 0x5da6b0
jmp 0x5da6d4
xor eax, eax
test ebx, ebx
jns 0x5da765
mov eax, dword [edi]
mov ecx, dword [eax + edx*4 - 4]
dec edx
mov eax, edx
shl eax, 5
mov edi, ecx
shr edi, 0x10
xor ebx, ebx
cmp ecx, 0x10000
setae bl
cmovb edi, ecx
shl ebx, 4
mov ebp, edi
shr ebp, 8
xor edx, edx
cmp edi, 0x100
setae dl
mov dword [esp], edx
cmovb ebp, edi
mov edi, ebp
shr edi, 4
xor edx, edx
cmp ebp, 0x10
cmovb edi, ebp
setae dl
mov esi, edx
mov ebp, edi
shr ebp, 2
xor edx, edx
cmp edi, 4
cmovb ebp, edi
setae dl
cmp ecx, 1
sbb eax, 0
add eax, 8
or eax, ebx
cmp ebp, 2
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp]
lea eax, [eax + ecx*8]
lea eax, [eax + esi*4]
mov esi, 0
lea eax, [eax + edx*2]
sbb eax, 0xffffffff
shr eax, 3
cmp eax, dword [esp + 0x4c]
jbe 0x5da765
push 0x264
push str.external_boringssl_src_crypto_fipsmodule_rsa_rsa_impl.c
push 0x87
jmp 0x5da7c9
cmp eax, dword [esp + 0x54]
jne 0x5da7bd
push 0x18
call sym.adb.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x5da7df
mov edi, eax
pxor xmm0, xmm0
movdqu xmmword [eax], xmm0
mov dword [eax + 0x12], 0
mov dword [eax + 0xe], 0
push 0x80
push 0
call sym.adb.exe_OPENSSL_realloc
add esp, 8
test eax, eax
je 0x5da7ee
mov dword [edi + 4], eax
mov dword [edi + 0xc], 0x20
mov ecx, dword [edi + 8]
mov dword [eax + ecx*4], 0
inc dword [edi + 8]
jmp 0x5da7f4
push 0x269
push str.external_boringssl_src_crypto_fipsmodule_rsa_rsa_impl.c
push 0x70
push 0
push 4
call sym.adb.exe_ERR_put_error
add esp, 0x14
mov eax, esi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x6f
push str.external_boringssl_src_crypto_fipsmodule_bn_ctx.c
push 0x41
push 0
push 3
jmp 0x5da7cd
mov word [edi + 0x14], 0x101
push edi
call sym.adb.exe_BN_CTX_get
add esp, 4
mov ebx, eax
push edi
call sym.adb.exe_BN_CTX_get
add esp, 4
test ebx, ebx
je 0x5da8fd
mov esi, eax
test eax, eax
je 0x5da8fd
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc], eax
cmp dword [esp + 0x58], 3
je 0x5da841
push dword [esp + 0x54]
call sym.adb.exe_OPENSSL_malloc
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x5da954
push ebx
push dword [esp + 0x58]
push dword [esp + 0x58]
call sym.adb.exe_BN_bin2bn
add esp, 0xc
test eax, eax
je 0x5da922
mov dword [esp + 0x24], esi
mov dword [esp + 4], edi
mov eax, dword [ebp + 4]
mov ebp, dword [ebx]
mov dword [esp + 0x20], ebx
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov dword [esp], edx
mov dword [esp + 0x28], eax
mov esi, dword [eax + 4]
cmp ecx, esi
mov eax, esi
mov dword [esp + 8], esi
mov dword [esp + 0x14], ecx
cmovb esi, ecx
xor eax, eax
test esi, esi
je 0x5da8d4
xor edi, edi
nop word cs:[eax + eax]
mov ebx, dword [ebp + edi*4]
mov edx, ebp
mov ecx, dword [esp]
mov ebp, dword [ecx + edi*4]
mov ecx, eax
mov eax, ebx
sub eax, ebp
xor ebp, ebx
xor eax, ebx
or eax, ebp
xor eax, ebx
mov ebx, eax
sar ebx, 0x1f
not eax
shr eax, 0x1f
or eax, ebx
test ebp, ebp
mov ebp, edx
cmovne ecx, eax
mov eax, ecx
inc edi
cmp esi, edi
jne 0x5da8a0
mov edx, dword [esp + 0x14]
mov ecx, edx
mov esi, dword [esp + 8]
sub ecx, esi
jae 0x5da931
mov dword [esp + 0x10], eax
mov ebp, esi
sub ebp, edx
xor eax, eax
cmp ebp, 8
jae 0x5da95b
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp]
jmp 0x5daa97
push 0x279
push str.external_boringssl_src_crypto_fipsmodule_rsa_rsa_impl.c
push 0x41
push 0
push 4
call sym.adb.exe_ERR_put_error
add esp, 0x14
xor esi, esi
xor ebp, ebp
mov ebx, dword [esp + 0x48]
jmp 0x5dabeb
xor esi, esi
mov ebp, dword [esp + 0xc]
mov ebx, dword [esp + 0x48]
jmp 0x5dabeb
jbe 0x5da985
mov dword [esp], ebp
xor esi, esi
cmp ecx, 8
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x10], eax
jae 0x5da996
mov ecx, ebp
mov edi, dword [esp + 4]
jmp 0x5daba4
push 0x283
jmp 0x5da902
lea eax, [ebp - 8]
mov edi, eax
shr edi, 3
inc edi
mov ecx, edi
and ecx, 3
cmp eax, 0x18
mov dword [esp + 0x1c], ecx
jae 0x5da9bc
pxor xmm0, xmm0
xor eax, eax
pxor xmm1, xmm1
mov ebx, dword [esp + 0x48]
jmp 0x5daa2d
mov edi, dword [esp + 4]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x40]
jmp 0x5dabc9
lea eax, [ecx - 8]
mov edi, eax
shr edi, 3
inc edi
mov edx, edi
and edx, 3
cmp eax, 0x18
jae 0x5daac6
pxor xmm0, xmm0
xor ebp, ebp
pxor xmm1, xmm1
jmp 0x5dab3b
and edi, 0xfffffffc
mov eax, dword [esp]
lea esi, [eax + edx*4]
add esi, 0x70
pxor xmm0, xmm0
xor eax, eax
pxor xmm1, xmm1
mov ebx, dword [esp + 0x48]
movdqu xmm2, xmmword [esi + eax*4 - 0x70]
por xmm2, xmm0
movdqu xmm0, xmmword [esi + eax*4 - 0x60]
por xmm0, xmm1
movdqu xmm1, xmmword [esi + eax*4 - 0x50]
movdqu xmm3, xmmword [esi + eax*4 - 0x40]
movdqu xmm4, xmmword [esi + eax*4 - 0x30]
por xmm4, xmm1
por xmm4, xmm2
movdqu xmm2, xmmword [esi + eax*4 - 0x20]
por xmm2, xmm3
por xmm2, xmm0
movdqu xmm0, xmmword [esi + eax*4 - 0x10]
por xmm0, xmm4
movdqu xmm1, xmmword [esi + eax*4]
por xmm1, xmm2
add eax, 0x20
add edi, 0xfffffffc
jne 0x5da9d6
mov dword [esp + 0x18], ebp
mov edi, ebp
and edi, 0xfffffff8
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov ebp, dword [esp]
je 0x5daa6b
add eax, edx
lea eax, [eax*4 + 0x10]
add eax, ebp
shl ecx, 5
xor esi, esi
movdqu xmm2, xmmword [eax + esi - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [eax + esi]
por xmm1, xmm2
add esi, 0x20
cmp ecx, esi
jne 0x5daa51
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd eax, xmm0
cmp dword [esp + 0x18], edi
jne 0x5daa91
mov edi, dword [esp + 4]
jmp 0x5daaa9
add edx, edi
mov esi, dword [esp + 8]
mov edi, dword [esp + 4]
nop dword [eax + eax]
or eax, dword [ebp + edx*4]
inc edx
cmp esi, edx
jne 0x5daaa0
mov edx, eax
not edx
dec eax
and eax, edx
sar eax, 0x1f
not eax
mov ecx, dword [esp + 0x10]
or ecx, eax
mov eax, ecx
mov ebp, dword [esp + 0x40]
jmp 0x5dabc9
and edi, 0xfffffffc
mov eax, dword [esp + 8]
mov ebp, edx
mov edx, dword [esp]
lea esi, [edx + eax*4]
add esi, 0x70
mov edx, ebp
pxor xmm0, xmm0
xor ebp, ebp
pxor xmm1, xmm1
movdqu xmm2, xmmword [esi + ebp*4 - 0x70]
por xmm2, xmm0
movdqu xmm0, xmmword [esi + ebp*4 - 0x60]
por xmm0, xmm1
movdqu xmm1, xmmword [esi + ebp*4 - 0x50]
movdqu xmm3, xmmword [esi + ebp*4 - 0x40]
movdqu xmm4, xmmword [esi + ebp*4 - 0x30]
por xmm4, xmm1
por xmm4, xmm2
movdqu xmm2, xmmword [esi + ebp*4 - 0x20]
por xmm2, xmm3
por xmm2, xmm0
movdqu xmm0, xmmword [esi + ebp*4 - 0x10]
por xmm0, xmm4
movdqu xmm1, xmmword [esi + ebp*4]
por xmm1, xmm2
add ebp, 0x20
add edi, 0xfffffffc
jne 0x5daae4
mov edi, ecx
and edi, 0xfffffff8
test edx, edx
je 0x5dab70
add ebp, dword [esp + 8]
mov eax, dword [esp]
lea esi, [eax + ebp*4]
add esi, 0x10
shl edx, 5
xor ebp, ebp
movdqu xmm2, xmmword [esi + ebp - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [esi + ebp]
por xmm1, xmm2
add ebp, 0x20
cmp edx, ebp
jne 0x5dab56
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd esi, xmm0
cmp ecx, edi
jne 0x5dab98
mov edi, dword [esp + 4]
mov ecx, dword [esp + 0x40]
jmp 0x5dabb7
add dword [esp + 8], edi
mov edi, dword [esp + 4]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 8]
mov edx, dword [esp]
mov ebp, dword [esp + 0x14]
or esi, dword [edx + eax*4]
inc eax
cmp ebp, eax
jne 0x5dabaf
xor edx, edx
xor eax, eax
test esi, esi
cmove edx, dword [esp + 0x10]
setne al
or eax, edx
mov ebp, ecx
test eax, eax
js 0x5dac42
push 0x28d
push str.external_boringssl_src_crypto_fipsmodule_rsa_rsa_impl.c
push 0x73
push 0
push 4
call sym.adb.exe_ERR_put_error
add esp, 0x14
xor esi, esi
mov ebp, dword [esp + 0xc]
cmp byte [edi + 0x14], 0
jne 0x5dac04
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
lea edx, [ecx - 1]
mov dword [edi + 8], edx
mov eax, dword [eax + ecx*4 - 4]
mov dword [edi + 0x10], eax
push sym.adb.exe_BN_free
push 0x5e5450
push dword [edi]
call sym.adb.exe_sk_pop_free_ex
add esp, 0xc
push dword [edi + 4]
call sym.adb.exe_OPENSSL_free
add esp, 4
push edi
call sym.adb.exe_OPENSSL_free
add esp, 4
cmp ebp, ebx
je 0x5da7d5
push ebp
call sym.adb.exe_OPENSSL_free
add esp, 4
jmp 0x5da7d5
lea eax, [ebp + 0x34]
lea ecx, [ebp + 0x30]
push edi
push dword [esp + 0x2c]
push ecx
push eax
call fcn.005b0570
add esp, 0x10
xor esi, esi
test eax, eax
je 0x5dabe7
mov eax, dword [ebp + 0x34]
push eax
add eax, 0x14
push edi
push eax
push dword [ebp + 8]
push dword [esp + 0x30]
mov ebp, dword [esp + 0x38]
push ebp
call sym.adb.exe_BN_mod_exp_mont
add esp, 0x18
test eax, eax
je 0x5dabe7
push ebp
push dword [esp + 0x58]
mov ebp, dword [esp + 0x14]
push ebp
call sym.adb.exe_BN_bn2bin_padded
add esp, 0xc
test eax, eax
je 0x5dacc9
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x58]
cmp ecx, 3
je 0x5dacd7
cmp ecx, 1
jne 0x5dace7
mov ecx, dword [esp + 0x54]
push ecx
push ebp
push ecx
push eax
push ebx
call fcn.005d67a0
add esp, 0x14
test eax, eax
je 0x5dacf8
mov esi, 1
jmp 0x5dabeb
push 0x297
push str.external_boringssl_src_crypto_fipsmodule_rsa_rsa_impl.c
push 0x44
jmp 0x5dad07
mov ecx, dword [esp + 0x54]
mov dword [eax], ecx
mov esi, 1
jmp 0x5dabeb
push 0x2a5
push str.external_boringssl_src_crypto_fipsmodule_rsa_rsa_impl.c
push 0x8f
jmp 0x5dad07
push 0x2aa
push str.external_boringssl_src_crypto_fipsmodule_rsa_rsa_impl.c
push 0x88
push 0
push 4
call sym.adb.exe_ERR_put_error
add esp, 0x14
jmp 0x5dabeb