Function at 0x6fa22dc0
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 0x6fa233e8
test edi, edi
je 0x6fa233cc
mov eax, dword [esp + 0x214]
mov dword [edi], 0
mov dword [esp], eax
call fcn.6fa20930
test eax, eax
mov ebx, eax
jne 0x6fa22ef8
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 0x6fa22ef8
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 0x6fa22ef8
mov dword [esp], esi
call fcn.6faa4ea0
mov dword [esp], esi
mov dword [esp + 0x34], eax
call fcn.6faa4ea0
mov dword [esp], esi
mov ebx, eax
mov dword [esp + 0x2c], eax
call fcn.6faa4ea0
mov dword [esp], esi
mov dword [esp + 0x28], eax
call fcn.6faa4ea0
mov edx, dword [esp + 0x34]
mov dword [esp + 0x30], eax
test edx, edx
je 0x6fa22f05
test ebx, ebx
je 0x6fa22f05
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x6fa22f09
test eax, eax
mov ecx, dword [esp + 0x24]
je 0x6fa22f09
mov eax, dword [esp + 0x20c]
mov ebx, dword [esp + 0x208]
cmp byte [ebx + eax - 1], 0xbc
je 0x6fa22f48
mov ebx, 7
mov edi, dword [esp + 0x30]
mov dword [esp + 0x24], edx
mov dword [esp], edi
call fcn.6faa4ec8
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.6faa4ec8
mov esi, dword [esp + 0x2c]
mov dword [esp], esi
call fcn.6faa4ec8
mov ebp, dword [esp + 0x24]
mov dword [esp], ebp
call fcn.6faa4ec8
add esp, 0x1ec
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
test edx, edx
je 0x6fa22f11
mov dword [esp], edx
call fcn.6faa4ec8
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x6fa22f21
mov dword [esp], ebx
call fcn.6faa4ec8
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x6fa22f31
mov dword [esp], ecx
call fcn.6faa4ec8
mov edx, dword [esp + 0x30]
mov ebx, 0xd
test edx, edx
je 0x6fa22ef8
mov dword [esp], edx
call fcn.6faa4ec8
jmp 0x6fa22ef8
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.6faa4e90
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.6faa4e90
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 0x6fa22ebf
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.6fa26cf0
test eax, eax
mov ebx, eax
mov edx, dword [esp + 0x24]
jne 0x6fa22ec4
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x6fa23187
lea ebx, [ecx - 1]
cmp ebx, 2
jbe 0x6fa23404
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 0x6fa23149
test ecx, ecx
je 0x6fa230d7
cmp ecx, 1
je 0x6fa230c1
cmp ecx, 2
je 0x6fa230b1
cmp ecx, 3
je 0x6fa230a1
cmp ecx, 4
je 0x6fa23091
cmp ecx, 5
je 0x6fa23081
cmp ecx, 6
je 0x6fa23071
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 0x6fa23149
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 0x6fa230df
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov eax, ebx
and eax, 0xfffffffc
cmp eax, ebx
je 0x6fa23187
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 0x6fa23187
movzx ebx, byte [ebx + eax + 1]
xor byte [edx + ecx], bl
lea ecx, [eax + 2]
cmp dword [esp + 0x38], ecx
jbe 0x6fa23187
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 0x6fa23299
test al, al
jne 0x6fa22ebf
sub esi, 3
xor eax, eax
and esi, 7
je 0x6fa23231
mov eax, 1
cmp byte [edx + eax], 0
jne 0x6fa22ebf
cmp esi, 1
je 0x6fa23231
cmp esi, 2
je 0x6fa23224
cmp esi, 3
je 0x6fa23217
cmp esi, 4
je 0x6fa2320a
cmp esi, 5
je 0x6fa231fd
cmp esi, 6
je 0x6fa231f0
add eax, 1
cmp byte [edx + eax], 0
jne 0x6fa22ebf
add eax, 1
cmp byte [edx + eax], 0
jne 0x6fa22ebf
add eax, 1
cmp byte [edx + eax], 0
jne 0x6fa22ebf
add eax, 1
cmp byte [edx + eax], 0
jne 0x6fa22ebf
add eax, 1
cmp byte [edx + eax], 0
jne 0x6fa22ebf
add eax, 1
cmp byte [edx + eax], 0
jne 0x6fa22ebf
lea esi, [eax + 1]
movzx ecx, byte [edx + eax + 1]
cmp esi, ebx
mov dword [esp + 0x34], esi
je 0x6fa232a1
test cl, cl
jne 0x6fa22ebf
cmp byte [edx + eax + 2], 0
jne 0x6fa22ebf
cmp byte [edx + eax + 3], 0
jne 0x6fa22ebf
cmp byte [edx + eax + 4], 0
jne 0x6fa22ebf
cmp byte [edx + eax + 5], 0
jne 0x6fa22ebf
cmp byte [edx + eax + 6], 0
jne 0x6fa22ebf
cmp byte [edx + eax + 7], 0
jne 0x6fa22ebf
add eax, 8
cmp byte [edx + eax], 0
je 0x6fa23231
jmp 0x6fa22ebf
mov dword [esp + 0x34], 0
mov ebx, dword [esp + 0x34]
cmp byte [edx + ebx], 1
jne 0x6fa22ebf
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 0x6fa22ec4
mov ebx, dword [esp + 0x2c]
mov dword [esp + 4], 8
mov dword [esp], ebx
call fcn.6fa1cfe0
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 0x6fa22ec4
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 0x6fa22ec4
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 0x6fa22ec4
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 0x6fa22ec4
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.6fa239e0
test eax, eax
mov edx, dword [esp + 0x24]
jne 0x6fa22ec4
mov dword [edi], 1
jmp 0x6fa22ec4
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.6fa1c540
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.6fa1c540
xor eax, eax
jmp 0x6fa23156