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

Disassembly:
push ebx
push edi
push esi
sub esp, 0xb4
mov eax, dword [esp + 0xc8]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0xa4], eax
mov eax, dword [0x10063ce0]
mov dword [esp + 0xa8], eax
mov ecx, dword [0x10063cdc]
mov dword [esp + 0xac], ecx
xor ecx, ecx
sub ecx, 1
add eax, ecx
mov dword [esp + 0xb0], eax
mov ecx, dword [esp + 0xb0]
mov eax, dword [esp + 0xa8]
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x9f], al
mov al, byte [esp + 0x9f]
mov ecx, dword [esp + 0xac]
cmp ecx, 0xa
setl cl
mov byte [esp + 0x9d], cl
xor al, 0xff
mov byte [esp + 0x9e], al
mov cl, byte [esp + 0x9f]
mov ah, byte [esp + 0x9e]
mov al, byte [esp + 0x9d]
xor al, 0xff
mov byte [esp + 0x98], al
mov dl, 1
xor dl, 0
mov byte [esp + 0x99], dl
and ah, 0
mov byte [esp + 0x9a], ah
and cl, dl
mov byte [esp + 0x9b], cl
and al, 0
mov byte [esp + 0x9c], al
mov cl, byte [esp + 0x99]
mov dl, byte [esp + 0x98]
mov al, byte [esp + 0x9e]
mov ch, byte [esp + 0x9c]
mov bl, byte [esp + 0x9b]
mov ah, byte [esp + 0x9a]
mov dh, byte [esp + 0x9d]
and dh, cl
or ah, bl
or ch, dh
xor ah, ch
mov byte [esp + 0x96], ah
or al, dl
xor al, 0xff
or cl, 0
and al, cl
mov byte [esp + 0x97], al
mov cl, byte [esp + 0x97]
mov al, byte [esp + 0x96]
or al, cl
test al, 1
jne 0x1003a2c4
jmp 0x1003a76a
mov eax, dword [0x10063ce0]
mov dword [esp + 0x88], eax
mov ecx, dword [0x10063cdc]
mov dword [esp + 0x8c], ecx
add eax, 0x26afcbd8
sub eax, 1
sub eax, 0x26afcbd8
mov dword [esp + 0x90], eax
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x88]
imul eax, ecx
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x84]
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x80], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x81], al
xor cl, 0xff
mov byte [esp + 0x82], cl
xor al, 0xff
mov byte [esp + 0x83], al
mov cl, byte [esp + 0x81]
mov al, byte [esp + 0x83]
mov ah, byte [esp + 0x80]
mov dl, byte [esp + 0x82]
mov ch, 1
xor ch, 1
mov byte [esp + 0x7d], ch
and dl, 0xff
and ah, ch
and al, 0xff
and cl, ch
or dl, ah
mov byte [esp + 0x7e], dl
or al, cl
mov byte [esp + 0x7f], al
mov cl, byte [esp + 0x7d]
mov dl, byte [esp + 0x83]
mov al, byte [esp + 0x82]
mov ch, byte [esp + 0x7f]
mov ah, byte [esp + 0x7e]
xor ah, ch
mov byte [esp + 0x7b], ah
or al, dl
xor al, 0xff
or cl, 1
and al, cl
mov byte [esp + 0x7c], al
mov cl, byte [esp + 0x7c]
mov al, byte [esp + 0x7b]
or al, cl
test al, 1
jne 0x1003a3c5
jmp 0x1003a76a
mov eax, dword [0x10063ce0]
mov dword [esp + 0x70], eax
mov eax, dword [0x10063cdc]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x70]
xor ecx, ecx
sub ecx, 1
add eax, ecx
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
imul eax, ecx
and eax, 1
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x68]
cmp eax, 0
sete al
mov byte [esp + 0x65], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x66], cl
and al, cl
mov byte [esp + 0x67], al
mov al, byte [esp + 0x67]
mov dl, byte [esp + 0x66]
mov cl, byte [esp + 0x65]
xor cl, dl
or al, cl
mov byte [esp + 0x64], al
mov al, byte [esp + 0x64]
test al, 1
jne 0x1003a43f
jmp 0x1003a749
mov eax, dword [0x10063ce0]
mov dword [esp + 0x5c], eax
mov eax, dword [0x10063cdc]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x5c]
mov ecx, eax
sub ecx, 0xa7aefe0e
sub ecx, 1
add ecx, 0xa7aefe0e
imul eax, ecx
and eax, 1
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x58]
cmp ecx, 0
sete cl
mov byte [esp + 0x53], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x54], al
xor cl, 0xff
mov byte [esp + 0x55], cl
xor al, 0xff
mov byte [esp + 0x56], al
mov al, 1
xor al, 0
mov byte [esp + 0x57], al
mov cl, byte [esp + 0x56]
mov al, byte [esp + 0x55]
mov bl, byte [esp + 0x57]
mov ch, byte [esp + 0x54]
mov dh, byte [esp + 0x53]
mov dl, al
and dl, 0
and dh, bl
mov ah, cl
and ah, 0
and ch, bl
or dl, dh
or ah, ch
xor dl, ah
mov byte [esp + 0x51], dl
or al, cl
mov byte [esp + 0x52], al
mov al, byte [esp + 0x51]
mov dl, byte [esp + 0x57]
mov cl, byte [esp + 0x52]
xor cl, 0xff
or dl, 0
and cl, dl
or al, cl
mov byte [esp + 0x50], al
mov al, byte [esp + 0x50]
test al, 1
jne 0x1003a4fe
jmp 0x1003a76f
mov eax, dword [esp + 0xa0]
add eax, 0x17
mov dword [esp + 0x40], eax
mov eax, dword [0x10062320]
cmp dword [eax + 0x252c23e8], 1
sete al
mov byte [esp + 0x47], al
mov eax, dword [0x10063ce0]
mov dword [esp + 0x48], eax
mov eax, dword [0x10063cdc]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x48]
sub eax, 0xfbe1fdc4
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
sub edx, 1
add edx, 0xfbe1fdc4
imul eax, edx
and eax, 1
cmp eax, 0
sete ah
cmp ecx, 0xa
setl cl
mov dl, ah
xor dl, 0xff
mov byte [esp + 0x37], dl
mov al, cl
xor al, 0xff
mov byte [esp + 0x38], al
mov ch, 1
xor ch, 0
mov byte [esp + 0x39], ch
and dl, 0
and ah, ch
and al, 0
and cl, ch
or dl, ah
mov byte [esp + 0x3a], dl
or al, cl
mov byte [esp + 0x3b], al
mov cl, byte [esp + 0x38]
mov al, byte [esp + 0x37]
mov ah, byte [esp + 0x3b]
mov dl, byte [esp + 0x3a]
xor dl, ah
mov byte [esp + 0x35], dl
or al, cl
xor al, 0xff
mov byte [esp + 0x36], al
mov al, byte [esp + 0x35]
mov cl, byte [esp + 0x36]
mov dl, byte [esp + 0x39]
or dl, 0
and cl, dl
or al, cl
mov byte [esp + 0x34], al
mov al, byte [esp + 0x34]
test al, 1
jne 0x1003a5da
jmp 0x1003a76f
mov eax, dword [0x10063ce0]
mov ecx, dword [0x10063cdc]
mov dword [esp + 0x2c], 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 + 0x33], al
mov al, byte [esp + 0x33]
mov ecx, dword [esp + 0x2c]
cmp ecx, 0xa
setl cl
mov byte [esp + 0x26], cl
mov dl, al
xor dl, 0xff
mov byte [esp + 0x27], dl
xor cl, 0xff
mov byte [esp + 0x28], cl
mov cl, 1
xor cl, 0
mov byte [esp + 0x29], cl
and dl, 0
mov byte [esp + 0x2a], dl
and al, cl
mov byte [esp + 0x2b], al
mov cl, byte [esp + 0x29]
mov al, byte [esp + 0x26]
mov dl, byte [esp + 0x28]
and dl, 0
mov byte [esp + 0x24], dl
and al, cl
mov byte [esp + 0x25], al
mov dl, byte [esp + 0x25]
mov cl, byte [esp + 0x24]
mov ah, byte [esp + 0x2b]
mov al, byte [esp + 0x2a]
or al, ah
or cl, dl
xor al, cl
mov byte [esp + 0x23], al
mov al, byte [esp + 0x23]
mov dl, byte [esp + 0x29]
mov ah, byte [esp + 0x28]
mov cl, byte [esp + 0x27]
or cl, ah
xor cl, 0xff
or dl, 0
and cl, dl
or al, cl
mov byte [esp + 0x22], al
mov al, byte [esp + 0x22]
test al, 1
jne 0x1003a69e
jmp 0x1003a749
mov cl, byte [esp + 0x47]
xor eax, eax
test cl, 1
mov dword [esp + 0x1c], eax
jne 0x1003a73f
jmp 0x1003a6b6
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xa4]
mov esi, dword [esp + 0xa0]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov dl, byte [edx + eax]
mov byte [esp + 0x1b], dl
mov edi, 0x17
xor edx, edx
div edi
mov eax, dword [esp + 0x14]
mov edi, edx
mov dh, byte [esp + 0x1b]
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, 0xb8b4e584
add eax, 1
sub eax, 0xb8b4e584
cmp eax, 0x16
mov dword [esp + 0x1c], eax
jne 0x1003a6b6
mov eax, dword [0x10062320]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add eax, 0x252c23e8
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [eax], 1
jmp 0x1003a73f
add esp, 0xb4
pop esi
pop edi
pop ebx
ret
mov eax, dword [0x10062320]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add eax, 0x252c23e8
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
mov eax, dword [eax]
jmp 0x1003a43f
jmp 0x1003a2c4
mov eax, dword [0x10062320]
add eax, 0x252c23e8
mov dword [esp], eax
mov eax, dword [esp]
mov eax, dword [eax]
jmp 0x1003a4fe