Function at 0x642b50
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xb0
call fcn.0066af60
mov eax, dword [0x74b738]
xor eax, esp
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xd0]
push ebx
mov ebx, dword [esp + 0xc4]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xc0]
push ebp
mov ebp, dword [esp + 0xcc]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xd0]
push esi
mov dword [esp + 0x30], eax
xor esi, esi
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], eax
push edi
mov edi, dword [esp + 0xe4]
test ecx, ecx
jne 0x642bd0
call fcn.005d3920
mov ecx, eax
mov dword [esp + 0x28], eax
test edi, edi
push ecx
cmove edi, ecx
mov dword [esp + 0x1c], edi
call fcn.005d37d0
add esp, 4
mov edi, eax
mov dword [esp + 0x24], edi
cmp dword [esp + 0xc8], esi
jle 0x642f7e
test ebx, ebx
jle 0x642f7e
cmp ebp, ebx
jl 0x642f1e
lea eax, [edi*2 + 2]
cmp ebp, eax
jl 0x642f1e
mov ebx, ebp
push 0x97
sub ebx, edi
dec ebx
push str..crypto_rsa_rsa_oaep.c
push ebx
mov dword [esp + 0x2c], ebx
call fcn.005ae120
push 0x98
mov esi, eax
push str..crypto_rsa_rsa_oaep.c
push ebp
mov dword [esp + 0x48], esi
call fcn.005ae120
add esp, 0x18
mov dword [esp + 0x14], eax
test esi, esi
je 0x642f70
test eax, eax
je 0x642f70
push ebp
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x28]
sub ebp, eax
add ebp, dword [esp + 0x20]
push eax
push dword [esp + 0x20]
push ebp
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x2c]
push dword [esp + 0x30]
push ebx
movzx eax, byte [ecx]
lea ebp, [ecx + 1]
dec eax
shr eax, 0x1f
neg eax
mov dword [esp + 0x30], eax
lea eax, [ecx + 1]
add eax, edi
push eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x60]
push edi
push eax
call fcn.006425e0
add esp, 0x2c
test eax, eax
jne 0x642f39
xor edx, edx
test edi, edi
jle 0x642d60
cmp edi, 0x40
jb 0x642d42
lea eax, [ebp - 1]
lea ebx, [esp + 0x3c]
add eax, edi
cmp ebx, eax
lea ecx, [esp + edi + 0x3b]
mov ebx, dword [esp + 0x20]
ja 0x642cdd
cmp ecx, ebp
jae 0x642d42
mov eax, edi
and eax, 0x8000003f
jns 0x642ceb
dec eax
or eax, 0xffffffc0
inc eax
mov ecx, edi
sub ecx, eax
nop
movups xmm0, xmmword [esp + edx + 0x3c]
movups xmm1, xmmword [edx + ebp]
pxor xmm1, xmm0
movups xmmword [esp + edx + 0x3c], xmm1
movups xmm0, xmmword [esp + edx + 0x4c]
movups xmm1, xmmword [edx + ebp + 0x10]
pxor xmm1, xmm0
movups xmmword [esp + edx + 0x4c], xmm1
movups xmm0, xmmword [esp + edx + 0x5c]
movups xmm1, xmmword [edx + ebp + 0x20]
pxor xmm1, xmm0
movups xmmword [esp + edx + 0x5c], xmm1
movups xmm0, xmmword [esp + edx + 0x6c]
movups xmm1, xmmword [edx + ebp + 0x30]
pxor xmm1, xmm0
movups xmmword [esp + edx + 0x6c], xmm1
add edx, 0x40
cmp edx, ecx
jl 0x642cf0
cmp edx, edi
jge 0x642d60
lea eax, [esp + 0x3c]
sub ebp, eax
nop dword [eax]
lea ecx, [esp + 0x3c]
add ecx, edx
inc edx
mov al, byte [ecx + ebp]
xor byte [ecx], al
cmp edx, edi
jl 0x642d50
push dword [esp + 0x18]
lea eax, [esp + 0x40]
push edi
push eax
push ebx
push esi
call fcn.006425e0
add esp, 0x14
test eax, eax
jne 0x642f39
xor edx, edx
test ebx, ebx
jle 0x642e44
cmp ebx, 0x40
jb 0x642e21
mov ecx, dword [esp + 0x1c]
lea ebp, [esi - 1]
add ebp, ebx
lea eax, [ecx - 1]
add eax, ebx
cmp esi, eax
ja 0x642da5
cmp ebp, ecx
jae 0x642e21
mov eax, ebx
and eax, 0x8000003f
jns 0x642db3
dec eax
or eax, 0xffffffc0
inc eax
mov ebp, ebx
mov edi, ecx
sub ebp, eax
sub edi, esi
mov dword [esp + 0x18], edi
mov eax, esi
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
nop dword [eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ebx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx + edx + 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [ecx + edx + 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [ecx + edx + 0x30]
add edx, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp edx, ebp
jl 0x642dd0
mov ebx, dword [esp + 0x20]
cmp edx, ebx
jge 0x642e44
mov edi, dword [esp + 0x1c]
lea ecx, [edx + esi]
mov ebp, ebx
sub edi, esi
sub ebp, edx
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub ebp, 1
jne 0x642e32
mov edi, dword [esp + 0x24]
push 0
push dword [esp + 0x2c]
lea eax, [esp + 0x84]
push 0
push eax
push dword [esp + 0xec]
push dword [esp + 0x48]
call fcn.005c12f0
add esp, 0x18
test eax, eax
je 0x642f39
push edi
lea eax, [esp + 0x80]
push eax
push esi
call fcn.005b79a0
mov edx, dword [esp + 0x1c]
add esp, 0xc
xor ebp, ebp
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
neg ecx
and edx, ecx
mov dword [esp + 0x10], edx
cmp edi, ebx
jge 0x642eef
movzx esi, byte [edi + esi]
mov ecx, ebp
mov eax, esi
not ecx
xor eax, 1
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
neg edx
and ecx, edx
or ebp, edx
mov edx, dword [esp + 0x10]
mov eax, ecx
not eax
and ecx, edi
and eax, dword [esp + 0x2c]
inc edi
or ecx, eax
lea eax, [esi - 1]
mov esi, dword [esp + 0x30]
shr eax, 0x1f
neg eax
mov dword [esp + 0x2c], ecx
or eax, ebp
and edx, eax
mov dword [esp + 0x10], edx
cmp edi, ebx
jl 0x642ea0
jmp 0x642ef1
xor ecx, ecx
test edx, ebp
je 0x642f1e
lea eax, [ecx + 1]
sub ebx, eax
cmp dword [esp + 0xc8], ebx
jge 0x642f5e
push 0xdd
push str..crypto_rsa_rsa_oaep.c
push 0x6d
push 0xa1
push 4
call fcn.0059e890
add esp, 0x14
push 0xea
push str..crypto_rsa_rsa_oaep.c
push 0x79
push 0xa1
push 4
call fcn.0059e890
add esp, 0x14
or ebx, 0xffffffff
test esi, esi
je 0x642f49
push esi
call fcn.005adf40
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x642f5a
push eax
call fcn.005adf40
add esp, 4
mov eax, ebx
jmp 0x642f81
push ebx
add eax, esi
push eax
push dword [esp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x642f3c
push 0x9a
push str..crypto_rsa_rsa_oaep.c
push 0x41
jmp 0x642f2a
or eax, 0xffffffff
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00669a1e
add esp, 0xb0
ret