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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
mov eax, dword [0x4016c8]
xor ecx, ecx
push ebx
mov dword [ebp - 0x14], eax
mov ax, word [0x4016cc]
push esi
push edi
mov word [ebp - 0x10], ax
mov edi, ecx
mov dword [ebp - 0x48], 0x1806cda1
mov eax, ecx
mov dword [ebp - 0x44], 0x6cfad9dc
mov dword [ebp - 0x40], 0x7c3be2b2
mov dword [ebp - 0x3c], 0x594a3f14
mov dword [ebp - 0x38], 0xa9fa8c1d
mov dword [ebp - 0x34], 0x595a825b
mov dword [ebp - 0x30], 0xdfc2fc67
mov dword [ebp - 0x2c], 0x627c6ce1
mov dword [ebp - 0x28], 0x79e4c63c
mov dword [ebp - 0x24], 0xfce8a4fa
mov dword [ebp - 0x20], 0x1dfeda7e
mov byte [ebp + eax - 0x178], al
inc eax
cmp eax, 0x100
jb 0x40f1a3
push 5
mov esi, ecx
pop ecx
xor edx, edx
mov bl, byte [ebp + esi - 0x178]
mov eax, esi
div ecx
movzx ecx, bl
push 5
movzx eax, byte [ebp + edx - 0x14]
add eax, edi
add ecx, eax
movzx edi, cl
pop ecx
mov al, byte [ebp + edi - 0x178]
mov byte [ebp + esi - 0x178], al
inc esi
mov byte [ebp + edi - 0x178], bl
cmp esi, 0x100
jb 0x40f1b7
mov ebx, dword [0x44d484]
xor eax, eax
mov esi, dword [0x44d4f4]
mov edx, eax
mov ecx, eax
mov edi, eax
lea eax, [ecx + 1]
movzx ecx, al
mov dword [ebp - 4], ecx
mov al, byte [ebp + ecx - 0x178]
mov byte [ebp - 5], al
movzx eax, al
mov dword [ebp - 0x10], eax
add eax, edx
movzx eax, al
mov dword [ebp - 0xc], eax
imul edx, ebx, 0x69fac027
xor ebx, ebx
mov al, byte [ebp + eax - 0x178]
mov byte [ebp + ecx - 0x178], al
mov eax, ebx
mov ecx, 0x4017cc
inc eax
lea ecx, [ecx + 2]
cmp eax, 0x292
jl 0x40f25f
cmp word [ecx], bx
jne 0x40f246
cmp eax, 0x1099
jg 0x40f26b
jmp 0x40f265
add edx, 0x9de27be
imul esi, edx, 0x9b9b9374
lea ebx, [esi - 0x262e1846]
call fcn.0040cc17
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 5]
mov byte [ebp + edx - 0x178], al
movzx eax, byte [ebp + ecx - 0x178]
add eax, dword [ebp - 0x10]
movzx eax, al
mov al, byte [ebp + eax - 0x178]
xor al, byte [ebp + edi - 0x48]
mov byte [ebp + edi - 0x1a8], al
inc edi
cmp edi, 0x2c
jb 0x40f208
mov dword [ebp - 4], esi
lea edi, [ebp - 0x78]
mov esi, 0x4016d0
mov dword [0x44d484], ebx
xor ecx, ecx
mov dword [ebp - 0x14], 0xed7a4664
mov byte [ebp - 0x17c], cl
mov eax, ecx
mov word [ebp - 0x10], 0x28d9
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
or esi, 0x172b4d1d
mov byte [ebp + eax - 0x178], al
inc eax
cmp eax, 0x100
jb 0x40f2e5
mov edi, ecx
xor edx, edx
mov bl, byte [ebp + edi - 0x178]
push 0x12
mov eax, edi
or esi, 0xe9fd61b8
pop ecx
div ecx
movzx ecx, bl
movzx eax, byte [ebp + edx - 0x78]
add eax, dword [ebp - 0xc]
add ecx, eax
movzx ecx, cl
mov dword [ebp - 0xc], ecx
mov al, byte [ebp + ecx - 0x178]
mov byte [ebp + edi - 0x178], al
inc edi
mov byte [ebp + ecx - 0x178], bl
cmp edi, 0x100
jb 0x40f2fc
xor eax, eax
mov dword [0x44d4f4], esi
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
lea eax, [ebx + 1]
add esi, 0xdc2c4609
movzx ebx, al
mov eax, dword [ebp - 4]
mov cl, byte [ebp + ebx - 0x178]
movzx edx, cl
add eax, edx
movzx eax, al
mov dword [ebp - 4], eax
mov al, byte [ebp + eax - 0x178]
mov byte [ebp + ebx - 0x178], al
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x178], cl
movzx eax, byte [ebp + ebx - 0x178]
add eax, edx
movzx eax, al
mov al, byte [ebp + eax - 0x178]
xor al, byte [ebp + edi - 0x14]
mov byte [ebp + edi - 0x64], al
inc edi
cmp edi, 6
jb 0x40f352
xor ecx, ecx
mov dword [0x44d4f4], esi
push 0x21
mov byte [ebp - 0x5e], cl
mov eax, ecx
pop ebx
mov dword [ebp - 0x1c], 0x14
mov dword [ebp - 0x18], 0x5c
mov dword [ebp - 0x14], 0x4b
mov dword [ebp - 0x10], 0x324
add ebx, dword [ebp + eax*4 - 0x1c]
or esi, 0xfd3d5fb4
inc eax
cmp eax, 4
jl 0x40f3d9
mov dword [0x44d4f4], esi
mov edi, 0x3c00
mov dword [ebp - 0x78], 0x32
mov eax, ecx
mov dword [ebp - 0x74], 0x1b
mov dword [ebp - 0x70], 0x49
mov dword [ebp - 0x6c], 0x56
mov dword [ebp - 0x68], 0x3714
sub edi, dword [ebp + eax*4 - 0x78]
inc eax
cmp eax, 5
jl 0x40f419
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x40
push eax
lea ecx, [ebp - 0x64]
call fcn.0041e657
mov edx, eax
lea ecx, [ebp - 0x1a8]
call fcn.0041e636
call eax
test eax, eax
jne 0x40f4c7
mov ebx, dword [0x44d484]
xor edx, edx
mov esi, dword [0x44d4f4]
mov edi, edx
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 0x18], 0x34
mov dword [ebp - 0x14], 0x4c
mov dword [ebp - 0x10], 0xffffff74
mov ecx, edx
mov eax, 0x4017cc
inc ecx
lea eax, [eax + 2]
cmp ecx, 0xa99
jg 0x40f48f
cmp word [eax], dx
jne 0x40f47c
jmp 0x40f495
and ebx, 0xf415244e
and esi, 0xdf96d603
imul esi, esi, 0x23f1edc7
call fcn.0040cdc3
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + edi*4 - 0x18]
inc edi
mov dword [ebp - 0xc], eax
push 0
pop edx
cmp edi, 3
jl 0x40f475
mov dword [0x44d4f4], esi
mov dword [0x44d484], ebx
jmp 0x40f4e7
mov eax, ebx
cdq
push edx
push eax
push dword [ebp - 0x50]
push dword [ebp - 0x54]
call fcn.0044c7c0
mov esi, eax
mov ecx, edx
mov eax, edi
cdq
push edx
push eax
push ecx
push esi
call fcn.0044c7c0
pop edi
pop esi
pop ebx
leave
ret