Function at 0x10066ca0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x3c
call fcn.1008ca50
mov eax, dword [0x100c94f0]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x54]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
push ebx
push ebp
xor ebp, ebp
sub eax, 1
cmp eax, 0x29
push edi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebp
jl 0x10066f3f
mov edi, eax
sub edi, dword [esp + 0x58]
jns 0x10066cfc
mov dword [esp + 0x10], 1
xor edi, edi
mov dword [esp + 0x58], eax
lea ebx, [eax - 0x14]
push 0x79
add eax, ebx
push str..crypto_rsa_rsa_oaep.c
push eax
call fcn.1000c280
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x10066d41
push 0x7c
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0x7a
push 4
call fcn.10005760
add esp, 0x14
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1008c6e8
add esp, 0x3c
ret
push esi
push edi
lea esi, [ebx + ebp]
push 0
push esi
call sub.MSVCR80_Coverage_C_WINDOWS_WinSxS_x86__Microsoft__VC80__CRT__1fc8b3b9a1e18e3b__8__0__50727__4053__x_ww__e6967989.dll_memse
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x1c]
push ecx
push edx
lea eax, [esi + edi]
push eax
call sub.MSVCR80_Coverage_C_WINDOWS_WinSxS_x86__Microsoft__VC80__CRT__1fc8b3b9a1e18e3b__8__0__50727__4053__x_ww__e6967989.dll_memcp
lea edi, [esi + 0x14]
mov dword [esp + 0x28], edi
call fcn.100251d0
push eax
push ebx
push edi
lea ecx, [esp + 0x44]
push 0x14
push ecx
call fcn.10066910
mov edi, esi
lea edx, [esp + 0x4c]
add esp, 0x2c
xor ecx, ecx
sub edi, edx
lea esp, [esp]
lea eax, [esp + ecx + 0x20]
movzx edx, byte [edi + eax]
xor byte [eax], dl
movzx edx, byte [esi + ecx + 1]
xor byte [eax + 1], dl
movzx edx, byte [esi + ecx + 2]
xor byte [eax + 2], dl
movzx edx, byte [esi + ecx + 3]
xor byte [eax + 3], dl
movzx edx, byte [esi + ecx + 4]
xor byte [eax + 4], dl
add ecx, 5
cmp ecx, 0x14
jl 0x10066d90
call fcn.100251d0
push eax
push 0x14
lea eax, [esp + 0x28]
push eax
push ebx
push ebp
call fcn.10066910
add esp, 0x14
test ebx, ebx
jle 0x10066df4
mov esi, dword [esp + 0x10]
mov eax, ebp
sub esi, ebp
mov edi, ebx
mov cl, byte [esi + eax]
xor byte [eax], cl
add eax, 1
sub edi, 1
jne 0x10066de7
push 0
call fcn.100251d0
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x70]
push 0
lea edx, [esp + 0x40]
push edx
push eax
push ecx
call fcn.10015850
add esp, 0x18
mov eax, 0x14
lea ecx, [esp + 0x34]
mov edx, ebp
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x10066e38
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x10066e20
test eax, eax
je 0x10066e95
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x10066e87
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x10066e95
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x10066e87
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x10066e95
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x10066e87
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x10066e95
movzx eax, byte [ecx]
movzx esi, byte [edx]
sub esi, eax
je 0x10066e95
test esi, esi
mov eax, 1
jg 0x10066e97
or eax, 0xffffffff
jmp 0x10066e97
xor eax, eax
test eax, eax
pop esi
jne 0x10066f3f
cmp dword [esp + 0x10], eax
jne 0x10066f3f
mov eax, 0x14
cmp eax, ebx
jge 0x10066ec2
cmp byte [eax + ebp], 0
jne 0x10066ec0
add eax, 1
cmp eax, ebx
jl 0x10066eb3
cmp eax, ebx
je 0x10066f3f
cmp byte [eax + ebp], 1
jne 0x10066f3f
add eax, 1
sub ebx, eax
cmp dword [esp + 0x50], ebx
jge 0x10066f11
push 0xa2
push str..crypto_rsa_rsa_oaep.c
push 0x6d
push 0x7a
push 4
call fcn.10005760
add esp, 0x14
push ebp
or ebx, 0xffffffff
call fcn.1000c430
add esp, 4
pop edi
pop ebp
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1008c6e8
add esp, 0x3c
ret
mov ecx, dword [esp + 0x18]
push ebx
add eax, ebp
push eax
push ecx
call sub.MSVCR80_Coverage_C_WINDOWS_WinSxS_x86__Microsoft__VC80__CRT__1fc8b3b9a1e18e3b__8__0__50727__4053__x_ww__e6967989.dll_memcp
add esp, 0xc
push ebp
call fcn.1000c430
add esp, 4
pop edi
pop ebp
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1008c6e8
add esp, 0x3c
ret
push 0xaf
push str..crypto_rsa_rsa_oaep.c
push 0x79
push 0x7a
push 4
call fcn.10005760
add esp, 0x14
test ebp, ebp
je 0x10066f64
push ebp
call fcn.1000c430
add esp, 4
mov ecx, dword [esp + 0x44]
pop edi
pop ebp
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.1008c6e8
add esp, 0x3c
ret