Function at 0x50b370
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x68
call fcn.0057a200
mov eax, dword [0x5faea4]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x74]
push ebx
mov ebx, dword [esp + 0x70]
push ebp
mov ebp, dword [esp + 0x90]
push esi
mov esi, dword [esp + 0x90]
push edi
push esi
mov dword [esp + 0x34], eax
xor edi, edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 1
call fcn.00464600
mov ecx, eax
add esp, 4
mov dword [esp + 0x20], ecx
test ecx, ecx
jle 0x50b3fe
mov eax, dword [esp + 0x9c]
xor edx, edx
div ecx
cmp eax, 0xffffffff
jb 0x50b413
call fcn.00464f60
push str.pbkdf2_derive
push 0x145
push str.providersimplementationskdfspbkdf2.c
call fcn.00464fb0
push edi
push 0x69
push 0x39
call fcn.00464fe0
add esp, 0x18
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00579e58
add esp, 0x68
ret
cmp dword [esp + 0xa0], edi
je 0x50b508
mov eax, dword [esp + 0x9c]
shl eax, 3
cmp eax, 0x70
jae 0x50b46e
call fcn.00464f60
push str.pbkdf2_derive
push 0x14b
push str.providersimplementationskdfspbkdf2.c
call fcn.00464fb0
push 0
push 0xab
push 0x39
call fcn.00464fe0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00579e58
add esp, 0x68
ret
cmp dword [esp + 0x88], 0x10
jge 0x50b4b4
call fcn.00464f60
push str.pbkdf2_derive
push 0x14f
push str.providersimplementationskdfspbkdf2.c
call fcn.00464fb0
push 0
push 0x70
push 0x39
call fcn.00464fe0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00579e58
add esp, 0x68
ret
cmp dword [esp + 0x90], edi
ja 0x50b508
jb 0x50b4cc
cmp dword [esp + 0x8c], 0x3e8
jae 0x50b508
call fcn.00464f60
push str.pbkdf2_derive
push 0x153
push str.providersimplementationskdfspbkdf2.c
call fcn.00464fb0
push 0
push 0x7b
push 0x39
call fcn.00464fe0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00579e58
add esp, 0x68
ret
call fcn.004ff780
mov dword [esp + 0x1c], eax
test eax, eax
je 0x50b3fe
push 0
push esi
push dword [esp + 0x88]
push ebx
push eax
call fcn.004ff930
add esp, 0x14
test eax, eax
je 0x50b769
call fcn.004ff780
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x50b767
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x50b759
mov edx, 1
nop dword [eax]
cmp ecx, dword [esp + 0x20]
mov ebx, ecx
push dword [esp + 0x1c]
cmovg ebx, dword [esp + 0x24]
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x18], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x19], al
mov eax, edx
shr eax, 8
push esi
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], dl
call fcn.004ff670
add esp, 8
test eax, eax
je 0x50b761
push dword [esp + 0x88]
push dword [esp + 0x34]
push esi
call fcn.004ffc10
add esp, 0xc
test eax, eax
je 0x50b761
push 4
lea eax, [esp + 0x18]
push eax
push esi
call fcn.004ffc10
add esp, 0xc
test eax, eax
je 0x50b761
push 0
lea eax, [esp + 0x38]
push eax
push esi
call fcn.004ff880
add esp, 0xc
test eax, eax
je 0x50b761
push ebx
lea eax, [esp + 0x38]
push eax
push ebp
call sub.VCRUNTIME140.dll_memcpy
xor eax, eax
add esp, 0xc
mov edi, 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], edi
cmp eax, dword [esp + 0x90]
ja 0x50b736
jb 0x50b625
cmp edi, dword [esp + 0x8c]
jae 0x50b736
push dword [esp + 0x1c]
push esi
call fcn.004ff670
add esp, 8
test eax, eax
je 0x50b761
push dword [esp + 0x20]
lea eax, [esp + 0x38]
push eax
push esi
call fcn.004ffc10
add esp, 0xc
test eax, eax
je 0x50b761
push 0
lea eax, [esp + 0x38]
push eax
push esi
call fcn.004ff880
add esp, 0xc
test eax, eax
je 0x50b761
xor esi, esi
test ebx, ebx
jle 0x50b704
cmp ebx, 0x20
jb 0x50b6e1
lea ecx, [ebp - 1]
lea eax, [esp + ebx + 0x33]
add ecx, ebx
cmp ebp, eax
ja 0x50b690
lea eax, [esp + 0x34]
cmp ecx, eax
jae 0x50b6e1
mov eax, ebx
and eax, 0x8000001f
jns 0x50b69e
dec eax
or eax, 0xffffffe0
inc eax
mov edx, ebx
lea edi, [esp + 0x34]
sub edx, eax
mov ecx, ebp
mov eax, ebp
neg eax
add edi, eax
lea eax, [esp + eax + 0x44]
movups xmm0, xmmword [ecx]
add esi, 0x20
lea ecx, [ecx + 0x20]
movups xmm1, xmmword [edi + ecx - 0x20]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
movups xmm1, xmmword [eax + ecx - 0x20]
movups xmm0, xmmword [ecx - 0x10]
pxor xmm1, xmm0
movups xmmword [ecx - 0x10], xmm1
cmp esi, edx
jl 0x50b6b2
mov edi, dword [esp + 0x18]
cmp esi, ebx
jge 0x50b704
lea edi, [esp + 0x34]
mov edx, ebx
sub edi, ebp
lea eax, [esi + ebp]
sub edx, esi
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x50b6f2
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
add edi, 1
mov esi, dword [esp + 0x10]
adc eax, 0
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x90]
jb 0x50b625
ja 0x50b736
cmp edi, dword [esp + 0x8c]
jb 0x50b625
mov ecx, dword [esp + 0x9c]
add ebp, ebx
mov edx, dword [esp + 0x28]
sub ecx, ebx
inc edx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x28], edx
test ecx, ecx
jne 0x50b560
mov dword [esp + 0x2c], 1
mov edi, dword [esp + 0x10]
jmp 0x50b769
mov edi, eax
push edi
call fcn.004ff720
push dword [esp + 0x20]
call fcn.004ff720
mov ecx, dword [esp + 0x7c]
add esp, 8
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00579e58
add esp, 0x68
ret