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

Disassembly:
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [esp + 0x64]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x48], ecx
add eax, 0x1d
mov dword [esp + 0x4c], eax
mov eax, dword [0x10069360]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
add eax, 0x9da96754
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
cmp eax, 1
sete al
mov byte [esp + 0x37], al
mov cl, byte [esp + 0x37]
xor eax, eax
test cl, 1
mov dword [esp + 0x30], eax
jne 0x1004b0fe
jmp 0x1004af53
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
mov dl, byte [edx + eax]
mov byte [esp + 0x2f], dl
mov edi, 0x1d
xor edx, edx
div edi
mov eax, dword [esp + 0x28]
mov edi, edx
mov dh, byte [esp + 0x2f]
mov bl, byte [esi + edi]
mov bh, dh
xor bh, 0xff
mov dl, bl
and dl, bh
xor bl, 0xff
and dh, bl
or dl, dh
mov byte [ecx + eax], dl
xor ecx, ecx
sub ecx, 1
sub eax, ecx
cmp eax, 0xa
mov dword [esp + 0x30], eax
jne 0x1004af53
mov eax, dword [0x1006ac70]
mov ecx, dword [0x1006ac6c]
mov dword [esp + 0x20], ecx
xor edx, edx
sub edx, 1
mov ecx, eax
add ecx, edx
imul eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
and eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
cmp ecx, 0
sete cl
mov byte [esp + 0x1a], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x1b], al
mov cl, byte [esp + 0x1b]
mov al, byte [esp + 0x1a]
mov dl, al
and dl, cl
mov byte [esp + 0x18], dl
xor al, cl
mov byte [esp + 0x19], al
mov cl, byte [esp + 0x19]
mov al, byte [esp + 0x18]
or al, cl
mov byte [esp + 0x17], al
mov al, byte [esp + 0x17]
test al, 1
jne 0x1004b026
jmp 0x1004b105
mov eax, dword [0x10069360]
mov dword [eax - 0x625698ac], 1
mov ecx, dword [0x1006ac70]
mov eax, dword [0x1006ac6c]
xor esi, esi
sub esi, 1
mov edx, ecx
add edx, esi
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x13], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x14], al
xor cl, 0xff
mov byte [esp + 0x15], cl
xor al, 0xff
mov byte [esp + 0x16], al
mov al, byte [esp + 0x13]
mov dl, byte [esp + 0x15]
mov cl, 1
xor cl, 1
mov byte [esp + 0x10], cl
and dl, 0xff
mov byte [esp + 0x11], dl
and al, cl
mov byte [esp + 0x12], al
mov ah, byte [esp + 0x12]
mov dl, byte [esp + 0x11]
mov ch, byte [esp + 0x10]
mov cl, byte [esp + 0x14]
mov al, byte [esp + 0x16]
and al, 0xff
and cl, ch
or dl, ah
mov byte [esp + 0xe], dl
or al, cl
mov byte [esp + 0xf], al
mov cl, byte [esp + 0x16]
mov al, byte [esp + 0x15]
mov ah, byte [esp + 0xf]
mov dl, byte [esp + 0xe]
xor dl, ah
mov byte [esp + 0xc], dl
or al, cl
mov byte [esp + 0xd], al
mov al, byte [esp + 0xc]
mov dl, byte [esp + 0x10]
mov cl, byte [esp + 0xd]
xor cl, 0xff
or dl, 1
and cl, dl
or al, cl
mov byte [esp + 0xb], al
mov al, byte [esp + 0xb]
test al, 1
jne 0x1004b0f9
jmp 0x1004b105
jmp 0x1004b0fe
add esp, 0x50
pop esi
pop edi
pop ebx
ret
mov eax, dword [0x10069360]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0x9da96754
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x1004b026