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

Disassembly:
push ebx
push edi
push esi
sub esp, 0xf8
mov eax, dword [esp + 0x10c]
mov dword [esp + 0xe8], eax
mov eax, dword [esp + 0x108]
mov dword [esp + 0xec], eax
mov eax, dword [0x10060c28]
mov ecx, dword [0x10060c24]
mov dword [esp + 0xf0], ecx
xor edx, edx
sub edx, 1
mov ecx, eax
add ecx, edx
imul eax, ecx
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0xf4]
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0xe7], al
mov eax, dword [esp + 0xf0]
cmp eax, 0xa
setl al
mov byte [esp + 0xe6], al
mov cl, byte [esp + 0xe6]
mov al, byte [esp + 0xe7]
mov dl, al
and dl, cl
mov byte [esp + 0xe4], dl
xor al, cl
mov byte [esp + 0xe5], al
mov cl, byte [esp + 0xe5]
mov al, byte [esp + 0xe4]
or al, cl
mov byte [esp + 0xe3], al
mov al, byte [esp + 0xe3]
test al, 1
jne 0x10041ae2
jmp 0x10042250
mov eax, dword [0x10060c28]
mov dword [esp + 0xdc], eax
mov eax, dword [0x10060c24]
mov dword [esp + 0xd8], eax
xor eax, eax
sub eax, 1
mov dword [esp + 0xd4], eax
mov ecx, dword [esp + 0xd4]
mov eax, dword [esp + 0xdc]
add eax, ecx
mov dword [esp + 0xd0], eax
mov ecx, dword [esp + 0xd0]
mov eax, dword [esp + 0xdc]
imul eax, ecx
and eax, 1
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0xcc]
cmp ecx, 0
sete cl
cmp eax, 0xa
setl dl
mov al, cl
and al, dl
xor cl, dl
or al, cl
test al, 1
jne 0x10041b67
jmp 0x10042255
mov eax, dword [0x10060c28]
mov dword [esp + 0xc0], eax
mov ecx, dword [0x10060c24]
mov dword [esp + 0xc4], ecx
xor ecx, ecx
sub ecx, 1
add eax, ecx
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0xc4]
mov edx, dword [esp + 0xc8]
mov ecx, dword [esp + 0xc0]
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0xbe], cl
cmp eax, 0xa
setl al
mov byte [esp + 0xbf], al
mov ch, byte [esp + 0xbf]
mov dh, byte [esp + 0xbe]
mov al, dh
xor al, 0xff
mov cl, ch
xor cl, 0xff
mov bl, 1
xor bl, 1
mov byte [esp + 0xbb], bl
mov dl, al
and dl, 0xff
and dh, bl
mov ah, cl
and ah, 0xff
and ch, bl
or dl, dh
or ah, ch
xor dl, ah
mov byte [esp + 0xbc], dl
or al, cl
mov byte [esp + 0xbd], al
mov al, byte [esp + 0xbb]
mov cl, byte [esp + 0xbd]
xor cl, 0xff
mov byte [esp + 0xb9], cl
or al, 1
mov byte [esp + 0xba], al
mov cl, byte [esp + 0xba]
mov al, byte [esp + 0xb9]
and al, cl
mov byte [esp + 0xb8], al
mov cl, byte [esp + 0xb8]
mov al, byte [esp + 0xbc]
or al, cl
test al, 1
jne 0x10041c5f
jmp 0x10042255
mov eax, dword [0x10060c28]
mov dword [esp + 0xb0], eax
mov eax, dword [0x10060c24]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xb0]
xor ecx, ecx
sub ecx, 1
add eax, ecx
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xb4]
mov edx, dword [esp + 0xac]
mov ecx, dword [esp + 0xb0]
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0xaa], cl
cmp eax, 0xa
setl al
mov byte [esp + 0xab], al
mov dl, byte [esp + 0xab]
mov cl, byte [esp + 0xaa]
mov al, cl
and al, dl
xor cl, dl
or al, cl
mov byte [esp + 0xa9], al
mov al, byte [esp + 0xa9]
test al, 1
jne 0x10041cf2
jmp 0x10042250
mov eax, dword [0x10060c28]
mov dword [esp + 0x9c], eax
mov ecx, dword [0x10060c24]
mov dword [esp + 0xa0], ecx
add eax, 0xb01b7b11
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xa4]
sub eax, 1
sub eax, 0xb01b7b11
mov dword [esp + 0x98], eax
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
imul eax, edx
and eax, 1
cmp eax, 0
sete ah
cmp ecx, 0xa
setl dl
mov al, ah
xor al, 0xff
mov byte [esp + 0x94], al
mov cl, dl
xor cl, 0xff
mov byte [esp + 0x95], cl
mov ch, 1
xor ch, 0
mov byte [esp + 0x96], ch
and al, 0
and ah, ch
and cl, 0
and dl, ch
or al, ah
or cl, dl
xor al, cl
mov byte [esp + 0x97], al
mov cl, byte [esp + 0x96]
mov dl, byte [esp + 0x95]
mov al, byte [esp + 0x94]
or al, dl
xor al, 0xff
or cl, 0
and al, cl
mov byte [esp + 0x93], al
mov cl, byte [esp + 0x93]
mov al, byte [esp + 0x97]
or al, cl
mov byte [esp + 0x92], al
mov al, byte [esp + 0x92]
test al, 1
jne 0x10041ddd
jmp 0x1004220a
mov eax, dword [esp + 0xe8]
add eax, 0x1f
mov dword [esp + 0x88], eax
mov eax, dword [0x1005f380]
mov eax, dword [eax + 0x1541af70]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x8c]
cmp eax, 1
sete al
mov byte [esp + 0x83], al
mov eax, dword [0x10060c28]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x84]
mov ecx, dword [0x10060c24]
mov edx, eax
sub edx, 0x1d2d8a3e
sub edx, 1
add edx, 0x1d2d8a3e
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x7d], cl
mov dl, al
xor dl, 0xff
mov byte [esp + 0x7e], dl
xor cl, 0xff
mov byte [esp + 0x7f], cl
mov cl, 1
xor cl, 1
mov byte [esp + 0x80], cl
and dl, 0xff
mov byte [esp + 0x81], dl
and al, cl
mov byte [esp + 0x82], al
mov al, byte [esp + 0x7f]
and al, 0xff
mov byte [esp + 0x7c], al
mov al, byte [esp + 0x80]
mov dl, byte [esp + 0x7f]
mov cl, byte [esp + 0x7e]
mov ch, byte [esp + 0x7c]
mov bl, byte [esp + 0x82]
mov ah, byte [esp + 0x81]
mov dh, byte [esp + 0x7d]
and dh, al
or ah, bl
or ch, dh
xor ah, ch
mov byte [esp + 0x79], ah
or cl, dl
xor cl, 0xff
mov byte [esp + 0x7a], cl
or al, 1
mov byte [esp + 0x7b], al
mov al, byte [esp + 0x79]
mov dl, byte [esp + 0x7b]
mov cl, byte [esp + 0x7a]
and cl, dl
or al, cl
test al, 1
jne 0x10041eea
jmp 0x1004220a
mov cl, byte [esp + 0x83]
xor eax, eax
test cl, 1
mov dword [esp + 0x74], eax
jne 0x10042200
jmp 0x10041f05
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0xec]
mov esi, dword [esp + 0xe8]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x6c], eax
mov dl, byte [edx + eax]
mov byte [esp + 0x73], dl
mov edi, 0x1f
xor edx, edx
div edi
mov eax, dword [esp + 0x6c]
mov edi, edx
mov dh, byte [esp + 0x73]
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, eax
xor eax, eax
sub eax, 1
add ecx, eax
xor eax, eax
sub eax, ecx
cmp eax, 0x40
mov dword [esp + 0x74], eax
jne 0x10041f05
mov eax, dword [0x10060c28]
mov dword [esp + 0x60], eax
mov ecx, dword [0x10060c24]
mov dword [esp + 0x64], ecx
add eax, 0x70001fe5
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
sub edx, 1
sub edx, 0x70001fe5
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x5e], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x5f], al
mov al, byte [esp + 0x5e]
xor al, 0xff
mov byte [esp + 0x5d], al
mov al, byte [esp + 0x5e]
mov dl, byte [esp + 0x5d]
mov cl, byte [esp + 0x5f]
xor cl, 0xff
mov byte [esp + 0x59], cl
mov cl, 1
xor cl, 0
mov byte [esp + 0x5a], cl
and dl, 0
mov byte [esp + 0x5b], dl
and al, cl
mov byte [esp + 0x5c], al
mov cl, byte [esp + 0x59]
mov al, byte [esp + 0x5d]
mov dh, byte [esp + 0x5c]
mov dl, byte [esp + 0x5b]
mov bl, byte [esp + 0x5a]
mov ch, byte [esp + 0x5f]
mov ah, cl
and ah, 0
and ch, bl
or dl, dh
or ah, ch
xor dl, ah
mov byte [esp + 0x57], dl
or al, cl
xor al, 0xff
mov byte [esp + 0x58], al
mov al, byte [esp + 0x57]
mov cl, byte [esp + 0x58]
mov dl, byte [esp + 0x5a]
or dl, 0
and cl, dl
or al, cl
test al, 1
jne 0x1004203d
jmp 0x1004222b
mov eax, dword [0x10060c28]
mov dword [esp + 0x48], eax
mov eax, dword [0x10060c24]
mov dword [esp + 0x4c], eax
xor eax, eax
sub eax, 1
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x50]
mov edx, ecx
add edx, esi
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x46], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x47], al
mov cl, byte [esp + 0x47]
mov ah, byte [esp + 0x46]
mov dl, ah
xor dl, 0xff
mov byte [esp + 0x41], dl
mov al, cl
xor al, 0xff
mov byte [esp + 0x42], al
mov ch, 1
xor ch, 1
mov byte [esp + 0x43], ch
and dl, 0xff
and ah, ch
and al, 0xff
and cl, ch
or dl, ah
mov byte [esp + 0x44], dl
or al, cl
mov byte [esp + 0x45], al
mov cl, byte [esp + 0x45]
mov al, byte [esp + 0x44]
xor al, cl
mov byte [esp + 0x40], al
mov al, byte [esp + 0x40]
mov dl, byte [esp + 0x43]
mov ah, byte [esp + 0x42]
mov cl, byte [esp + 0x41]
or cl, ah
xor cl, 0xff
or dl, 1
and cl, dl
or al, cl
mov byte [esp + 0x3f], al
mov al, byte [esp + 0x3f]
test al, 1
jne 0x100420f8
jmp 0x1004225a
mov eax, dword [0x1005f380]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
mov dword [eax + 0x1541af70], 1
mov eax, dword [0x10060c28]
mov dword [esp + 0x30], eax
mov eax, dword [0x10060c24]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
mov ecx, eax
sub ecx, 0x1fa748d7
sub ecx, 1
add ecx, 0x1fa748d7
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x2f], al
mov al, byte [esp + 0x2f]
mov ecx, dword [esp + 0x34]
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
mov byte [esp + 0x2d], dl
xor al, cl
mov byte [esp + 0x2e], al
mov cl, byte [esp + 0x2e]
mov al, byte [esp + 0x2d]
or al, cl
mov byte [esp + 0x2c], al
mov al, byte [esp + 0x2c]
test al, 1
jne 0x10042181
jmp 0x1004225a
mov eax, dword [0x10060c28]
mov dword [esp + 0x24], eax
mov eax, dword [0x10060c24]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
sub eax, 0x53984499
sub eax, 1
add eax, 0x53984499
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
imul eax, ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
mov byte [esp + 0x1a], dl
xor al, cl
mov byte [esp + 0x1b], al
mov cl, byte [esp + 0x1b]
mov al, byte [esp + 0x1a]
or al, cl
mov byte [esp + 0x19], al
mov al, byte [esp + 0x19]
test al, 1
jne 0x100421fb
jmp 0x1004222b
jmp 0x10042200
add esp, 0xf8
pop esi
pop edi
pop ebx
ret
mov eax, dword [0x1005f380]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add eax, 0x1541af70
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
jmp 0x10041ddd
mov eax, dword [0x1005f380]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add eax, 0x1541af70
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov dword [eax], 1
jmp 0x1004203d
jmp 0x10041ae2
jmp 0x10041b67
mov eax, dword [0x1005f380]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0x1541af70
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x100420f8