Function at 0x6fa22bd0
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 0x6fa231f8
test edi, edi
je 0x6fa231dc
mov eax, dword [esp + 0x214]
mov dword [edi], 0
mov dword [esp], eax
call fcn.6fa20740
test eax, eax
mov ebx, eax
jne 0x6fa22d08
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 0x6fa22d08
imul ebp, dword [esp + 0x214], 0x68
mov eax, dword [esp + 0x210]
mov ebp, dword [ebp + 0x6fabe568]
lea edx, [ebp + eax + 2]
cmp edx, esi
ja 0x6fa22d08
mov dword [esp], esi
call fcn.6faa4cb0
mov dword [esp], esi
mov dword [esp + 0x34], eax
call fcn.6faa4cb0
mov dword [esp], esi
mov ebx, eax
mov dword [esp + 0x2c], eax
call fcn.6faa4cb0
mov dword [esp], esi
mov dword [esp + 0x28], eax
call fcn.6faa4cb0
mov edx, dword [esp + 0x34]
mov dword [esp + 0x30], eax
test edx, edx
je 0x6fa22d15
test ebx, ebx
je 0x6fa22d15
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x6fa22d19
test eax, eax
mov ecx, dword [esp + 0x24]
je 0x6fa22d19
mov eax, dword [esp + 0x20c]
mov ebx, dword [esp + 0x208]
cmp byte [ebx + eax - 1], 0xbc
je 0x6fa22d58
mov ebx, 7
mov edi, dword [esp + 0x30]
mov dword [esp + 0x24], edx
mov dword [esp], edi
call fcn.6faa4cd8
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.6faa4cd8
mov esi, dword [esp + 0x2c]
mov dword [esp], esi
call fcn.6faa4cd8
mov ebp, dword [esp + 0x24]
mov dword [esp], ebp
call fcn.6faa4cd8
add esp, 0x1ec
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
test edx, edx
je 0x6fa22d21
mov dword [esp], edx
call fcn.6faa4cd8
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x6fa22d31
mov dword [esp], ebx
call fcn.6faa4cd8
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x6fa22d41
mov dword [esp], ecx
call fcn.6faa4cd8
mov edx, dword [esp + 0x30]
mov ebx, 0xd
test edx, edx
je 0x6fa22d08
mov dword [esp], edx
call fcn.6faa4cd8
jmp 0x6fa22d08
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.6faa4ca0
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.6faa4ca0
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 0x6fa22ccf
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.6fa26b00
test eax, eax
mov ebx, eax
mov edx, dword [esp + 0x24]
jne 0x6fa22cd4
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x6fa22f97
lea ebx, [ecx - 1]
cmp ebx, 2
jbe 0x6fa23214
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 0x6fa22f59
test ecx, ecx
je 0x6fa22ee7
cmp ecx, 1
je 0x6fa22ed1
cmp ecx, 2
je 0x6fa22ec1
cmp ecx, 3
je 0x6fa22eb1
cmp ecx, 4
je 0x6fa22ea1
cmp ecx, 5
je 0x6fa22e91
cmp ecx, 6
je 0x6fa22e81
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 0x6fa22f59
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 0x6fa22eef
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov eax, ebx
and eax, 0xfffffffc
cmp eax, ebx
je 0x6fa22f97
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 0x6fa22f97
movzx ebx, byte [ebx + eax + 1]
xor byte [edx + ecx], bl
lea ecx, [eax + 2]
cmp dword [esp + 0x38], ecx
jbe 0x6fa22f97
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 0x6fa230a9
test al, al
jne 0x6fa22ccf
sub esi, 3
xor eax, eax
and esi, 7
je 0x6fa23041
mov eax, 1
cmp byte [edx + eax], 0
jne 0x6fa22ccf
cmp esi, 1
je 0x6fa23041
cmp esi, 2
je 0x6fa23034
cmp esi, 3
je 0x6fa23027
cmp esi, 4
je 0x6fa2301a
cmp esi, 5
je 0x6fa2300d
cmp esi, 6
je 0x6fa23000
add eax, 1
cmp byte [edx + eax], 0
jne 0x6fa22ccf
add eax, 1
cmp byte [edx + eax], 0
jne 0x6fa22ccf
add eax, 1
cmp byte [edx + eax], 0
jne 0x6fa22ccf
add eax, 1
cmp byte [edx + eax], 0
jne 0x6fa22ccf
add eax, 1
cmp byte [edx + eax], 0
jne 0x6fa22ccf
add eax, 1
cmp byte [edx + eax], 0
jne 0x6fa22ccf
lea esi, [eax + 1]
movzx ecx, byte [edx + eax + 1]
cmp esi, ebx
mov dword [esp + 0x34], esi
je 0x6fa230b1
test cl, cl
jne 0x6fa22ccf
cmp byte [edx + eax + 2], 0
jne 0x6fa22ccf
cmp byte [edx + eax + 3], 0
jne 0x6fa22ccf
cmp byte [edx + eax + 4], 0
jne 0x6fa22ccf
cmp byte [edx + eax + 5], 0
jne 0x6fa22ccf
cmp byte [edx + eax + 6], 0
jne 0x6fa22ccf
cmp byte [edx + eax + 7], 0
jne 0x6fa22ccf
add eax, 8
cmp byte [edx + eax], 0
je 0x6fa23041
jmp 0x6fa22ccf
mov dword [esp + 0x34], 0
mov ebx, dword [esp + 0x34]
cmp byte [edx + ebx], 1
jne 0x6fa22ccf
imul eax, dword [esp + 0x214], 0x68
lea esi, [esp + 0x40]
mov dword [esp + 0x38], edx
mov dword [esp], esi
add eax, 0x6fabe560
mov dword [esp + 0x24], eax
call dword [eax + 0x54]
test eax, eax
mov ebx, eax
mov edx, dword [esp + 0x38]
jne 0x6fa22cd4
mov ebx, dword [esp + 0x2c]
mov dword [esp + 4], 8
mov dword [esp], ebx
call fcn.6fa1cdf0
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 0x6fa22cd4
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 0x6fa22cd4
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 0x6fa22cd4
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 0x6fa22cd4
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.6fa237f0
test eax, eax
mov edx, dword [esp + 0x24]
jne 0x6fa22cd4
mov dword [edi], 1
jmp 0x6fa22cd4
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.6fa1c350
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.6fa1c350
xor eax, eax
jmp 0x6fa22f66