Function at 0x1021edc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2c
call fcn.10077700
mov eax, dword [esp + 0x40]
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
dec eax
push edi
cmp eax, 0x29
mov dword [esp + 0x10], ebx
jl 0x1021efb3
mov esi, dword [esp + 0x4c]
mov edi, eax
sub edi, esi
mov dword [esp + 0x4c], edi
jns 0x1021ee02
mov dword [esp + 0x10], 1
mov dword [esp + 0x4c], ebx
mov esi, eax
mov edi, ebx
lea ebp, [eax - 0x14]
push 0x79
add eax, ebp
push str..crypto_rsa_rsa_oaep.c
push eax
call fcn.100cabb0
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x50], eax
jne 0x1021ee3f
push 0x7c
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0x7a
push 4
call fcn.100cafd0
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov ecx, edi
lea ebx, [eax + ebp]
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x4c]
mov ecx, esi
mov esi, dword [esp + 0x48]
mov edx, ecx
lea edi, [ebx + eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x14]
call fcn.100e7230
push eax
push ebp
push edi
lea eax, [esp + 0x20]
push 0x14
push eax
call fcn.1021eff0
mov esi, ebx
lea ecx, [esp + 0x28]
add esp, 0x14
xor eax, eax
sub esi, ecx
mov bl, byte [esp + eax + 0x14]
lea ecx, [esp + eax + 0x14]
mov dl, byte [esi + ecx]
xor bl, dl
inc eax
cmp eax, 0x14
mov byte [ecx], bl
jl 0x1021ee95
call fcn.100e7230
mov esi, dword [esp + 0x50]
push eax
lea eax, [esp + 0x18]
push 0x14
push eax
push ebp
push esi
call fcn.1021eff0
add esp, 0x14
test ebp, ebp
jle 0x1021eedc
mov eax, esi
sub edi, esi
mov ecx, ebp
mov dl, byte [edi + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec ecx
jne 0x1021eecf
push 0
call fcn.100e7230
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push eax
lea eax, [esp + 0x30]
push 0
push eax
push ecx
push edx
call fcn.100ca4b0
add esp, 0x18
mov ecx, 5
lea edi, [esp + 0x28]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x1021efaf
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x1021efaf
mov eax, 0x14
cmp ebp, eax
jle 0x1021ef34
mov ecx, dword [esp + 0x50]
cmp byte [eax + ecx], 0
jne 0x1021ef34
inc eax
cmp eax, ebp
jl 0x1021ef25
cmp eax, ebp
je 0x1021efaf
mov edx, dword [esp + 0x50]
cmp byte [eax + edx], 1
jne 0x1021efaf
mov ecx, dword [esp + 0x44]
inc eax
sub ebp, eax
cmp ecx, ebp
jge 0x1021ef7f
push 0xa2
push str..crypto_rsa_rsa_oaep.c
push 0x6d
push 0x7a
push 4
call fcn.100cafd0
mov ecx, dword [esp + 0x64]
add esp, 0x14
or ebp, 0xffffffff
push ecx
call fcn.100cae30
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov edx, dword [esp + 0x50]
mov edi, dword [esp + 0x40]
mov ecx, ebp
lea esi, [eax + edx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
push ecx
call fcn.100cae30
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov esi, dword [esp + 0x50]
push 0xaf
push str..crypto_rsa_rsa_oaep.c
push 0x79
push 0x7a
push 4
call fcn.100cafd0
add esp, 0x14
test esi, esi
je 0x1021efd8
push esi
call fcn.100cae30
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x2c
ret