Function at 0x408844
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ecx, 4
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x14c]
mov esi, 0x42bfaa
push ebx
sub esp, 0x15c
and dword [0x4291ec], 0x880106c0
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 4], str.TPM_1.2:_Signed_data_cannot_include_additional_DER_information.
lea edi, [ebp - 0x12c]
mov esi, 0x42bfba
mov dword [esp], str.TPM_1.2:_Signed_data_cannot_include_additional_DER_information.
call fcn.004123f4
mov ecx, 5
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov byte [ebp + eax - 0x118], al
inc eax
cmp eax, 0x100
jne 0x408894
mov eax, dword [0x429464]
xor edi, edi
xor ecx, ecx
mov esi, 0x13
or eax, 0x54c72459
mov dword [0x4291ec], eax
mov eax, ecx
xor edx, edx
mov bl, byte [ebp + ecx - 0x118]
div esi
movzx eax, byte [ebp + edx - 0x12c]
movzx edx, bl
add eax, edx
add eax, edi
movzx edi, al
mov al, byte [ebp + edi - 0x118]
mov byte [ebp + ecx - 0x118], al
inc ecx
mov byte [ebp + edi - 0x118], bl
cmp ecx, 0x100
jne 0x4088bb
xor edi, edi
xor esi, esi
xor ebx, ebx
add dword [0x429464], 0x3ed40a39
inc ebx
call fcn.00411a10
mov eax, dword [0x4292e8]
movzx ebx, bl
and dword [0x429464], 0x62fe3a85
xor eax, 0x5f74b7cc
mov dword [0x4292e8], eax
or eax, 0xd9796554
mov dword [0x4291ec], eax
call fcn.00414d98
mov al, byte [ebp + ebx - 0x118]
lea edx, [eax + esi]
movzx esi, dl
mov dl, byte [ebp + esi - 0x118]
mov byte [ebp + ebx - 0x118], dl
mov byte [ebp + esi - 0x118], al
add al, byte [ebp + ebx - 0x118]
movzx eax, al
mov al, byte [ebp + eax - 0x118]
xor al, byte [ebp + edi - 0x14c]
mov byte [ebp + edi - 0x13c], al
inc edi
cmp edi, 0x10
jne 0x4088fe
mov byte [ebp - 0x12c], 0
call fcn.00411a10
mov eax, dword [0x429464]
and eax, 0xc3ee091
mov dword [0x4292e8], eax
call fcn.00414d98
sub dword [0x4292e8], 0x158c7779
and dword [0x429464], 0xc8ed4b6f
call fcn.00414d98
lea edx, [ebp - 0x13c]
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], edx
mov dword [esp + 4], 0x1164
mov dword [esp], str.p9chsJY6fT8FhgCsJQxaw9AmZDnRDiUUrmq2BvFqUOYgQ3dgi1YsM2kWC3vuszP7VEUxokNCEzns8PnnbYe5z412EXqN54JaM0MyzD_DyIkw3ZlAAUcnsjAnekraJEDtQpQKAqQdbE0tYrGJ3Q2OJanhRlC37e6aMzaXWujEyiEIWcZCdtTphH3hNB0XWh8f2lkK6GmsKEdB8muilVQI4rilmS3uvYTbXyxH7FBv1Hh_8sKHzhSTPx5sMzSxeyZUPqEqHZrI3Zb5i5tB9MKEuIPkKvlRtKBq5zANou30yPq8sVTYBoskQrqCR1sZ0xHPnfxGWz_bh6yADyZP0jtgty92a8pfqHolTlQOuucKC8a8rc1VOjnL6YjqA6aELXkdtzotgbcCPX921aUdYStUvBTz0DJrE5MRZloaAQTLk582SswqqweAvjDSL77P3WfgbqD0DA4NSmSlSriKCdTpzdjQGZdIyz86r5N8KvLY2JDRAL1aT2qYNWhCsitvzLWDNFIR3QJ11j1NPb796kkKPuv8JU130JTYl3KAAtn0MYd7EVn9_TfGgaV5GFP9rMCLK6BmLcfyzgfzV1qXxikPMA6JXs0TMS15jZ7Q3_9mFWpBv3NSjdzVmcXWueULYGjQo_dvTJHp6bgs5CeJfk0CBt4hpL1MuNAX6O0NFLeGZS6SDtBQ9r3jsKDf0w_MkNdPQHl8nPHfW9w1XWM7C75hxhPQkOvKq4K2XAzAjMCxmZCa2LJ3_k79cHy5ugYCXQynPvifDTdTKrhSGmuiVzqONLDJWEcVaM75yvErJAf5ERWuhhJ13QoQ8DxYe183zs8Lga1zf6pMbXiP3PBT4WxzFmxFG1HQzRFMCXeS2k0j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