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

Disassembly:
push ebx
push esi
sub esp, 0xa4
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x94], eax
mov eax, dword [0x10064ce0]
mov dword [esp + 0x98], eax
mov eax, dword [0x10064cdc]
mov dword [esp + 0x9c], eax
xor eax, eax
sub eax, 1
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x98]
mov esi, dword [esp + 0xa0]
mov edx, ecx
add edx, esi
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x8b], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x8c], al
xor cl, 0xff
mov byte [esp + 0x8d], cl
xor al, 0xff
mov byte [esp + 0x8e], al
mov al, 1
xor al, 0
mov byte [esp + 0x8f], al
mov ch, byte [esp + 0x8f]
mov cl, byte [esp + 0x8c]
mov al, byte [esp + 0x8e]
mov ah, byte [esp + 0x8b]
mov dl, byte [esp + 0x8d]
and dl, 0
and ah, ch
and al, 0
and cl, ch
or dl, ah
mov byte [esp + 0x89], dl
or al, cl
mov byte [esp + 0x8a], al
mov cl, byte [esp + 0x8e]
mov al, byte [esp + 0x8d]
mov ah, byte [esp + 0x8a]
mov dl, byte [esp + 0x89]
xor dl, ah
mov byte [esp + 0x87], dl
or al, cl
xor al, 0xff
mov byte [esp + 0x88], al
mov al, byte [esp + 0x8f]
or al, 0
mov byte [esp + 0x86], al
mov al, byte [esp + 0x87]
mov dl, byte [esp + 0x86]
mov cl, byte [esp + 0x88]
and cl, dl
or al, cl
test al, 1
jne 0x1003a2b3
jmp 0x1003a527
mov eax, dword [esp + 0x90]
add eax, 0x17
mov dword [esp + 0x7c], eax
mov eax, dword [0x10063320]
add eax, 0x301aa75b
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x80]
cmp dword [eax], 1
sete al
mov byte [esp + 0x73], al
mov eax, dword [0x10064ce0]
mov dword [esp + 0x74], eax
mov eax, dword [0x10064cdc]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x74]
xor edx, edx
sub edx, 1
mov ecx, eax
add ecx, edx
imul eax, ecx
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x6c]
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x69], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x6a], cl
and al, cl
mov byte [esp + 0x6b], al
mov al, byte [esp + 0x6b]
mov dl, byte [esp + 0x6a]
mov cl, byte [esp + 0x69]
xor cl, dl
or al, cl
mov byte [esp + 0x68], al
mov al, byte [esp + 0x68]
test al, 1
jne 0x1003a353
jmp 0x1003a527
mov cl, byte [esp + 0x73]
xor eax, eax
test cl, 1
mov dword [esp + 0x64], eax
jne 0x1003a51e
jmp 0x1003a36b
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x60], eax
mov bh, byte [edx + eax]
mov esi, 0x17
xor edx, edx
div esi
mov eax, dword [esp + 0x60]
mov bl, byte [ecx + edx]
mov dl, bh
xor dl, 0xff
and dl, 0x70
mov cl, 0xff
xor cl, 0x70
and bh, cl
mov dh, bl
xor dh, 0xff
and dh, 0x70
and bl, cl
mov ecx, dword [esp + 0x94]
or dl, bh
or dh, bl
xor dl, dh
mov byte [ecx + eax], dl
add eax, 0x9affe811
add eax, 1
sub eax, 0x9affe811
cmp eax, 0x16
mov dword [esp + 0x64], eax
jne 0x1003a36b
mov eax, dword [0x10064ce0]
mov ecx, dword [0x10064cdc]
mov dword [esp + 0x58], ecx
mov ecx, eax
sub ecx, 0x174db5ec
sub ecx, 1
add ecx, 0x174db5ec
imul eax, ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x5c]
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x57], al
mov eax, dword [esp + 0x58]
cmp eax, 0xa
setl al
mov byte [esp + 0x56], al
mov dl, byte [esp + 0x56]
mov cl, byte [esp + 0x57]
mov al, cl
and al, dl
xor cl, dl
or al, cl
mov byte [esp + 0x55], al
mov al, byte [esp + 0x55]
test al, 1
jne 0x1003a43f
jmp 0x1003a674
mov eax, dword [0x10063320]
mov dword [eax + 0x301aa75b], 1
mov eax, dword [0x10064ce0]
mov dword [esp + 0x48], eax
mov ecx, dword [0x10064cdc]
mov dword [esp + 0x4c], ecx
add eax, 0x64d80c62
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
sub ecx, 1
sub ecx, 0x64d80c62
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x47], al
mov ah, byte [esp + 0x47]
mov ecx, dword [esp + 0x4c]
cmp ecx, 0xa
setl al
mov ch, ah
xor ch, 0xff
mov byte [esp + 0x40], ch
mov dl, al
xor dl, 0xff
mov byte [esp + 0x41], dl
mov cl, 1
xor cl, 1
mov byte [esp + 0x42], cl
and ch, 0xff
mov byte [esp + 0x43], ch
and ah, cl
mov byte [esp + 0x44], ah
and dl, 0xff
mov byte [esp + 0x45], dl
and al, cl
mov byte [esp + 0x46], al
mov cl, byte [esp + 0x44]
mov al, byte [esp + 0x43]
or al, cl
mov byte [esp + 0x3f], al
mov dl, byte [esp + 0x42]
mov ah, byte [esp + 0x41]
mov cl, byte [esp + 0x40]
mov al, byte [esp + 0x3f]
mov dh, byte [esp + 0x46]
mov ch, byte [esp + 0x45]
or ch, dh
xor al, ch
or cl, ah
xor cl, 0xff
or dl, 1
and cl, dl
or al, cl
mov byte [esp + 0x3e], al
mov al, byte [esp + 0x3e]
test al, 1
jne 0x1003a519
jmp 0x1003a674
jmp 0x1003a51e
add esp, 0xa4
pop esi
pop ebx
ret
mov eax, dword [0x10064ce0]
mov dword [esp + 0x34], eax
mov eax, dword [0x10064cdc]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
sub eax, 0x5595d1b6
sub eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
add eax, 0x5595d1b6
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x2b], al
mov eax, dword [esp + 0x38]
cmp eax, 0xa
setl al
mov byte [esp + 0x2a], al
mov dl, byte [esp + 0x2a]
mov cl, byte [esp + 0x2b]
mov al, cl
and al, dl
xor cl, dl
or al, cl
test al, 1
jne 0x1003a599
jmp 0x1003a699
mov eax, dword [0x10063320]
mov eax, dword [eax + 0x301aa75b]
mov eax, dword [0x10064ce0]
mov dword [esp + 0x1c], eax
mov ecx, dword [0x10064cdc]
mov dword [esp + 0x20], ecx
xor ecx, ecx
sub ecx, 1
add eax, ecx
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
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 + 0x15], ch
mov dl, al
xor dl, 0xff
mov byte [esp + 0x16], dl
mov cl, 1
xor cl, 1
mov byte [esp + 0x17], cl
and ch, 0xff
mov byte [esp + 0x18], ch
and ah, cl
mov byte [esp + 0x19], ah
and dl, 0xff
mov byte [esp + 0x1a], dl
and al, cl
mov byte [esp + 0x1b], al
mov cl, byte [esp + 0x1b]
mov al, byte [esp + 0x1a]
mov ah, byte [esp + 0x19]
mov dl, byte [esp + 0x18]
or dl, ah
mov byte [esp + 0x13], dl
or al, cl
mov byte [esp + 0x14], al
mov cl, byte [esp + 0x16]
mov al, byte [esp + 0x15]
mov ah, byte [esp + 0x14]
mov dl, byte [esp + 0x13]
xor dl, ah
mov byte [esp + 0x11], dl
or al, cl
xor al, 0xff
mov byte [esp + 0x12], al
mov al, byte [esp + 0x11]
mov cl, byte [esp + 0x12]
mov dl, byte [esp + 0x17]
or dl, 1
and cl, dl
or al, cl
test al, 1
jne 0x1003a66f
jmp 0x1003a699
jmp 0x1003a2b3
mov eax, dword [0x10063320]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add eax, 0x301aa75b
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov dword [eax], 1
jmp 0x1003a43f
mov eax, dword [0x10063320]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0x301aa75b
mov dword [esp], eax
mov eax, dword [esp]
mov eax, dword [eax]
jmp 0x1003a599