Function at 0x511740
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x68
call fcn.00581be0
mov eax, dword [0x635f14]
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.0046a900
mov ecx, eax
add esp, 4
mov dword [esp + 0x20], ecx
test ecx, ecx
jle 0x5117ce
mov eax, dword [esp + 0x9c]
xor edx, edx
div ecx
cmp eax, 0xffffffff
jb 0x5117e3
call fcn.0046b260
push str.pbkdf2_derive
push 0x145
push str.providersimplementationskdfspbkdf2.c
call fcn.0046b2b0
push edi
push 0x69
push 0x39
call fcn.0046b2e0
add esp, 0x18
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00581392
add esp, 0x68
ret
cmp dword [esp + 0xa0], edi
je 0x5118d8
mov eax, dword [esp + 0x9c]
shl eax, 3
cmp eax, 0x70
jae 0x51183e
call fcn.0046b260
push str.pbkdf2_derive
push 0x14b
push str.providersimplementationskdfspbkdf2.c
call fcn.0046b2b0
push 0
push 0xab
push 0x39
call fcn.0046b2e0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00581392
add esp, 0x68
ret
cmp dword [esp + 0x88], 0x10
jge 0x511884
call fcn.0046b260
push str.pbkdf2_derive
push 0x14f
push str.providersimplementationskdfspbkdf2.c
call fcn.0046b2b0
push 0
push 0x70
push 0x39
call fcn.0046b2e0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00581392
add esp, 0x68
ret
cmp dword [esp + 0x90], edi
ja 0x5118d8
jb 0x51189c
cmp dword [esp + 0x8c], 0x3e8
jae 0x5118d8
call fcn.0046b260
push str.pbkdf2_derive
push 0x153
push str.providersimplementationskdfspbkdf2.c
call fcn.0046b2b0
push 0
push 0x7b
push 0x39
call fcn.0046b2e0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00581392
add esp, 0x68
ret
call fcn.00505b90
mov dword [esp + 0x1c], eax
test eax, eax
je 0x5117ce
push 0
push esi
push dword [esp + 0x88]
push ebx
push eax
call fcn.00505d40
add esp, 0x14
test eax, eax
je 0x511b39
call fcn.00505b90
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x511b37
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x511b29
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.00505a80
add esp, 8
test eax, eax
je 0x511b31
push dword [esp + 0x88]
push dword [esp + 0x34]
push esi
call fcn.00506020
add esp, 0xc
test eax, eax
je 0x511b31
push 4
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00506020
add esp, 0xc
test eax, eax
je 0x511b31
push 0
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00505c90
add esp, 0xc
test eax, eax
je 0x511b31
push ebx
lea eax, [esp + 0x38]
push eax
push ebp
call fcn.00583ec0
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 0x511b06
jb 0x5119f5
cmp edi, dword [esp + 0x8c]
jae 0x511b06
push dword [esp + 0x1c]
push esi
call fcn.00505a80
add esp, 8
test eax, eax
je 0x511b31
push dword [esp + 0x20]
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00506020
add esp, 0xc
test eax, eax
je 0x511b31
push 0
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00505c90
add esp, 0xc
test eax, eax
je 0x511b31
xor esi, esi
test ebx, ebx
jle 0x511ad4
cmp ebx, 0x20
jb 0x511ab1
lea ecx, [ebp - 1]
lea eax, [esp + ebx + 0x33]
add ecx, ebx
cmp ebp, eax
ja 0x511a60
lea eax, [esp + 0x34]
cmp ecx, eax
jae 0x511ab1
mov eax, ebx
and eax, 0x8000001f
jns 0x511a6e
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 0x511a82
mov edi, dword [esp + 0x18]
cmp esi, ebx
jge 0x511ad4
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 0x511ac2
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 0x5119f5
ja 0x511b06
cmp edi, dword [esp + 0x8c]
jb 0x5119f5
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 0x511930
mov dword [esp + 0x2c], 1
mov edi, dword [esp + 0x10]
jmp 0x511b39
mov edi, eax
push edi
call fcn.00505b30
push dword [esp + 0x20]
call fcn.00505b30
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.00581392
add esp, 0x68
ret