Function at 0x474050
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f46df
mov eax, dword fs:[0]
push eax
mov eax, 0x108b0
call fcn.005ec690
mov eax, dword [0x6baac0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x108a4], ecx
mov dword [ebp - 0x108a8], eax
call fcn.004132b0
push 0x290
lea eax, [ebp - 0x34c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x34c]
call fcn.00482d90
push 0x90
lea eax, [ebp - 0xbc]
mov dword [ebp - 4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xbc]
call fcn.00472680
push 0x10540
lea eax, [ebp - 0x1088c]
mov byte [ebp - 4], 1
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - method._ckCryptContext.virtual_0], vtable._ckCryptContext.0
lea ecx, [ebp - 0x10870]
mov dword [ebp - 0x10874], 0
call fcn.004118f0
lea ecx, [ebp - 0x10854]
mov byte [ebp - 4], 2
call fcn.004d1000
lea ecx, [ebp - 0x10408]
mov byte [ebp - 4], 3
call fcn.004d0fd0
xorps xmm0, xmm0
movlpd qword [ebp - 0x10884], xmm0
movlpd qword [ebp - 0x1087c], xmm0
push esi
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 4
mov dword [ebp - 0xb8], 1
call fcn.00411fb0
lea ecx, [ebp - 0xac]
call fcn.00401c90
mov esi, dword [ebp - 0x108a8]
lea ecx, [ebp - 0x34c]
shl eax, 3
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0x1088c]
push esi
push eax
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xb4], 3
push eax
push 1
call fcn.00472920
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x2c]
movq qword [ebp - 0x1c], xmm0
movups xmmword [ebp - 0x2c], xmm0
call fcn.004118f0
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
mov byte [ebp - 0x14], 1
call fcn.00411fb0
lea ecx, [ebp - 0x2c]
call fcn.00401c90
mov dword [ebp - 0x10898], eax
cmp eax, 2
jb 0x47434c
test al, 7
jne 0x47434c
mov esi, dword [ebp - 0x108a4]
mov ecx, esi
push 8
push 0xa6
call fcn.00412300
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.00411fb0
mov eax, dword [ebp - 0x10898]
mov ecx, esi
shr eax, 3
mov dword [ebp - 0x10894], eax
call fcn.00414910
mov ecx, dword [ebp - 0x10894]
mov edi, eax
xor eax, eax
mov dword [ebp - 0x108a0], eax
lea edx, [edi + 8]
nop
mov dword [ebp - 0x1089c], 1
mov esi, edx
cmp ecx, 1
jl 0x4742fa
movzx eax, al
movzx ecx, cl
imul ecx, eax
mov dword [ebp - 0x108bc], ecx
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [edi]
lea ecx, [ebp - 0x34c]
mov dword [ebp - 0x108b8], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x108b4], eax
mov eax, dword [esi]
mov dword [ebp - 0x108b0], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x108ac], eax
lea eax, [ebp - 0x108b8]
push eax
push eax
call fcn.00476e70
mov eax, dword [ebp - 0x108b8]
lea esi, [esi + 8]
mov ecx, dword [ebp - 0x1089c]
mov dword [edi], eax
mov eax, dword [ebp - 0x108b4]
mov dword [edi + 4], eax
mov al, byte [ebp - 0x108bc]
add al, cl
inc ecx
xor byte [edi + 7], al
mov eax, dword [ebp - 0x108b0]
mov dword [esi - 8], eax
mov eax, dword [ebp - 0x108ac]
mov dword [esi - 4], eax
mov dword [ebp - 0x1089c], ecx
cmp ecx, dword [ebp - 0x10894]
jle 0x474270
mov ecx, dword [ebp - 0x10894]
lea edx, [edi + 8]
mov eax, dword [ebp - 0x108a0]
inc eax
mov dword [ebp - 0x108a0], eax
cmp eax, 5
jle 0x474240
mov edi, dword [ebp - 0x108a4]
mov ecx, edi
mov byte [ebp - 0x1088d], 1
call fcn.00401c90
mov edx, dword [ebp - 0x10898]
add edx, 8
cmp eax, edx
je 0x474371
mov esi, dword [ebp - 0x108a8]
mov ecx, esi
push str.Output_is_not_the_expected_size.
mov eax, dword [esi]
call dword [eax + 0x14]
mov ecx, edi
call fcn.00401c90
push eax
push str.outNumBytes
jmp 0x474363
mov eax, dword [esi]
mov ecx, esi
push str.Key_data_must_be_a_multiple_of_8_bytes_in_length.
call dword [eax + 0x14]
push dword [ebp - 0x10898]
push str.keyDataLen
mov ecx, esi
call fcn.00431470
mov byte [ebp - 0x1088d], 0
lea ecx, [ebp - 0x2c]
call fcn.00411b10
mov eax, dword [ebp - 0x10874]
mov byte [ebp - 4], 6
mov dword [ebp - method._ckCryptContext.virtual_0], vtable._ckCryptContext.0
test eax, eax
je 0x4743a4
push eax
call fcn.004209e0
add esp, 4
mov dword [ebp - 0x10874], 0
lea ecx, [ebp - 0x10408]
call fcn.004d1040
lea ecx, [ebp - 0x10854]
call fcn.004d1050
lea ecx, [ebp - 0x10870]
call fcn.00411b10
lea ecx, [ebp - 0x54]
mov dword [ebp - 0xbc], vtable._ckSymSettings.0
call fcn.00411b10
lea ecx, [ebp - 0x70]
call fcn.00411b10
lea ecx, [ebp - 0x8c]
call fcn.00411b10
lea ecx, [ebp - 0xac]
call fcn.00411b10
lea ecx, [ebp - 0x34c]
call fcn.00482e10
mov al, byte [ebp - 0x1088d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ebe04
mov esp, ebp
pop ebp
ret