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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov dword [ebp - 0x1c], 0x60
mov dword [ebp - 0x18], 0x1e
mov dword [ebp - 0x14], 0x59
mov dword [ebp - 0x10], 2
movups xmm1, xmmword [ebp - 0x1c]
push ebx
push esi
push edi
mov esi, 0x401b6c
mov dword [ebp - 0x70], ecx
movaps xmm0, xmm1
mov dword [ebp - 0x48], 0xe4765ac4
psrldq xmm0, 8
lea edi, [ebp - 0x1c]
paddd xmm1, xmm0
mov dword [ebp - 0x44], 0xae923e37
movsd dword es:[edi], dword [esi]
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
mov dword [ebp - 0x40], 0x9eaf9599
movd eax, xmm1
movsd dword es:[edi], dword [esi]
push 0xe
add eax, 0x2b
mov dword [ebp - 0x3c], 0xa8a555a9
mov dword [ebp - 0x64], eax
movsd dword es:[edi], dword [esi]
pop eax
mov byte [ebp - 0x26], al
xor eax, eax
mov dword [ebp - 0x38], 0xdc1e6bf5
mov ecx, eax
movsw word es:[edi], word [esi]
mov dword [ebp - 0x34], 0xd81d7e83
mov dword [ebp - 0x30], 0x7489fa6a
mov dword [ebp - 0x2c], 0x6a228741
movsb byte es:[edi], byte [esi]
mov word [ebp - 0x28], 0xac72
mov edi, eax
mov dword [ebp - 0x25], 0x431195da
mov dword [ebp - 0x21], 0xcf5778bc
mov byte [ebp - 0x1d], 0xb
mov byte [ebp + ecx - 0x170], cl
inc ecx
cmp ecx, 0x100
jb 0x40de9c
mov esi, eax
xor edx, edx
mov bl, byte [ebp + esi - 0x170]
push 0xe
mov eax, esi
pop ecx
div ecx
movzx ecx, bl
movzx eax, byte [ebp + edx - 0x1c]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [ebp + edi - 0x170]
mov byte [ebp + esi - 0x170], al
inc esi
mov byte [ebp + edi - 0x170], bl
cmp esi, 0x100
jb 0x40deae
xor ebx, ebx
mov edi, ebx
mov esi, ebx
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [ebp + edi - 0x170]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
mov al, byte [ebp + ebx - 0x170]
mov byte [ebp + edi - 0x170], al
mov byte [ebp + ebx - 0x170], cl
movzx eax, byte [ebp + edi - 0x170]
add eax, edx
movzx eax, al
mov al, byte [ebp + eax - 0x170]
xor al, byte [ebp + esi - 0x48]
mov byte [ebp + esi - 0x1a0], al
inc esi
cmp esi, 0x2c
jb 0x40def1
push 0x73
pop edx
xor ebx, ebx
mov ecx, 0x401e88
push 9
mov byte [ebp - 0x174], bl
mov dword [ebp - 8], ecx
pop esi
lea eax, [edx - 0x30]
cmp ax, si
ja 0x40df74
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x40df57
mov esi, dword [0x44a27c]
jmp 0x40df80
mov esi, dword [0x44a27c]
xor esi, 0xff5528d0
and esi, 0x518f006b
push ecx
mov edx, esi
mov dword [ebp - 0xc], esi
call fcn.0040cec2
mov eax, dword [0x401b88]
add esp, 4
mov dword [ebp - 0x6c], eax
mov ax, word [0x401b8c]
mov word [ebp - 0x68], ax
mov eax, ebx
mov dword [ebp - 0x14], 0x95452153
mov word [ebp - 0x10], 0x17f2
mov dword [ebp - 4], ebx
mov byte [ebp + eax - 0x170], al
inc eax
cmp eax, 0x100
jb 0x40dfb8
mov edi, ebx
xor edx, edx
mov bl, byte [ebp + edi - 0x170]
push 5
mov eax, edi
pop ecx
div ecx
movzx ecx, bl
movzx eax, byte [ebp + edx - 0x6c]
add eax, dword [ebp - 4]
add ecx, eax
movzx ecx, cl
mov dword [ebp - 4], ecx
mov al, byte [ebp + ecx - 0x170]
mov byte [ebp + edi - 0x170], al
inc edi
mov byte [ebp + ecx - 0x170], bl
cmp edi, 0x100
jb 0x40dfc9
xor ebx, ebx
mov esi, ebx
mov edi, ebx
lea eax, [esi + 1]
movzx esi, al
mov cl, byte [ebp + esi - 0x170]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
mov al, byte [ebp + ebx - 0x170]
mov byte [ebp + esi - 0x170], al
mov byte [ebp + ebx - 0x170], cl
movzx eax, byte [ebp + esi - 0x170]
add eax, edx
movzx eax, al
mov al, byte [ebp + eax - 0x170]
xor al, byte [ebp + edi - 0x14]
mov byte [ebp + edi - 0x6c], al
inc edi
cmp edi, 6
jb 0x40e010
mov esi, dword [ebp - 0xc]
mov ecx, 0x401e70
push 0x73
pop edx
push 9
xor ebx, ebx
pop edi
lea eax, [edx - 0x30]
cmp ax, di
ja 0x40e084
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x40e06d
jmp 0x40e0c0
push 0x6f
mov ecx, 0x401f34
pop edx
lea eax, [edx - 0x30]
cmp ax, di
ja 0x40e0a3
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x40e08c
jmp 0x40e0a9
and esi, 0xb2aada0c
xor esi, 0xe020d0a7
push ecx
mov edx, esi
call fcn.0040cec2
add esp, 4
add esi, 0x1d0a19bf
or esi, 0x5581e51
push ecx
mov edx, esi
mov dword [0x44a27c], esi
call fcn.0040cec2
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x6c]
add eax, eax
mov byte [ebp - 0x66], bl
add esp, 4
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x70]
call fcn.0041d4e5
mov edx, eax
lea ecx, [ebp - 0x1a0]
call fcn.0041d4c4
call eax
test eax, eax
jne 0x40e2ba
mov esi, 0x401b90
mov dword [ebp - 0x60], 0x19a0a2aa
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x5c], 0xd2cbe190
push 0xe
pop eax
movsd dword es:[edi], dword [esi]
push 0x73
pop ecx
push 9
movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x58], al
mov dword [ebp - 0x57], 0x998b765a
mov dword [ebp - 0x53], 0x500a40eb
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x4f], 0x9730c597
mov word [ebp - 0x4b], 0x3c85
mov byte [ebp - 0x49], 0x1b
movsw word es:[edi], word [esi]
pop edx
lea eax, [ecx - 0x30]
cmp ax, dx
ja 0x40e171
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
movzx eax, word [eax]
mov ecx, eax
test ax, ax
jne 0x40e14e
mov esi, dword [0x44a27c]
jmp 0x40e17d
mov esi, dword [0x44a27c]
xor esi, 0x4c0acf01
or esi, 0x12d0d3bb
push ecx
mov edx, esi
call fcn.0040cec2
add esp, 4
mov eax, ebx
imul esi, esi, 0x91f41f67
mov byte [ebp + eax - 0x170], al
inc eax
cmp eax, 0x100
jb 0x40e190
mov dword [ebp - 8], esi
mov edi, ebx
mov esi, ebx
xor edx, edx
mov bl, byte [ebp + edi - 0x170]
push 0xd
mov eax, edi
pop ecx
div ecx
movzx ecx, bl
movzx eax, byte [ebp + edx - 0x1c]
add eax, esi
add ecx, eax
movzx esi, cl
mov al, byte [ebp + esi - 0x170]
mov byte [ebp + edi - 0x170], al
inc edi
mov byte [ebp + esi - 0x170], bl
cmp edi, 0x100
jb 0x40e1ac
mov esi, dword [ebp - 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ebx
lea eax, [ebx + 1]
movzx ebx, al
mov eax, dword [ebp - 4]
mov cl, byte [ebp + ebx - 0x170]
movzx edx, cl
add eax, edx
movzx eax, al
mov dword [ebp - 4], eax
mov al, byte [ebp + eax - 0x170]
mov byte [ebp + ebx - 0x170], al
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x170], cl
movzx eax, byte [ebp + ebx - 0x170]
add eax, edx
movzx eax, al
mov al, byte [ebp + eax - 0x170]
xor al, byte [ebp + edi - 0x60]
mov byte [ebp + edi - 0x38], al
inc edi
cmp edi, 0x18
jb 0x40e1f3
xor esi, 0x6ea8f44
mov dword [ebp - 0x18], 0x1e
xor ebx, ebx
mov dword [0x44a27c], esi
mov byte [ebp - 0x20], bl
mov eax, ebx
mov dword [ebp - 0x14], 0x46
mov dword [ebp - 0x10], 0xffffff9c
sub ebx, dword [ebp + eax*4 - 0x18]
inc eax
cmp eax, 3
jl 0x40e270
lea ecx, [ebp - 0x38]
call fcn.0043430e
mov esi, eax
mov ecx, esi
call fcn.004348f7
add eax, eax
push eax
push esi
push dword [ebp - 0x70]
call fcn.004341ae
mov ecx, esi
call fcn.004348f7
push eax
push ebx
push esi
call fcn.0043423a
or dword [0x44a27c], 0xc95fa0d7
add esp, 0x18
mov ecx, esi
call fcn.0041d467
pop edi
pop esi
pop ebx
leave
ret