Function at 0x6d6e3500
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 0x6d6e3b28
test edi, edi
je 0x6d6e3b0c
mov eax, dword [esp + 0x214]
mov dword [edi], 0
mov dword [esp], eax
call fcn.6d6e1070
test eax, eax
mov ebx, eax
jne 0x6d6e3638
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 0x6d6e3638
imul ebp, dword [esp + 0x214], 0x68
mov eax, dword [esp + 0x210]
mov ebp, dword [ebp + 0x6d77e568]
lea edx, [ebp + eax + 2]
cmp edx, esi
ja 0x6d6e3638
mov dword [esp], esi
call fcn.6d7655e0
mov dword [esp], esi
mov dword [esp + 0x34], eax
call fcn.6d7655e0
mov dword [esp], esi
mov ebx, eax
mov dword [esp + 0x2c], eax
call fcn.6d7655e0
mov dword [esp], esi
mov dword [esp + 0x28], eax
call fcn.6d7655e0
mov edx, dword [esp + 0x34]
mov dword [esp + 0x30], eax
test edx, edx
je 0x6d6e3645
test ebx, ebx
je 0x6d6e3645
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x6d6e3649
test eax, eax
mov ecx, dword [esp + 0x24]
je 0x6d6e3649
mov eax, dword [esp + 0x20c]
mov ebx, dword [esp + 0x208]
cmp byte [ebx + eax - 1], 0xbc
je 0x6d6e3688
mov ebx, 7
mov edi, dword [esp + 0x30]
mov dword [esp + 0x24], edx
mov dword [esp], edi
call fcn.6d765608
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.6d765608
mov esi, dword [esp + 0x2c]
mov dword [esp], esi
call fcn.6d765608
mov ebp, dword [esp + 0x24]
mov dword [esp], ebp
call fcn.6d765608
add esp, 0x1ec
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
test edx, edx
je 0x6d6e3651
mov dword [esp], edx
call fcn.6d765608
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x6d6e3661
mov dword [esp], ebx
call fcn.6d765608
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x6d6e3671
mov dword [esp], ecx
call fcn.6d765608
mov edx, dword [esp + 0x30]
mov ebx, 0xd
test edx, edx
je 0x6d6e3638
mov dword [esp], edx
call fcn.6d765608
jmp 0x6d6e3638
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.6d7655d0
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.6d7655d0
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 0x6d6e35ff
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.6d6e7430
test eax, eax
mov ebx, eax
mov edx, dword [esp + 0x24]
jne 0x6d6e3604
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x6d6e38c7
lea ebx, [ecx - 1]
cmp ebx, 2
jbe 0x6d6e3b44
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 0x6d6e3889
test ecx, ecx
je 0x6d6e3817
cmp ecx, 1
je 0x6d6e3801
cmp ecx, 2
je 0x6d6e37f1
cmp ecx, 3
je 0x6d6e37e1
cmp ecx, 4
je 0x6d6e37d1
cmp ecx, 5
je 0x6d6e37c1
cmp ecx, 6
je 0x6d6e37b1
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 0x6d6e3889
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 0x6d6e381f
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov eax, ebx
and eax, 0xfffffffc
cmp eax, ebx
je 0x6d6e38c7
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 0x6d6e38c7
movzx ebx, byte [ebx + eax + 1]
xor byte [edx + ecx], bl
lea ecx, [eax + 2]
cmp dword [esp + 0x38], ecx
jbe 0x6d6e38c7
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 0x6d6e39d9
test al, al
jne 0x6d6e35ff
sub esi, 3
xor eax, eax
and esi, 7
je 0x6d6e3971
mov eax, 1
cmp byte [edx + eax], 0
jne 0x6d6e35ff
cmp esi, 1
je 0x6d6e3971
cmp esi, 2
je 0x6d6e3964
cmp esi, 3
je 0x6d6e3957
cmp esi, 4
je 0x6d6e394a
cmp esi, 5
je 0x6d6e393d
cmp esi, 6
je 0x6d6e3930
add eax, 1
cmp byte [edx + eax], 0
jne 0x6d6e35ff
add eax, 1
cmp byte [edx + eax], 0
jne 0x6d6e35ff
add eax, 1
cmp byte [edx + eax], 0
jne 0x6d6e35ff
add eax, 1
cmp byte [edx + eax], 0
jne 0x6d6e35ff
add eax, 1
cmp byte [edx + eax], 0
jne 0x6d6e35ff
add eax, 1
cmp byte [edx + eax], 0
jne 0x6d6e35ff
lea esi, [eax + 1]
movzx ecx, byte [edx + eax + 1]
cmp esi, ebx
mov dword [esp + 0x34], esi
je 0x6d6e39e1
test cl, cl
jne 0x6d6e35ff
cmp byte [edx + eax + 2], 0
jne 0x6d6e35ff
cmp byte [edx + eax + 3], 0
jne 0x6d6e35ff
cmp byte [edx + eax + 4], 0
jne 0x6d6e35ff
cmp byte [edx + eax + 5], 0
jne 0x6d6e35ff
cmp byte [edx + eax + 6], 0
jne 0x6d6e35ff
cmp byte [edx + eax + 7], 0
jne 0x6d6e35ff
add eax, 8
cmp byte [edx + eax], 0
je 0x6d6e3971
jmp 0x6d6e35ff
mov dword [esp + 0x34], 0
mov ebx, dword [esp + 0x34]
cmp byte [edx + ebx], 1
jne 0x6d6e35ff
imul eax, dword [esp + 0x214], 0x68
lea esi, [esp + 0x40]
mov dword [esp + 0x38], edx
mov dword [esp], esi
add eax, 0x6d77e560
mov dword [esp + 0x24], eax
call dword [eax + 0x54]
test eax, eax
mov ebx, eax
mov edx, dword [esp + 0x38]
jne 0x6d6e3604
mov ebx, dword [esp + 0x2c]
mov dword [esp + 4], 8
mov dword [esp], ebx
call fcn.6d6dd720
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 0x6d6e3604
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 0x6d6e3604
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 0x6d6e3604
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 0x6d6e3604
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.6d6e4120
test eax, eax
mov edx, dword [esp + 0x24]
jne 0x6d6e3604
mov dword [edi], 1
jmp 0x6d6e3604
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.6d6dcc80
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.6d6dcc80
xor eax, eax
jmp 0x6d6e3896