Function at 0x50b500
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x68
call fcn.0057a390
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.00464750
mov ecx, eax
add esp, 4
mov dword [esp + 0x20], ecx
test ecx, ecx
jle 0x50b58e
mov eax, dword [esp + 0x9c]
xor edx, edx
div ecx
cmp eax, 0xffffffff
jb 0x50b5a3
call fcn.004650f0
push str.pbkdf2_derive
push 0x145
push str.providersimplementationskdfspbkdf2.c
call fcn.00465140
push edi
push 0x69
push 0x39
call fcn.00465170
add esp, 0x18
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00579fe8
add esp, 0x68
ret
cmp dword [esp + 0xa0], edi
je 0x50b698
mov eax, dword [esp + 0x9c]
shl eax, 3
cmp eax, 0x70
jae 0x50b5fe
call fcn.004650f0
push str.pbkdf2_derive
push 0x14b
push str.providersimplementationskdfspbkdf2.c
call fcn.00465140
push 0
push 0xab
push 0x39
call fcn.00465170
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00579fe8
add esp, 0x68
ret
cmp dword [esp + 0x88], 0x10
jge 0x50b644
call fcn.004650f0
push str.pbkdf2_derive
push 0x14f
push str.providersimplementationskdfspbkdf2.c
call fcn.00465140
push 0
push 0x70
push 0x39
call fcn.00465170
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00579fe8
add esp, 0x68
ret
cmp dword [esp + 0x90], edi
ja 0x50b698
jb 0x50b65c
cmp dword [esp + 0x8c], 0x3e8
jae 0x50b698
call fcn.004650f0
push str.pbkdf2_derive
push 0x153
push str.providersimplementationskdfspbkdf2.c
call fcn.00465140
push 0
push 0x7b
push 0x39
call fcn.00465170
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00579fe8
add esp, 0x68
ret
call fcn.004ff990
mov dword [esp + 0x1c], eax
test eax, eax
je 0x50b58e
push 0
push esi
push dword [esp + 0x88]
push ebx
push eax
call fcn.004ffb40
add esp, 0x14
test eax, eax
je 0x50b8f9
call fcn.004ff990
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x50b8f7
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x50b8e9
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.004ff880
add esp, 8
test eax, eax
je 0x50b8f1
push dword [esp + 0x88]
push dword [esp + 0x34]
push esi
call fcn.004ffe20
add esp, 0xc
test eax, eax
je 0x50b8f1
push 4
lea eax, [esp + 0x18]
push eax
push esi
call fcn.004ffe20
add esp, 0xc
test eax, eax
je 0x50b8f1
push 0
lea eax, [esp + 0x38]
push eax
push esi
call fcn.004ffa90
add esp, 0xc
test eax, eax
je 0x50b8f1
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 0x50b8c6
jb 0x50b7b5
cmp edi, dword [esp + 0x8c]
jae 0x50b8c6
push dword [esp + 0x1c]
push esi
call fcn.004ff880
add esp, 8
test eax, eax
je 0x50b8f1
push dword [esp + 0x20]
lea eax, [esp + 0x38]
push eax
push esi
call fcn.004ffe20
add esp, 0xc
test eax, eax
je 0x50b8f1
push 0
lea eax, [esp + 0x38]
push eax
push esi
call fcn.004ffa90
add esp, 0xc
test eax, eax
je 0x50b8f1
xor esi, esi
test ebx, ebx
jle 0x50b894
cmp ebx, 0x20
jb 0x50b871
lea ecx, [ebp - 1]
lea eax, [esp + ebx + 0x33]
add ecx, ebx
cmp ebp, eax
ja 0x50b820
lea eax, [esp + 0x34]
cmp ecx, eax
jae 0x50b871
mov eax, ebx
and eax, 0x8000001f
jns 0x50b82e
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 0x50b842
mov edi, dword [esp + 0x18]
cmp esi, ebx
jge 0x50b894
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 0x50b882
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 0x50b7b5
ja 0x50b8c6
cmp edi, dword [esp + 0x8c]
jb 0x50b7b5
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 0x50b6f0
mov dword [esp + 0x2c], 1
mov edi, dword [esp + 0x10]
jmp 0x50b8f9
mov edi, eax
push edi
call fcn.004ff930
push dword [esp + 0x20]
call fcn.004ff930
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.00579fe8
add esp, 0x68
ret