Function at 0x50bc20
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x68
call fcn.0057aae0
mov eax, dword [0x5fbea4]
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.00464e60
mov ecx, eax
add esp, 4
mov dword [esp + 0x20], ecx
test ecx, ecx
jle 0x50bcae
mov eax, dword [esp + 0x9c]
xor edx, edx
div ecx
cmp eax, 0xffffffff
jb 0x50bcc3
call fcn.004657e0
push str.pbkdf2_derive
push 0x145
push str.providersimplementationskdfspbkdf2.c
call fcn.00465830
push edi
push 0x69
push 0x39
call fcn.00465860
add esp, 0x18
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0057a738
add esp, 0x68
ret
cmp dword [esp + 0xa0], edi
je 0x50bdb8
mov eax, dword [esp + 0x9c]
shl eax, 3
cmp eax, 0x70
jae 0x50bd1e
call fcn.004657e0
push str.pbkdf2_derive
push 0x14b
push str.providersimplementationskdfspbkdf2.c
call fcn.00465830
push 0
push 0xab
push 0x39
call fcn.00465860
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0057a738
add esp, 0x68
ret
cmp dword [esp + 0x88], 0x10
jge 0x50bd64
call fcn.004657e0
push str.pbkdf2_derive
push 0x14f
push str.providersimplementationskdfspbkdf2.c
call fcn.00465830
push 0
push 0x70
push 0x39
call fcn.00465860
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0057a738
add esp, 0x68
ret
cmp dword [esp + 0x90], edi
ja 0x50bdb8
jb 0x50bd7c
cmp dword [esp + 0x8c], 0x3e8
jae 0x50bdb8
call fcn.004657e0
push str.pbkdf2_derive
push 0x153
push str.providersimplementationskdfspbkdf2.c
call fcn.00465830
push 0
push 0x7b
push 0x39
call fcn.00465860
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0057a738
add esp, 0x68
ret
call fcn.00500010
mov dword [esp + 0x1c], eax
test eax, eax
je 0x50bcae
push 0
push esi
push dword [esp + 0x88]
push ebx
push eax
call fcn.005001c0
add esp, 0x14
test eax, eax
je 0x50c019
call fcn.00500010
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x50c017
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x50c009
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.004fff00
add esp, 8
test eax, eax
je 0x50c011
push dword [esp + 0x88]
push dword [esp + 0x34]
push esi
call fcn.005004a0
add esp, 0xc
test eax, eax
je 0x50c011
push 4
lea eax, [esp + 0x18]
push eax
push esi
call fcn.005004a0
add esp, 0xc
test eax, eax
je 0x50c011
push 0
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00500110
add esp, 0xc
test eax, eax
je 0x50c011
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 0x50bfe6
jb 0x50bed5
cmp edi, dword [esp + 0x8c]
jae 0x50bfe6
push dword [esp + 0x1c]
push esi
call fcn.004fff00
add esp, 8
test eax, eax
je 0x50c011
push dword [esp + 0x20]
lea eax, [esp + 0x38]
push eax
push esi
call fcn.005004a0
add esp, 0xc
test eax, eax
je 0x50c011
push 0
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00500110
add esp, 0xc
test eax, eax
je 0x50c011
xor esi, esi
test ebx, ebx
jle 0x50bfb4
cmp ebx, 0x20
jb 0x50bf91
lea ecx, [ebp - 1]
lea eax, [esp + ebx + 0x33]
add ecx, ebx
cmp ebp, eax
ja 0x50bf40
lea eax, [esp + 0x34]
cmp ecx, eax
jae 0x50bf91
mov eax, ebx
and eax, 0x8000001f
jns 0x50bf4e
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 0x50bf62
mov edi, dword [esp + 0x18]
cmp esi, ebx
jge 0x50bfb4
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 0x50bfa2
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 0x50bed5
ja 0x50bfe6
cmp edi, dword [esp + 0x8c]
jb 0x50bed5
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 0x50be10
mov dword [esp + 0x2c], 1
mov edi, dword [esp + 0x10]
jmp 0x50c019
mov edi, eax
push edi
call fcn.004fffb0
push dword [esp + 0x20]
call fcn.004fffb0
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.0057a738
add esp, 0x68
ret