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

Disassembly:
push ebx
push edi
push esi
sub esp, 0x7c
mov eax, dword [esp + 0x90]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x74], ecx
add eax, 0x17
mov dword [esp + 0x78], eax
mov eax, dword [0x1005f37c]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x6c]
add eax, 0x5129993
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x68]
mov eax, dword [eax]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x64]
cmp eax, 1
sete al
mov byte [esp + 0x63], al
mov cl, byte [esp + 0x63]
xor eax, eax
test cl, 1
mov dword [esp + 0x5c], eax
jne 0x100417ec
jmp 0x10041769
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x74]
mov esi, dword [esp + 0x70]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x54], eax
mov dl, byte [edx + eax]
mov byte [esp + 0x5b], dl
mov edi, 0x17
xor edx, edx
div edi
mov eax, dword [esp + 0x54]
mov edi, edx
mov dh, byte [esp + 0x5b]
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, 0xf45a6bde
add eax, 1
sub eax, 0xf45a6bde
cmp eax, 2
mov dword [esp + 0x5c], eax
jne 0x10041769
mov eax, dword [0x1005f37c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x50]
add eax, 0x5129993
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4c]
mov dword [eax], 1
jmp 0x100417ec
mov eax, dword [0x10060c30]
mov dword [esp + 0x48], eax
mov eax, dword [0x10060c2c]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov edx, eax
add edx, 0xabcdf364
sub edx, 1
sub edx, 0xabcdf364
imul eax, edx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x41], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x42], cl
and al, cl
mov byte [esp + 0x43], al
mov cl, byte [esp + 0x42]
mov al, byte [esp + 0x41]
xor al, cl
mov byte [esp + 0x40], al
mov cl, byte [esp + 0x40]
mov al, byte [esp + 0x43]
or al, cl
mov byte [esp + 0x3f], al
mov al, byte [esp + 0x3f]
test al, 1
jne 0x10041864
jmp 0x10041a10
mov eax, dword [0x10060c30]
mov dword [esp + 0x34], eax
mov eax, dword [0x10060c2c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
add eax, 0xafacc950
sub eax, 1
sub eax, 0xafacc950
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
imul eax, ecx
and eax, 1
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
cmp ecx, 0
sete cl
mov byte [esp + 0x2a], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x2b], al
mov al, byte [esp + 0x2b]
mov cl, byte [esp + 0x2a]
xor cl, 0xff
mov byte [esp + 0x27], cl
xor al, 0xff
mov byte [esp + 0x28], al
mov al, 1
xor al, 1
mov byte [esp + 0x29], al
mov dl, byte [esp + 0x29]
mov ah, byte [esp + 0x28]
mov cl, byte [esp + 0x27]
mov dh, byte [esp + 0x2b]
mov bl, byte [esp + 0x2a]
mov al, cl
and al, 0xff
and bl, dl
mov ch, ah
and ch, 0xff
and dh, dl
or al, bl
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 0x10041916
jmp 0x10041a10
mov eax, dword [0x10060c30]
mov dword [esp + 0x18], eax
mov ecx, dword [0x10060c2c]
mov dword [esp + 0x1c], ecx
sub eax, 0xc8b0490b
sub eax, 1
add eax, 0xc8b0490b
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
imul eax, ecx
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
mov byte [esp + 0x12], dl
xor al, cl
mov byte [esp + 0x13], al
mov cl, byte [esp + 0x13]
mov al, byte [esp + 0x12]
or al, cl
mov byte [esp + 0x11], al
mov al, byte [esp + 0x11]
test al, 1
jne 0x1004198d
jmp 0x10041a0b
mov eax, dword [0x10060c30]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [0x10060c2c]
mov dword [esp + 4], ecx
xor edx, edx
sub edx, 1
mov ecx, eax
add ecx, edx
imul eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 2], cl
cmp eax, 0xa
setl al
mov byte [esp + 3], al
mov cl, byte [esp + 3]
mov al, byte [esp + 2]
and al, cl
mov byte [esp + 1], al
mov al, byte [esp + 1]
mov dl, byte [esp + 3]
mov cl, byte [esp + 2]
xor cl, dl
or al, cl
mov byte [esp], al
mov al, byte [esp]
test al, 1
jne 0x10041a04
jmp 0x10041a0b
add esp, 0x7c
pop esi
pop edi
pop ebx
ret
jmp 0x1004198d
jmp 0x10041864