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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push esi
push edi
push 0x2a
mov dword [ebp - 0x50], ecx
xor eax, eax
pop ecx
push 3
pop edi
mov dword [ebp - 0x5c], edx
mov esi, eax
mov edx, dword [0x44d5b8]
mov dword [ebp - 0x40], 0x25
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 0xffffffae
add ecx, dword [ebp + esi*4 - 0x40]
xor edx, 0xf546d01d
inc esi
cmp esi, edi
jl 0x415693
mov dword [ebp - 0x24], 0x1f
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x1c], 0x5e
mov dword [ebp - 0x18], 0xffffff43
movups xmm1, xmmword [ebp - 0x24]
mov dword [ebp - 0x34], ecx
push 0x35
movaps xmm0, xmm1
mov dword [ebp - 0x40], 0x31
psrldq xmm0, 8
paddd xmm1, xmm0
mov dword [ebp - 0x3c], 0x12
movups xmm0, xmm1
mov dword [ebp - 0x38], 0xff87
psrldq xmm0, 4
paddd xmm1, xmm0
movd ecx, xmm1
add ecx, 0x3b
mov dword [ebp - 0x54], ecx
pop ecx
add ecx, dword [ebp + eax*4 - 0x40]
inc eax
cmp eax, edi
jl 0x4156ff
push 0x53
pop esi
push 9
mov dword [ebp - 0x58], ecx
mov ecx, 0x402040
mov dword [ebp - 0x2c], 0x9780b57f
mov dword [ebp - 0x28], 0xec6f7023
mov dword [ebp - 0x24], 0xee9c55c4
mov dword [ebp - 0x20], 0x31eb3cbd
mov dword [ebp - 0x1c], 0x2e624958
mov dword [ebp - 0x18], 0xcb574d11
pop edi
lea eax, [esi - 0x30]
cmp ax, di
ja 0x415757
add ecx, 2
movzx eax, word [ecx]
mov esi, eax
test ax, ax
jne 0x415740
jmp 0x41575d
and edx, 0x2fe68178
sub edx, 0x7157e0da
mov eax, 0x402030
mov dword [0x44d5b8], edx
mov edx, 0x402080
push eax
mov dword [ebp - 0x4c], eax
call fcn.00415428
mov esi, 0x401dbc
lea edi, [ebp - 0x10]
pop ecx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor esi, esi
mov eax, esi
mov byte [ebp + eax - 0x198], al
inc eax
cmp eax, 0x100
jb 0x41578d
mov edi, esi
mov dword [ebp - 0x30], 6
xor edx, edx
mov cl, byte [ebp + edi - 0x198]
mov eax, edi
mov byte [ebp - 1], cl
div dword [ebp - 0x30]
movzx ecx, cl
movzx eax, byte [ebp + edx - 0x10]
add eax, esi
add ecx, eax
movzx esi, cl
mov al, byte [ebp + esi - 0x198]
mov byte [ebp + edi - 0x198], al
inc edi
mov al, byte [ebp - 1]
mov byte [ebp + esi - 0x198], al
cmp edi, 0x100
jb 0x4157a5
xor esi, esi
mov dword [ebp - 8], esi
mov edi, esi
lea eax, [edi + 1]
movzx edi, al
mov eax, dword [ebp - 8]
mov cl, byte [ebp + edi - 0x198]
movzx edx, cl
add eax, edx
movzx eax, al
mov dword [ebp - 8], eax
mov al, byte [ebp + eax - 0x198]
mov byte [ebp + edi - 0x198], al
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0x198], cl
movzx eax, byte [ebp + edi - 0x198]
add eax, edx
movzx eax, al
mov al, byte [ebp + eax - 0x198]
xor al, byte [ebp + esi - 0x2c]
mov byte [ebp + esi - 0x98], al
inc esi
cmp esi, 0x18
jb 0x4157ed
mov eax, dword [0x44d5b8]
lea edi, [ebp - 0x24]
mov esi, 0x401dc4
mov dword [ebp - 0x10], 0x59edf921
xor ecx, ecx
mov word [ebp - 0xc], 0x8cf4
or eax, 0x1f269c79
mov byte [ebp - 0x80], cl
imul eax, eax, 0x8ca67c12
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x48], eax
mov eax, ecx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, ecx
mov byte [ebp + eax - 0x198], al
inc eax
cmp eax, 0x100
jb 0x41587c
mov esi, ecx
xor edx, edx
mov dword [ebp - 0x30], 0xe
mov eax, esi
mov cl, byte [ebp + esi - 0x198]
div dword [ebp - 0x30]
mov byte [ebp - 1], cl
movzx ecx, cl
movzx eax, byte [ebp + edx - 0x24]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [ebp + edi - 0x198]
mov byte [ebp + esi - 0x198], al
inc esi
mov al, byte [ebp - 1]
mov byte [ebp + edi - 0x198], al
cmp esi, 0x100
jb 0x41588d
xor esi, esi
mov dword [ebp - 8], esi
mov edi, esi
lea eax, [edi + 1]
movzx edi, al
mov eax, dword [ebp - 8]
push 6
mov cl, byte [ebp + edi - 0x198]
movzx edx, cl
add eax, edx
movzx eax, al
mov dword [ebp - 8], eax
mov al, byte [ebp + eax - 0x198]
mov byte [ebp + edi - 0x198], al
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0x198], cl
movzx eax, byte [ebp + edi - 0x198]
add eax, edx
movzx eax, al
mov al, byte [ebp + eax - 0x198]
xor al, byte [ebp + esi - 0x10]
mov byte [ebp + esi - 0x64], al
inc esi
pop eax
cmp esi, eax
jb 0x4158dc
mov ecx, dword [ebp - 0x48]
xor eax, eax
mov edx, dword [ebp - 0x50]
add ecx, 0x1f92f9f
mov dword [0x44d5b8], ecx
mov byte [ebp - 0x5e], al
cmp edx, dword [ebp - 0x34]
je 0x415af5
imul ecx, ecx, 0xc695d37f
mov edi, eax
mov dword [ebp - 0x14], 0x53
mov edx, eax
mov dword [ebp - 0x10], 0x3c
mov dword [ebp - 0xc], 0xffffff71
mov dword [ebp - 0x34], ecx
sub edi, dword [ebp + edx*4 - 0x14]
inc edx
cmp edx, 3
jl 0x415975
mov esi, eax
mov dword [ebp - 0x14], 0x59
mov dword [ebp - 0x10], 0x21
mov edx, eax
mov dword [ebp - 0xc], 0xffffff86
sub esi, dword [ebp + edx*4 - 0x14]
inc edx
cmp edx, 3
jl 0x415998
push 0x3c
mov dword [ebp - 0x14], 0x18
mov edx, eax
mov dword [ebp - 0x10], 9
mov dword [ebp - 0xc], 0xffffffa3
pop ecx
add ecx, dword [ebp + edx*4 - 0x14]
inc edx
cmp edx, 3
jl 0x4159bc
mov dword [ebp - 0x24], 0x36
xorps xmm1, xmm1
mov dword [ebp - 0x20], 0x2b
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x18], 0xffffff9d
movups xmm0, xmmword [ebp - 0x24]
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x34]
psubd xmm1, xmm0
mov dword [ebp - 0x10], 0x52
movaps xmm0, xmm1
mov dword [ebp - 0xc], 0xffffff4c
psrldq xmm0, 8
or ecx, 0xe5bd2c15
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
push 0x62
paddd xmm1, xmm0
pop edx
add edx, dword [ebp + eax*4 - 0x10]
inc eax
cmp eax, 2
jl 0x415a22
mov dword [ebp - 0x30], edx
mov al, 0x6e
mov dword [ebp - 0x7c], 0x18
sub al, 0x30
cmp al, 9
ja 0x415a4d
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
mov al, byte [eax]
test al, al
jne 0x415a38
jmp 0x415a53
xor ecx, 0xdb316ecc
mov eax, dword [ebp - 0x48]
or ecx, 0xe2ca6568
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x7c]
mov dword [0x44d5b8], ecx
push eax
mov eax, dword [ebp - 0x58]
or eax, 0x1f0000
mov dword [ebp - 0x78], edi
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x70], esi
push eax
movd dword [ebp - 0x6c], xmm1
call fcn.0044c7a9
add esp, 0x10
cmp dword [ebp - 0x44], 0
jne 0x415acf
xor ecx, ecx
mov dword [ebp - 0x40], 0x16
mov dword [ebp - 0x3c], 0x53
mov eax, ecx
mov dword [ebp - 0x38], 0xffffff97
sub ecx, dword [ebp + eax*4 - 0x40]
inc eax
cmp eax, 3
jl 0x415abe
mov eax, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x415af5
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x64]
push dword [ebp - 0x44]
call fcn.0041e657
mov edx, eax
lea ecx, [ebp - 0x98]
call fcn.0041e636
call eax
push dword [ebp - 0x44]
call fcn.0044c79f
pop ecx
pop edi
pop esi
leave
ret