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

Disassembly:
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [esp + 0x68]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x4c], ecx
add eax, 0x12
mov dword [esp + 0x50], eax
mov eax, dword [0x1005f350]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
add eax, 0xb6abbc24
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
cmp eax, 1
sete al
mov byte [esp + 0x3b], al
mov cl, byte [esp + 0x3b]
xor eax, eax
test cl, 1
mov dword [esp + 0x34], eax
jne 0x1003ca66
jmp 0x1003c9e3
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x2c], eax
mov dl, byte [edx + eax]
mov byte [esp + 0x33], dl
mov edi, 0x12
xor edx, edx
div edi
mov eax, dword [esp + 0x2c]
mov edi, edx
mov dh, byte [esp + 0x33]
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
add eax, 0xbeecc34c
add eax, 1
sub eax, 0xbeecc34c
cmp eax, 6
mov dword [esp + 0x34], eax
jne 0x1003c9e3
mov eax, dword [0x1005f350]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
add eax, 0xb6abbc24
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov dword [eax], 1
jmp 0x1003ca66
mov eax, dword [0x10060c88]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [0x10060c84]
mov dword [esp + 0x18], ecx
sub eax, 0x4f7ef267
sub eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add ecx, 0x4f7ef267
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x17], al
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x18]
cmp ecx, 0xa
setl cl
mov byte [esp + 0x15], cl
and al, cl
mov byte [esp + 0x16], al
mov cl, byte [esp + 0x15]
mov al, byte [esp + 0x17]
xor al, cl
mov byte [esp + 0x14], al
mov cl, byte [esp + 0x14]
mov al, byte [esp + 0x16]
or al, cl
test al, 1
jne 0x1003cae4
jmp 0x1003cbba
mov eax, dword [0x10060c88]
mov ecx, dword [0x10060c84]
mov dword [esp + 0xc], ecx
xor edx, edx
sub edx, 1
mov ecx, eax
add ecx, edx
imul eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 7], cl
cmp eax, 0xa
setl al
mov byte [esp + 8], al
xor cl, 0xff
mov byte [esp + 9], cl
xor al, 0xff
mov byte [esp + 0xa], al
mov al, 1
xor al, 1
mov byte [esp + 0xb], al
mov al, byte [esp + 0xa]
mov dl, byte [esp + 0xb]
mov cl, byte [esp + 7]
mov ah, byte [esp + 9]
and ah, 0xff
mov byte [esp + 4], ah
and cl, dl
mov byte [esp + 5], cl
and al, 0xff
mov byte [esp + 6], al
mov al, byte [esp + 6]
mov ah, byte [esp + 5]
mov dl, byte [esp + 4]
mov ch, byte [esp + 0xb]
mov cl, byte [esp + 8]
and cl, ch
or dl, ah
mov byte [esp + 2], dl
or al, cl
mov byte [esp + 3], al
mov dl, byte [esp + 0xb]
mov ah, byte [esp + 0xa]
mov cl, byte [esp + 9]
mov ch, byte [esp + 3]
mov al, byte [esp + 2]
xor al, ch
or cl, ah
xor cl, 0xff
or dl, 1
and cl, dl
or al, cl
mov byte [esp + 1], al
mov al, byte [esp + 1]
test al, 1
jne 0x1003cbb3
jmp 0x1003cbba
add esp, 0x54
pop esi
pop edi
pop ebx
ret
jmp 0x1003cae4