Function at 0x473c10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f466f
mov eax, dword fs:[0]
push eax
mov eax, 0x108c0
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 eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x108a4], ecx
mov ecx, eax
mov dword [ebp - 0x108b8], eax
call fcn.004132b0
push 0x290
lea eax, [ebp - 0x354]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x354]
call fcn.00482d90
push 0x90
lea eax, [ebp - 0xc4]
mov dword [ebp - 4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xc4]
call fcn.00472680
push 0x10540
lea eax, [ebp - 0x10894]
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 - 0x10878]
mov dword [ebp - 0x1087c], 0
call fcn.004118f0
lea ecx, [ebp - 0x1085c]
mov byte [ebp - 4], 2
call fcn.004d1000
lea ecx, [ebp - 0x10410]
mov byte [ebp - 4], 3
call fcn.004d0fd0
xorps xmm0, xmm0
movlpd qword [ebp - 0x1088c], xmm0
movlpd qword [ebp - 0x10884], xmm0
push esi
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 4
mov dword [ebp - 0xc0], 1
call fcn.00411fb0
lea ecx, [ebp - 0xb4]
call fcn.00401c90
mov esi, dword [ebp - 0x108a4]
lea ecx, [ebp - 0x354]
shl eax, 3
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0x10894]
push esi
push eax
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xbc], 3
push eax
push 0
call fcn.00472920
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x34]
movq qword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x34], xmm0
call fcn.004118f0
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.00411fb0
lea ecx, [ebp - 0x34]
call fcn.00401c90
mov dword [ebp - 0x1089c], eax
cmp eax, 0x10
jb 0x473f71
test al, 7
jne 0x473f71
mov ecx, dword [ebp - 0x108b8]
shr eax, 3
dec eax
mov dword [ebp - 0x1089c], eax
shl eax, 3
push eax
push 0
mov dword [ebp - 0x108a0], eax
call fcn.00412300
lea ecx, [ebp - 0x34]
call fcn.00414910
mov ecx, dword [ebp - 0x108b8]
mov esi, eax
call fcn.00414910
push dword [ebp - 0x108a0]
mov edi, eax
lea ecx, [esi + 8]
mov eax, dword [esi]
push ecx
mov dword [ebp - 0x108a8], eax
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 4]
push edi
mov dword [ebp - 0x108b0], eax
mov dword [ebp - 0x14], eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x1089c]
mov eax, 5
add esp, 0xc
mov dword [ebp - 0x108b4], eax
add edi, dword [ebp - 0x108a0]
nop dword [eax]
lea esi, [edi - 8]
mov edx, ecx
mov dword [ebp - 0x108ac], edx
cmp ecx, 1
jl 0x473efe
movzx ecx, cl
movzx eax, al
imul ecx, eax
mov dword [ebp - 0x108cc], ecx
mov ecx, dword [ebp - 0x108b0]
nop dword [eax]
mov eax, dword [ebp - 0x108a8]
mov dword [ebp - 0x108c8], eax
mov al, byte [ebp - 0x108cc]
mov dword [ebp - 0x108c4], ecx
add al, dl
shr ecx, 0x18
xor al, cl
lea ecx, [ebp - 0x354]
mov byte [ebp - 0x108c1], al
mov eax, dword [esi]
mov dword [ebp - 0x108c0], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x108bc], eax
lea eax, [ebp - 0x108c8]
push eax
push eax
call fcn.004750b0
mov eax, dword [ebp - 0x108c8]
lea esi, [esi - 8]
mov edx, dword [ebp - 0x108ac]
mov ecx, dword [ebp - 0x108c4]
dec edx
mov dword [ebp - 0x108a8], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x108c0]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x108bc]
mov dword [esi + 0xc], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x108ac], edx
cmp edx, 1
jge 0x473e60
mov eax, dword [ebp - 0x108b4]
mov dword [ebp - 0x108b0], ecx
mov ecx, dword [ebp - 0x1089c]
sub eax, 1
mov dword [ebp - 0x108b4], eax
jns 0x473e30
mov edi, dword [ebp - 0x108b8]
mov ecx, edi
mov byte [ebp - 0x10895], 1
call fcn.00401c90
cmp eax, dword [ebp - 0x108a0]
je 0x473f4a
mov esi, dword [ebp - 0x108a4]
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 0x473f88
xor eax, eax
nop dword [eax]
cmp byte [ebp + eax - 0x18], 0xa6
jne 0x473f5f
inc eax
cmp eax, 8
jl 0x473f50
jmp 0x473f96
mov ecx, dword [ebp - 0x108a4]
push str.KEK_is_not_the_correct_key.
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x473f8f
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 - 0x1089c]
push str.keyDataLen
mov ecx, esi
call fcn.00431470
mov byte [ebp - 0x10895], 0
lea ecx, [ebp - 0x34]
call fcn.00411b10
mov eax, dword [ebp - 0x1087c]
mov byte [ebp - 4], 6
mov dword [ebp - method._ckCryptContext.virtual_0], vtable._ckCryptContext.0
test eax, eax
je 0x473fc9
push eax
call fcn.004209e0
add esp, 4
mov dword [ebp - 0x1087c], 0
lea ecx, [ebp - 0x10410]
call fcn.004d1040
lea ecx, [ebp - 0x1085c]
call fcn.004d1050
lea ecx, [ebp - 0x10878]
call fcn.00411b10
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0xc4], vtable._ckSymSettings.0
call fcn.00411b10
lea ecx, [ebp - 0x78]
call fcn.00411b10
lea ecx, [ebp - 0x94]
call fcn.00411b10
lea ecx, [ebp - 0xb4]
call fcn.00411b10
lea ecx, [ebp - 0x354]
call fcn.00482e10
mov al, byte [ebp - 0x10895]
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