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

Disassembly:
push ebx
push edi
push esi
sub esp, 0xdc
mov eax, dword [esp + 0xf0]
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0xcc], eax
mov eax, dword [0x1006acb8]
mov dword [esp + 0xd0], eax
mov ecx, dword [0x1006acb4]
mov dword [esp + 0xd4], ecx
add eax, 0xe13ff753
sub eax, 1
sub eax, 0xe13ff753
mov dword [esp + 0xd8], eax
mov ecx, dword [esp + 0xd8]
mov eax, dword [esp + 0xd0]
imul eax, ecx
and eax, 1
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0xc4]
cmp ecx, 0
sete cl
mov byte [esp + 0xc2], cl
cmp eax, 0xa
setl al
mov byte [esp + 0xc3], al
mov dl, byte [esp + 0xc3]
mov ah, byte [esp + 0xc2]
mov al, ah
xor al, 0xff
mov byte [esp + 0xbe], al
mov cl, dl
xor cl, 0xff
mov byte [esp + 0xbf], cl
mov ch, 1
xor ch, 1
mov byte [esp + 0xc0], ch
and al, 0xff
and ah, ch
and cl, 0xff
and dl, ch
or al, ah
or cl, dl
xor al, cl
mov byte [esp + 0xc1], al
mov al, byte [esp + 0xc1]
mov dl, byte [esp + 0xc0]
mov ah, byte [esp + 0xbf]
mov cl, byte [esp + 0xbe]
or cl, ah
xor cl, 0xff
or dl, 1
and cl, dl
or al, cl
test al, 1
jne 0x10046291
jmp 0x100467ca
mov eax, dword [0x1006acb8]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xb8]
mov ecx, dword [0x1006acb4]
mov dword [esp + 0xb0], ecx
add eax, 0x1ef7b25b
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xb4]
sub eax, 1
sub eax, 0x1ef7b25b
mov dword [esp + 0xac], eax
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0xb8]
imul eax, ecx
and eax, 1
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xa8]
cmp ecx, 0
sete cl
cmp eax, 0xa
setl dl
mov al, cl
and al, dl
xor cl, dl
or al, cl
mov byte [esp + 0xa7], al
mov al, byte [esp + 0xa7]
test al, 1
jne 0x1004632b
jmp 0x100467ca
mov eax, dword [0x1006acb8]
mov dword [esp + 0x98], eax
mov eax, dword [0x1006acb4]
mov dword [esp + 0x9c], eax
xor eax, eax
sub eax, 1
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x98]
mov esi, dword [esp + 0xa0]
mov edx, eax
add edx, esi
imul eax, edx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x92], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x93], cl
xor al, 0xff
mov byte [esp + 0x94], al
xor cl, 0xff
mov byte [esp + 0x95], cl
mov cl, 1
xor cl, 1
mov byte [esp + 0x96], cl
and al, 0xff
mov byte [esp + 0x97], al
mov dl, byte [esp + 0x97]
mov ch, byte [esp + 0x96]
mov cl, byte [esp + 0x93]
mov al, byte [esp + 0x95]
mov ah, byte [esp + 0x92]
and ah, ch
and al, 0xff
and cl, ch
or dl, ah
mov byte [esp + 0x90], dl
or al, cl
mov byte [esp + 0x91], al
mov cl, byte [esp + 0x96]
mov dl, byte [esp + 0x95]
mov al, byte [esp + 0x94]
mov ch, byte [esp + 0x91]
mov ah, byte [esp + 0x90]
xor ah, ch
mov byte [esp + 0x8e], ah
or al, dl
xor al, 0xff
or cl, 1
and al, cl
mov byte [esp + 0x8f], al
mov cl, byte [esp + 0x8f]
mov al, byte [esp + 0x8e]
or al, cl
mov byte [esp + 0x8d], al
mov al, byte [esp + 0x8d]
test al, 1
jne 0x10046452
jmp 0x100467a9
mov eax, dword [0x1006acb8]
mov dword [esp + 0x84], eax
mov eax, dword [0x1006acb4]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x84]
xor ecx, ecx
sub ecx, 1
add eax, ecx
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x7c], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x7d], al
xor cl, 0xff
mov byte [esp + 0x7e], cl
xor al, 0xff
mov byte [esp + 0x7f], al
mov al, byte [esp + 0x7e]
mov cl, 1
xor cl, 1
mov byte [esp + 0x7a], cl
and al, 0xff
mov byte [esp + 0x7b], al
mov cl, byte [esp + 0x7f]
mov al, byte [esp + 0x7e]
mov dl, byte [esp + 0x7b]
mov bl, byte [esp + 0x7a]
mov ch, byte [esp + 0x7d]
mov dh, byte [esp + 0x7c]
and dh, bl
mov ah, cl
and ah, 0xff
and ch, bl
or dl, dh
or ah, ch
xor dl, ah
mov byte [esp + 0x78], dl
or al, cl
xor al, 0xff
mov byte [esp + 0x79], al
mov al, byte [esp + 0x78]
mov cl, byte [esp + 0x79]
mov dl, byte [esp + 0x7a]
or dl, 1
and cl, dl
or al, cl
test al, 1
jne 0x10046521
jmp 0x100467cf
mov eax, dword [esp + 0xc8]
add eax, 0x15
mov dword [esp + 0x74], eax
mov eax, dword [0x1006933c]
cmp dword [eax - 0x47eb9370], 1
sete al
mov byte [esp + 0x67], al
mov eax, dword [0x1006acb8]
mov dword [esp + 0x68], eax
mov ecx, dword [0x1006acb4]
mov dword [esp + 0x6c], ecx
add eax, 0xa71c04a0
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x70]
sub eax, 1
sub eax, 0xa71c04a0
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x68]
imul eax, edx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x5d], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x5e], cl
and al, cl
mov byte [esp + 0x5f], al
mov al, byte [esp + 0x5f]
mov dl, byte [esp + 0x5e]
mov cl, byte [esp + 0x5d]
xor cl, dl
or al, cl
test al, 1
jne 0x100465b7
jmp 0x100467cf
mov eax, dword [0x1006acb8]
mov dword [esp + 0x50], eax
mov eax, dword [0x1006acb4]
mov dword [esp + 0x54], eax
xor eax, eax
sub eax, 1
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x50]
add eax, ecx
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
imul eax, ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x47], al
mov al, byte [esp + 0x47]
mov ecx, dword [esp + 0x54]
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
mov byte [esp + 0x45], dl
xor al, cl
mov byte [esp + 0x46], al
mov cl, byte [esp + 0x46]
mov al, byte [esp + 0x45]
or al, cl
test al, 1
jne 0x10046633
jmp 0x100467a9
mov cl, byte [esp + 0x67]
xor eax, eax
test cl, 1
mov dword [esp + 0x40], eax
jne 0x1004679f
jmp 0x1004664b
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0xcc]
mov esi, dword [esp + 0xc8]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x38], eax
mov dl, byte [edx + eax]
mov byte [esp + 0x3f], dl
mov edi, 0x15
xor edx, edx
div edi
mov eax, dword [esp + 0x38]
mov edi, edx
mov dh, byte [esp + 0x3f]
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, 8
mov dword [esp + 0x40], eax
jne 0x1004664b
mov eax, dword [0x1006acb8]
mov dword [esp + 0x30], eax
mov eax, dword [0x1006acb4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
mov ecx, eax
add ecx, 0x6d6c7d21
sub ecx, 1
sub ecx, 0x6d6c7d21
imul eax, ecx
and eax, 1
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
cmp eax, 0
sete al
mov byte [esp + 0x29], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x2a], cl
and al, cl
mov byte [esp + 0x2b], al
mov cl, byte [esp + 0x2a]
mov al, byte [esp + 0x29]
xor al, cl
mov byte [esp + 0x28], al
mov cl, byte [esp + 0x28]
mov al, byte [esp + 0x2b]
or al, cl
mov byte [esp + 0x27], al
mov al, byte [esp + 0x27]
test al, 1
jne 0x10046729
jmp 0x100467e8
mov eax, dword [0x1006933c]
mov dword [eax - 0x47eb9370], 1
mov eax, dword [0x1006acb8]
mov dword [esp + 0x1c], eax
mov eax, dword [0x1006acb4]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
sub eax, 0x310cfbc5
sub eax, 1
add eax, 0x310cfbc5
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
cmp eax, 0xa
setl dl
mov al, cl
and al, dl
xor cl, dl
or al, cl
mov byte [esp + 0x17], al
mov al, byte [esp + 0x17]
test al, 1
jne 0x1004679a
jmp 0x100467e8
jmp 0x1004679f
add esp, 0xdc
pop esi
pop edi
pop ebx
ret
mov eax, dword [0x1006933c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add eax, 0xb8146c90
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
jmp 0x10046452
jmp 0x10046291
mov eax, dword [0x1006933c]
add eax, 0xb8146c90
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov eax, dword [eax]
jmp 0x10046521
mov eax, dword [0x1006933c]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0xb8146c90
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x10046729