Function at 0x66a760
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc4
call fcn.0053e710
mov eax, dword [0x7ec540]
xor eax, esp
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xc8]
push ebx
mov dword [esp + 0x40], eax
xor ebx, ebx
mov eax, dword [esp + 0xdc]
push ebp
mov ebp, dword [esp + 0xf0]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], ebx
push esi
push edi
test eax, eax
jne 0x66a7d2
call fcn.005acd70
mov dword [esp + 0x34], eax
test ebp, ebp
push eax
cmove ebp, eax
mov dword [esp + 0x34], ebp
call fcn.00559780
add esp, 4
mov edi, eax
mov dword [esp + 0x1c], edi
cmp dword [esp + 0xdc], ebx
jle 0x66ae4e
mov esi, dword [esp + 0xe4]
test esi, esi
jle 0x66ae4e
mov ecx, dword [esp + 0x40]
cmp ecx, esi
jl 0x66ae27
lea eax, [edi*2 + 2]
cmp ecx, eax
jl 0x66ae27
mov ebp, ecx
push 0xcb
sub ebp, edi
dec ebp
push str.crypto_rsa_rsa_oaep.c
push ebp
mov dword [esp + 0x34], ebp
call fcn.0054c650
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
je 0x66add3
push 0xcf
push str.crypto_rsa_rsa_oaep.c
push dword [esp + 0x48]
call fcn.0054c650
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x66add3
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0x40]
add edx, esi
add ecx, eax
mov dword [esp + 0x24], ecx
test eax, eax
jle 0x66a8b7
mov ebx, eax
mov edi, ecx
mov eax, esi
lea ecx, [esi - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
dec edi
and ecx, eax
dec ecx
mov eax, ecx
and eax, 1
sub edx, eax
sub esi, eax
and cl, byte [edx]
mov byte [edi], cl
sub ebx, 1
jne 0x66a888
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push dword [esp + 0x30]
movzx ebx, byte [ecx]
lea eax, [ecx + 1]
add eax, edi
lea esi, [ecx + 1]
push ebp
push eax
lea ebx, [ebx - 1]
mov dword [esp + 0x48], eax
shr ebx, 0x1f
lea eax, [esp + 0x5c]
push edi
neg ebx
mov dword [esp + 0x20], esi
push eax
mov dword [esp + 0x28], ebx
call fcn.0066a590
add esp, 0x14
test eax, eax
jne 0x66add3
xor edx, edx
test edi, edi
jle 0x66aa15
cmp edi, 8
jb 0x66a9ff
lea eax, [esi - 1]
lea ebp, [esp + 0x50]
add eax, edi
cmp ebp, eax
lea ecx, [esp + edi + 0x4f]
mov ebp, dword [esp + 0x28]
ja 0x66a922
cmp ecx, esi
jae 0x66a9ff
cmp edi, 0x40
jb 0x66a9c4
mov eax, edi
and eax, 0x8000003f
jns 0x66a939
dec eax
or eax, 0xffffffc0
inc eax
lea ebp, [esp + 0x50]
mov ecx, edi
sub ebp, esi
lea ebx, [esp + 0x50]
mov dword [esp + 0x48], ebp
sub ecx, eax
mov edi, dword [esp + 0x48]
lea ebp, [esp + 0x60]
sub ebp, esi
lea eax, [esi + 0x20]
mov dword [esp + 0x38], ebp
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x38]
movups xmm0, xmmword [ebx + edx]
lea eax, [eax + 0x40]
movups xmm1, xmmword [eax - 0x60]
xorps xmm1, xmm0
movups xmmword [ebx + edx], xmm1
movups xmm0, xmmword [esp + edx + 0x60]
movups xmm1, xmmword [eax - 0x50]
xorps xmm1, xmm0
movups xmmword [esp + edx + 0x60], xmm1
add edx, 0x40
movups xmm0, xmmword [edi + eax - 0x40]
movups xmm1, xmmword [eax - 0x40]
xorps xmm1, xmm0
movups xmmword [edi + eax - 0x40], xmm1
movups xmm1, xmmword [eax - 0x30]
movups xmm0, xmmword [esi + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [esi + eax - 0x40], xmm1
cmp edx, ecx
jl 0x66a964
mov edi, dword [esp + 0x1c]
mov eax, edi
mov ebx, dword [esp + 0x14]
and al, 0x3f
mov esi, dword [esp + 0x10]
cmp al, 8
jb 0x66a9fb
mov eax, edi
and eax, reloc.WS2_32.dll_getsockopt
jns 0x66a9d2
dec eax
or eax, 0xfffffff8
inc eax
mov ecx, edi
sub ecx, eax
nop word [eax + eax]
movq xmm1, qword [esi + edx]
movq xmm0, qword [esp + edx + 0x50]
xorps xmm1, xmm0
movq qword [esp + edx + 0x50], xmm1
add edx, 8
cmp edx, ecx
jl 0x66a9e0
cmp edx, edi
jge 0x66aa15
lea eax, [esp + 0x50]
sub esi, eax
lea ecx, [esp + 0x50]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor byte [ecx], al
cmp edx, edi
jl 0x66aa05
push dword [esp + 0x30]
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x54]
push edi
push eax
push ebp
push esi
call fcn.0066a590
add esp, 0x14
test eax, eax
jne 0x66add3
xor edx, edx
test ebp, ebp
jle 0x66ab67
cmp ebp, 8
jb 0x66ab40
mov ecx, dword [esp + 0x3c]
lea eax, [ecx - 1]
add eax, ebp
cmp esi, eax
ja 0x66aa62
lea eax, [esi - 1]
add eax, ebp
cmp eax, ecx
jae 0x66ab40
cmp ebp, 0x40
jb 0x66aaf8
mov eax, ebp
and eax, 0x8000003f
jns 0x66aa79
dec eax
or eax, 0xffffffc0
inc eax
mov edi, dword [esp + 0x3c]
add ecx, 0x30
mov dword [esp + 0x14], ebp
sub dword [esp + 0x14], eax
sub edi, esi
mov dword [esp + 0x10], edi
lea eax, [esi + 0x10]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
nop dword [eax]
movups xmm0, xmmword [eax - 0x10]
add edx, 0x40
lea ecx, [ecx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx - 0x70]
xorps xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [esi + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx - 0x50]
xorps xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
movups xmm0, xmmword [ecx - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, dword [esp + 0x14]
jl 0x66aaa0
mov esi, dword [esp + 0x20]
mov eax, ebp
and al, 0x3f
cmp al, 8
jb 0x66ab40
mov eax, ebp
and eax, reloc.WS2_32.dll_getsockopt
jns 0x66ab06
dec eax
or eax, 0xfffffff8
inc eax
mov edi, dword [esp + 0x3c]
mov ecx, ebp
sub ecx, eax
sub edi, esi
mov dword [esp + 0x10], edi
lea eax, [edx + esi]
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
nop
movq xmm1, qword [eax + ebp]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add edx, 8
xorps xmm1, xmm0
movq qword [eax - 8], xmm1
cmp edx, ecx
jl 0x66ab20
mov ebp, dword [esp + 0x28]
cmp edx, ebp
jge 0x66ab67
mov edi, dword [esp + 0x3c]
lea ecx, [edx + esi]
sub edi, esi
mov esi, ebp
sub esi, edx
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub esi, 1
jne 0x66ab51
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
push 0
push dword [esp + 0x38]
lea eax, [esp + 0x98]
push 0
push eax
push dword [esp + 0x100]
push dword [esp + 0x2c]
call fcn.0055e5d0
add esp, 0x18
test eax, eax
je 0x66add3
push edi
lea eax, [esp + 0x94]
push eax
push esi
call fcn.004e6590
mov edx, dword [esp + 0x28]
add esp, 0xc
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
neg ecx
and ebx, ecx
mov dword [esp + 0x14], ebx
xor ebx, ebx
cmp edx, ebp
jge 0x66ac13
movzx esi, byte [edi + esi]
mov eax, ebx
mov edx, esi
not eax
xor edx, 1
dec edx
shr edx, 0x1f
neg edx
and eax, edx
or ebx, edx
mov dword [esp + 0x18], eax
not eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
and ecx, edi
and eax, dword [esp + 0x2c]
inc edi
or eax, ecx
mov dword [esp + 0x2c], eax
lea eax, [esi - 1]
mov esi, dword [esp + 0x20]
shr eax, 0x1f
neg eax
or eax, ebx
and dword [esp + 0x14], eax
cmp edi, ebp
jl 0x66abc3
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xdc]
mov eax, ebp
sub eax, dword [esp + 0x2c]
mov esi, ebp
dec eax
sub esi, edx
sub ecx, eax
mov dword [esp + 0x44], eax
xor ecx, eax
xor eax, dword [esp + 0xdc]
or ecx, eax
mov eax, dword [esp + 0xdc]
xor ecx, eax
lea edi, [esi - 1]
shr ecx, 0x1f
dec ecx
mov dword [esp + 0x34], edi
and ecx, ebx
mov ebx, dword [esp + 0x14]
and ebx, ecx
mov ecx, edi
sub ecx, eax
mov dword [esp + 0x14], ebx
xor ecx, eax
mov eax, edi
xor eax, dword [esp + 0xdc]
or ecx, eax
xor ecx, edi
shr ecx, 0x1f
neg ecx
mov dword [esp + 0x18], ecx
not ecx
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
and eax, edi
and ecx, dword [esp + 0xdc]
mov edi, 1
or ecx, eax
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x34], edi
jle 0x66ad2e
sub esi, dword [esp + 0x44]
inc edx
mov dword [esp + 0x48], edx
lea eax, [esi - 1]
mov dword [esp + 0x2c], eax
nop
and eax, edi
mov esi, ebp
sub esi, edi
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
dec ecx
cmp edx, esi
jge 0x66ad16
mov eax, dword [esp + 0x20]
movzx ecx, cl
add eax, edx
mov ebp, ecx
mov dword [esp + 0x38], ecx
not ebp
sub esi, edx
nop dword [eax + eax]
mov dword [esp + 0x18], ecx
lea eax, [eax + 1]
movzx ecx, byte [eax + edi - 1]
mov dword [esp + 0x10], ebp
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
and bl, cl
movzx ecx, byte [eax - 1]
and dl, cl
mov ecx, dword [esp + 0x38]
or dl, bl
mov byte [eax - 1], dl
sub esi, 1
jne 0x66ace0
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x2c]
add edi, edi
cmp edi, dword [esp + 0x34]
jl 0x66acb0
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
xor esi, esi
test ecx, ecx
jle 0x66ada1
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x44]
inc ebp
shr ecx, 0x1f
neg edi
mov dword [esp + 0x38], ecx
add ebp, edx
nop dword [eax]
mov eax, edi
lea ebp, [ebp + 1]
shr eax, 0x1f
inc edi
xor al, cl
or al, cl
neg al
movzx ecx, al
movzx eax, bl
and ecx, eax
movzx eax, byte [ebp - 1]
mov dword [esp + 0x18], ecx
not ecx
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
and dl, al
mov eax, dword [esp + 0x4c]
movzx eax, byte [eax + esi]
and cl, al
mov eax, dword [esp + 0x4c]
or cl, dl
mov byte [eax + esi], cl
inc esi
mov ecx, dword [esp + 0x38]
cmp esi, dword [esp + 0x30]
jl 0x66ad50
mov ebp, dword [esp + 0x28]
call fcn.0054cc90
push str.RSA_padding_check_PKCS1_OAEP_mgf1
push 0x134
push str.crypto_rsa_rsa_oaep.c
call fcn.0054cd90
push 0
push 0x79
push 4
call fcn.0054cea0
mov eax, ebx
and eax, 1
push eax
call fcn.00555a40
add esp, 0x1c
lea eax, [esp + 0x50]
push 0x40
push eax
call fcn.004e6520
push 0x139
push str.crypto_rsa_rsa_oaep.c
push ebp
push dword [esp + 0x34]
call fcn.0054c850
push 0x13a
push str.crypto_rsa_rsa_oaep.c
push dword [esp + 0x60]
push dword [esp + 0x48]
call fcn.0054c850
mov dword [esp + 0x40], ebx
add esp, 0x28
not ebx
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x18]
and ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x10]
or eax, ecx
jmp 0x66ae51
call fcn.0054cc90
push str.RSA_padding_check_PKCS1_OAEP_mgf1
push 0xc6
push str.crypto_rsa_rsa_oaep.c
call fcn.0054cd90
push 0
push 0x79
push 4
call fcn.0054cea0
add esp, 0x18
or eax, 0xffffffff
mov ecx, dword [esp + 0xd0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00541f33
add esp, 0xc4
ret