Function at 0x6ebe4810
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1ec
mov ebx, dword [esp + 0x200]
mov edi, dword [esp + 0x21c]
test ebx, ebx
je 0x6ebe4e38
test edi, edi
je 0x6ebe4e1c
mov eax, dword [esp + 0x214]
mov dword [edi], 0
mov dword [esp], eax
call fcn.6ebe2380
test eax, eax
mov ebx, eax
jne 0x6ebe4948
mov edx, dword [esp + 0x218]
xor ebx, ebx
lea ecx, [edx - 1]
test cl, 7
mov esi, ecx
mov dword [esp + 0x24], ecx
setne bl
shr esi, 3
lea esi, [ebx + esi]
cmp esi, dword [esp + 0x210]
mov ebx, 0x16
jb 0x6ebe4948
imul ebp, dword [esp + 0x214], 0x68
mov eax, dword [esp + 0x210]
mov ebp, dword [ebp + 0x6ec7f568]
lea edx, [ebp + eax + 2]
cmp edx, esi
ja 0x6ebe4948
mov dword [esp], esi
call fcn.6ec668f0
mov dword [esp], esi
mov dword [esp + 0x34], eax
call fcn.6ec668f0
mov dword [esp], esi
mov ebx, eax
mov dword [esp + 0x2c], eax
call fcn.6ec668f0
mov dword [esp], esi
mov dword [esp + 0x28], eax
call fcn.6ec668f0
mov edx, dword [esp + 0x34]
mov dword [esp + 0x30], eax
test edx, edx
je 0x6ebe4955
test ebx, ebx
je 0x6ebe4955
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x6ebe4959
test eax, eax
mov ecx, dword [esp + 0x24]
je 0x6ebe4959
mov eax, dword [esp + 0x20c]
mov ebx, dword [esp + 0x208]
cmp byte [ebx + eax - 1], 0xbc
je 0x6ebe4998
mov ebx, 7
mov edi, dword [esp + 0x30]
mov dword [esp + 0x24], edx
mov dword [esp], edi
call fcn.6ec66918
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.6ec66918
mov esi, dword [esp + 0x2c]
mov dword [esp], esi
call fcn.6ec66918
mov ebp, dword [esp + 0x24]
mov dword [esp], ebp
call fcn.6ec66918
add esp, 0x1ec
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
test edx, edx
je 0x6ebe4961
mov dword [esp], edx
call fcn.6ec66918
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x6ebe4971
mov dword [esp], ebx
call fcn.6ec66918
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x6ebe4981
mov dword [esp], ecx
call fcn.6ec66918
mov edx, dword [esp + 0x30]
mov ebx, 0xd
test edx, edx
je 0x6ebe4948
mov dword [esp], edx
call fcn.6ec66918
jmp 0x6ebe4948
mov dword [esp + 0x34], ecx
mov ecx, ebp
mov eax, dword [esp + 0x208]
not ecx
mov dword [esp], edx
mov dword [esp + 0x24], edx
lea ebx, [ecx + esi]
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0x38], ebx
call fcn.6ec668e0
mov edx, dword [esp + 0x208]
mov ecx, dword [esp + 0x30]
mov dword [esp + 8], ebp
add edx, ebx
mov dword [esp], ecx
lea ebx, [esi*8]
mov dword [esp + 4], edx
call fcn.6ec668e0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x208]
sub ebx, eax
movzx eax, byte [edx]
mov edx, dword [esp + 0x24]
mov ecx, ebx
mov ebx, 0xff
sar ebx, cl
mov dword [esp + 0x34], ebx
not ebx
test eax, ebx
jne 0x6ebe490f
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x214]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 4], edx
mov dword [esp + 0x10], ecx
mov dword [esp], eax
call fcn.6ebe8740
test eax, eax
mov ebx, eax
mov edx, dword [esp + 0x24]
jne 0x6ebe4914
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x6ebe4bd7
lea ebx, [ecx - 1]
cmp ebx, 2
jbe 0x6ebe4e54
mov ebx, dword [esp + 0x2c]
shr ecx, 2
mov eax, dword [edx]
mov dword [esp + 0x24], ecx
sub ecx, 1
and ecx, 7
xor eax, dword [ebx]
cmp dword [esp + 0x24], 1
mov ebx, 1
mov dword [edx], eax
jbe 0x6ebe4b99
test ecx, ecx
je 0x6ebe4b27
cmp ecx, 1
je 0x6ebe4b11
cmp ecx, 2
je 0x6ebe4b01
cmp ecx, 3
je 0x6ebe4af1
cmp ecx, 4
je 0x6ebe4ae1
cmp ecx, 5
je 0x6ebe4ad1
cmp ecx, 6
je 0x6ebe4ac1
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx + 4]
mov ebx, 2
xor eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx + ebx*4]
xor eax, dword [ecx + ebx*4]
mov dword [edx + ebx*4], eax
add ebx, 1
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx + ebx*4]
xor eax, dword [ecx + ebx*4]
mov dword [edx + ebx*4], eax
add ebx, 1
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx + ebx*4]
xor eax, dword [ecx + ebx*4]
mov dword [edx + ebx*4], eax
add ebx, 1
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx + ebx*4]
xor eax, dword [ecx + ebx*4]
mov dword [edx + ebx*4], eax
add ebx, 1
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx + ebx*4]
xor eax, dword [ecx + ebx*4]
mov dword [edx + ebx*4], eax
add ebx, 1
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx + ebx*4]
xor eax, dword [ecx + ebx*4]
mov dword [edx + ebx*4], eax
add ebx, 1
cmp dword [esp + 0x24], ebx
jbe 0x6ebe4b99
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], ebp
mov ebp, dword [edx + ebx*4]
xor ebp, dword [eax + ebx*4]
lea ecx, [ebx + 1]
mov dword [edx + ebx*4], ebp
mov ebp, dword [edx + ecx*4]
xor ebp, dword [eax + ecx*4]
mov dword [edx + ecx*4], ebp
lea ecx, [ebx + 2]
mov ebp, dword [edx + ecx*4]
xor ebp, dword [eax + ecx*4]
mov dword [edx + ecx*4], ebp
lea ecx, [ebx + 3]
mov ebp, dword [edx + ecx*4]
xor ebp, dword [eax + ecx*4]
mov dword [edx + ecx*4], ebp
lea ecx, [ebx + 4]
mov ebp, dword [edx + ecx*4]
xor ebp, dword [eax + ecx*4]
mov dword [edx + ecx*4], ebp
lea ecx, [ebx + 5]
mov ebp, dword [edx + ecx*4]
xor ebp, dword [eax + ecx*4]
mov dword [edx + ecx*4], ebp
lea ecx, [ebx + 6]
mov ebp, dword [edx + ecx*4]
xor ebp, dword [eax + ecx*4]
mov dword [edx + ecx*4], ebp
lea ecx, [ebx + 7]
add ebx, 8
mov ebp, dword [edx + ecx*4]
xor ebp, dword [eax + ecx*4]
cmp dword [esp + 0x24], ebx
mov dword [edx + ecx*4], ebp
ja 0x6ebe4b2f
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov eax, ebx
and eax, 0xfffffffc
cmp eax, ebx
je 0x6ebe4bd7
mov ebx, dword [esp + 0x2c]
movzx ecx, byte [ebx + eax]
xor byte [edx + eax], cl
lea ecx, [eax + 1]
cmp dword [esp + 0x38], ecx
jbe 0x6ebe4bd7
movzx ebx, byte [ebx + eax + 1]
xor byte [edx + ecx], bl
lea ecx, [eax + 2]
cmp dword [esp + 0x38], ecx
jbe 0x6ebe4bd7
mov ebx, dword [esp + 0x2c]
movzx eax, byte [ebx + eax + 2]
xor byte [edx + ecx], al
sub esi, dword [esp + 0x210]
movzx eax, byte [esp + 0x34]
and al, byte [edx]
sub esi, ebp
mov ebx, esi
mov byte [edx], al
sub ebx, 2
je 0x6ebe4ce9
test al, al
jne 0x6ebe490f
sub esi, 3
xor eax, eax
and esi, 7
je 0x6ebe4c81
mov eax, 1
cmp byte [edx + eax], 0
jne 0x6ebe490f
cmp esi, 1
je 0x6ebe4c81
cmp esi, 2
je 0x6ebe4c74
cmp esi, 3
je 0x6ebe4c67
cmp esi, 4
je 0x6ebe4c5a
cmp esi, 5
je 0x6ebe4c4d
cmp esi, 6
je 0x6ebe4c40
add eax, 1
cmp byte [edx + eax], 0
jne 0x6ebe490f
add eax, 1
cmp byte [edx + eax], 0
jne 0x6ebe490f
add eax, 1
cmp byte [edx + eax], 0
jne 0x6ebe490f
add eax, 1
cmp byte [edx + eax], 0
jne 0x6ebe490f
add eax, 1
cmp byte [edx + eax], 0
jne 0x6ebe490f
add eax, 1
cmp byte [edx + eax], 0
jne 0x6ebe490f
lea esi, [eax + 1]
movzx ecx, byte [edx + eax + 1]
cmp esi, ebx
mov dword [esp + 0x34], esi
je 0x6ebe4cf1
test cl, cl
jne 0x6ebe490f
cmp byte [edx + eax + 2], 0
jne 0x6ebe490f
cmp byte [edx + eax + 3], 0
jne 0x6ebe490f
cmp byte [edx + eax + 4], 0
jne 0x6ebe490f
cmp byte [edx + eax + 5], 0
jne 0x6ebe490f
cmp byte [edx + eax + 6], 0
jne 0x6ebe490f
cmp byte [edx + eax + 7], 0
jne 0x6ebe490f
add eax, 8
cmp byte [edx + eax], 0
je 0x6ebe4c81
jmp 0x6ebe490f
mov dword [esp + 0x34], 0
mov ebx, dword [esp + 0x34]
cmp byte [edx + ebx], 1
jne 0x6ebe490f
imul eax, dword [esp + 0x214], 0x68
lea esi, [esp + 0x40]
mov dword [esp + 0x38], edx
mov dword [esp], esi
add eax, 0x6ec7f560
mov dword [esp + 0x24], eax
call dword [eax + 0x54]
test eax, eax
mov ebx, eax
mov edx, dword [esp + 0x38]
jne 0x6ebe4914
mov ebx, dword [esp + 0x2c]
mov dword [esp + 4], 8
mov dword [esp], ebx
call fcn.6ebdea30
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], ebx
mov dword [esp + 4], ebx
mov dword [esp + 8], 8
mov dword [esp], esi
call dword [eax + 0x58]
test eax, eax
mov ebx, eax
mov edx, dword [esp + 0x38]
jne 0x6ebe4914
mov edx, dword [esp + 0x200]
mov ecx, dword [esp + 0x204]
mov ebx, dword [esp + 0x24]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call dword [ebx + 0x58]
test eax, eax
mov ebx, eax
mov edx, dword [esp + 0x38]
jne 0x6ebe4914
mov eax, dword [esp + 0x210]
mov ecx, dword [esp + 0x34]
mov dword [esp], esi
mov dword [esp + 0x34], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
lea ebx, [edx + ecx + 1]
mov dword [esp + 4], ebx
call dword [eax + 0x58]
test eax, eax
mov ebx, eax
mov edx, dword [esp + 0x34]
jne 0x6ebe4914
mov edx, dword [esp + 0x2c]
mov dword [esp], esi
mov esi, dword [esp + 0x24]
mov dword [esp + 4], edx
call dword [esi + 0x5c]
test eax, eax
mov ebx, eax
mov edx, dword [esp + 0x34]
jne 0x6ebe4914
mov dword [esp + 8], ebp
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x24], edx
mov dword [esp], ecx
mov dword [esp + 4], ebp
call fcn.6ebe5430
test eax, eax
mov edx, dword [esp + 0x24]
jne 0x6ebe4914
mov dword [edi], 1
jmp 0x6ebe4914
mov dword [esp + 8], 0x29
mov dword [esp + 4], str.src_pk_pkcs1_pkcs_1_pss_decode.c
mov dword [esp], str.res___NULL
call fcn.6ebddf90
mov dword [esp + 8], 0x28
mov dword [esp + 4], str.src_pk_pkcs1_pkcs_1_pss_decode.c
mov dword [esp], str.msghash___NULL
call fcn.6ebddf90
xor eax, eax
jmp 0x6ebe4ba6