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

Disassembly:
push ebx
push esi
sub esp, 0x5c
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x54], ecx
add eax, 0x13
mov dword [esp + 0x58], eax
mov eax, dword [0x100623a4]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4c]
add eax, 0x18d54766
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
mov eax, dword [eax]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
cmp eax, 1
sete al
mov byte [esp + 0x43], al
mov cl, byte [esp + 0x43]
xor eax, eax
test cl, 1
mov dword [esp + 0x3c], eax
jne 0x1004cb07
jmp 0x1004c952
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x38], eax
mov bh, byte [edx + eax]
mov esi, 0x13
xor edx, edx
div esi
mov eax, dword [esp + 0x38]
mov bl, byte [ecx + edx]
mov dl, bh
xor dl, 0xff
and dl, 0xb2
mov cl, 0xff
xor cl, 0xb2
and bh, cl
mov dh, bl
xor dh, 0xff
and dh, 0xb2
and bl, cl
mov ecx, dword [esp + 0x54]
or dl, bh
or dh, bl
xor dl, dh
mov byte [ecx + eax], dl
xor ecx, ecx
sub ecx, eax
xor eax, eax
sub eax, 1
add ecx, eax
xor eax, eax
sub eax, ecx
cmp eax, 0xb
mov dword [esp + 0x3c], eax
jne 0x1004c952
mov eax, dword [0x10063be8]
mov dword [esp + 0x34], eax
mov eax, dword [0x10063be4]
mov dword [esp + 0x30], eax
xor eax, eax
sub eax, 1
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
add eax, ecx
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x27], al
mov cl, byte [esp + 0x27]
mov eax, dword [esp + 0x30]
cmp eax, 0xa
setl dl
mov al, cl
and al, dl
xor cl, dl
or al, cl
test al, 1
jne 0x1004ca1b
jmp 0x1004cb0d
mov eax, dword [0x100623a4]
mov dword [eax + 0x18d54766], 1
mov eax, dword [0x10063be8]
mov dword [esp + 0x18], eax
mov ecx, dword [0x10063be4]
mov dword [esp + 0x1c], ecx
sub eax, 0x375c060d
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
sub ecx, 1
add ecx, 0x375c060d
imul eax, ecx
and eax, 1
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp eax, 0
sete al
mov byte [esp + 0xe], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0xf], cl
xor al, 0xff
mov byte [esp + 0x10], al
xor cl, 0xff
mov byte [esp + 0x11], cl
mov cl, 1
xor cl, 1
mov byte [esp + 0x12], cl
and al, 0xff
mov byte [esp + 0x13], al
mov al, byte [esp + 0x11]
mov dl, byte [esp + 0x12]
mov cl, byte [esp + 0xe]
and cl, dl
mov byte [esp + 0xc], cl
and al, 0xff
mov byte [esp + 0xd], al
mov cl, byte [esp + 0xc]
mov al, byte [esp + 0x13]
mov ah, byte [esp + 0x12]
mov dl, byte [esp + 0xf]
and dl, ah
mov byte [esp + 0xa], dl
or al, cl
mov byte [esp + 0xb], al
mov dl, byte [esp + 0x12]
mov ah, byte [esp + 0x11]
mov cl, byte [esp + 0x10]
mov al, byte [esp + 0xb]
mov dh, byte [esp + 0xa]
mov ch, byte [esp + 0xd]
or ch, dh
xor al, ch
or cl, ah
xor cl, 0xff
or dl, 1
and cl, dl
or al, cl
test al, 1
jne 0x1004cb02
jmp 0x1004cb0d
jmp 0x1004cb07
add esp, 0x5c
pop esi
pop ebx
ret
mov eax, dword [0x100623a4]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0x18d54766
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x1004ca1b