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

Disassembly:
push ebx
push edi
push esi
sub esp, 0xb0
mov eax, dword [esp + 0xc4]
mov dword [esp + 0xa4], eax
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0xa8], ecx
add eax, 0x1f
mov dword [esp + 0xac], eax
mov eax, dword [0x1005f3a4]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xa0]
add eax, 0xff3c4d16
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x9c]
mov eax, dword [eax]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x98]
cmp eax, 1
sete al
mov byte [esp + 0x97], al
mov cl, byte [esp + 0x97]
xor eax, eax
test cl, 1
mov dword [esp + 0x90], eax
jne 0x10049e87
jmp 0x10049a30
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0xa8]
mov esi, dword [esp + 0xa4]
mov edx, dword [esp + 0xac]
mov dword [esp + 0x88], eax
mov dl, byte [edx + eax]
mov byte [esp + 0x8f], dl
mov edi, 0x1f
xor edx, edx
div edi
mov eax, dword [esp + 0x88]
mov edi, edx
mov dh, byte [esp + 0x8f]
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, 0xb
mov dword [esp + 0x90], eax
jne 0x10049a30
mov eax, dword [0x10060be8]
mov dword [esp + 0x80], eax
mov eax, dword [0x10060be4]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x80]
sub eax, 0x243c253b
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
sub ecx, 1
add ecx, 0x243c253b
imul eax, ecx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x78]
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x76], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x77], al
mov dl, byte [esp + 0x77]
mov cl, byte [esp + 0x76]
mov al, cl
and al, dl
xor cl, dl
or al, cl
mov byte [esp + 0x75], al
mov al, byte [esp + 0x75]
test al, 1
jne 0x10049b35
jmp 0x10049e91
mov eax, dword [0x10060be8]
mov dword [esp + 0x70], eax
mov eax, dword [0x10060be4]
mov dword [esp + 0x68], eax
xor eax, eax
sub eax, 1
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
mov edx, ecx
add edx, esi
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x66], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x67], al
mov cl, byte [esp + 0x67]
mov al, byte [esp + 0x66]
and al, cl
mov byte [esp + 0x65], al
mov al, byte [esp + 0x65]
mov dl, byte [esp + 0x67]
mov cl, byte [esp + 0x66]
xor cl, dl
or al, cl
mov byte [esp + 0x64], al
mov al, byte [esp + 0x64]
test al, 1
jne 0x10049bad
jmp 0x10049eb6
mov eax, dword [0x1005f3a4]
mov dword [eax - 0xc3b2ea], 1
mov eax, dword [0x10060be8]
mov ecx, dword [0x10060be4]
mov dword [esp + 0x5c], ecx
mov ecx, eax
add ecx, 0xebb1f0c0
sub ecx, 1
sub ecx, 0xebb1f0c0
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x63], al
mov cl, byte [esp + 0x63]
mov eax, dword [esp + 0x5c]
cmp eax, 0xa
setl al
mov byte [esp + 0x55], al
mov ah, cl
xor ah, 0xff
mov byte [esp + 0x56], ah
xor al, 0xff
mov byte [esp + 0x57], al
mov dl, 1
xor dl, 1
mov byte [esp + 0x58], dl
and ah, 0xff
mov byte [esp + 0x59], ah
and cl, dl
mov byte [esp + 0x5a], cl
and al, 0xff
mov byte [esp + 0x5b], al
mov cl, byte [esp + 0x58]
mov al, byte [esp + 0x55]
and al, cl
mov byte [esp + 0x54], al
mov dl, byte [esp + 0x54]
mov cl, byte [esp + 0x5b]
mov ah, byte [esp + 0x5a]
mov al, byte [esp + 0x59]
or al, ah
or cl, dl
xor al, cl
mov byte [esp + 0x53], al
mov al, byte [esp + 0x53]
mov dl, byte [esp + 0x58]
mov ah, byte [esp + 0x57]
mov cl, byte [esp + 0x56]
or cl, ah
xor cl, 0xff
or dl, 1
and cl, dl
or al, cl
test al, 1
jne 0x10049c7a
jmp 0x10049eb6
mov eax, dword [0x10060be8]
mov ecx, dword [0x10060be4]
mov dword [esp + 0x4c], ecx
xor edx, edx
sub edx, 1
mov ecx, eax
add ecx, edx
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x52], al
mov ah, byte [esp + 0x52]
mov ecx, dword [esp + 0x4c]
cmp ecx, 0xa
setl al
mov ch, ah
xor ch, 0xff
mov byte [esp + 0x45], ch
mov dl, al
xor dl, 0xff
mov byte [esp + 0x46], dl
mov cl, 1
xor cl, 1
mov byte [esp + 0x47], cl
and ch, 0xff
mov byte [esp + 0x48], ch
and ah, cl
mov byte [esp + 0x49], ah
and dl, 0xff
mov byte [esp + 0x4a], dl
and al, cl
mov byte [esp + 0x4b], al
mov cl, byte [esp + 0x4b]
mov al, byte [esp + 0x4a]
mov ah, byte [esp + 0x49]
mov dl, byte [esp + 0x48]
or dl, ah
mov byte [esp + 0x43], dl
or al, cl
mov byte [esp + 0x44], al
mov al, byte [esp + 0x47]
mov dl, byte [esp + 0x46]
mov cl, byte [esp + 0x45]
mov ch, byte [esp + 0x44]
mov ah, byte [esp + 0x43]
xor ah, ch
mov byte [esp + 0x40], ah
or cl, dl
xor cl, 0xff
mov byte [esp + 0x41], cl
or al, 1
mov byte [esp + 0x42], al
mov al, byte [esp + 0x40]
mov dl, byte [esp + 0x42]
mov cl, byte [esp + 0x41]
and cl, dl
or al, cl
mov byte [esp + 0x3f], al
mov al, byte [esp + 0x3f]
test al, 1
jne 0x10049d4f
jmp 0x10049e91
mov eax, dword [0x10060be8]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [0x10060be4]
mov dword [esp + 0x30], ecx
add eax, 0x509712f
sub eax, 1
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
sub eax, 0x509712f
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
imul eax, edx
and eax, 1
cmp eax, 0
sete ah
cmp ecx, 0xa
setl al
mov ch, ah
xor ch, 0xff
mov byte [esp + 0x25], ch
mov dl, al
xor dl, 0xff
mov byte [esp + 0x26], dl
mov cl, 1
xor cl, 1
mov byte [esp + 0x27], cl
and ch, 0xff
mov byte [esp + 0x28], ch
and ah, cl
mov byte [esp + 0x29], ah
and dl, 0xff
mov byte [esp + 0x2a], dl
and al, cl
mov byte [esp + 0x2b], al
mov dl, byte [esp + 0x27]
mov ah, byte [esp + 0x26]
mov cl, byte [esp + 0x25]
mov dh, byte [esp + 0x2b]
mov ch, byte [esp + 0x2a]
mov bl, byte [esp + 0x29]
mov al, byte [esp + 0x28]
or al, bl
or ch, dh
xor al, ch
or cl, ah
xor cl, 0xff
or dl, 1
and cl, dl
or al, cl
mov byte [esp + 0x24], al
mov al, byte [esp + 0x24]
test al, 1
jne 0x10049e15
jmp 0x10049ed9
mov eax, dword [0x10060be8]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [0x10060be4]
mov dword [esp + 0x18], ecx
xor ecx, ecx
sub ecx, 1
add eax, ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
imul eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x13], al
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x18]
cmp eax, 0xa
setl dl
mov al, cl
and al, dl
xor cl, dl
or al, cl
mov byte [esp + 0x12], al
mov al, byte [esp + 0x12]
test al, 1
jne 0x10049e82
jmp 0x10049ed9
jmp 0x10049e87
add esp, 0xb0
pop esi
pop edi
pop ebx
ret
mov eax, dword [0x1005f3a4]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add eax, 0xff3c4d16
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov dword [eax], 1
jmp 0x10049b35
mov eax, dword [0x1005f3a4]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0xff3c4d16
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x10049bad
jmp 0x10049e15