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

Disassembly:
push ebx
push edi
push esi
sub esp, 0x78
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x68], eax
mov eax, dword [0x1005fc98]
mov dword [esp + 0x6c], eax
mov ecx, dword [0x1005fc94]
mov dword [esp + 0x70], ecx
xor ecx, ecx
sub ecx, 1
add eax, ecx
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x6c]
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x5e], cl
mov dl, al
xor dl, 0xff
mov byte [esp + 0x5f], dl
xor cl, 0xff
mov byte [esp + 0x60], cl
mov cl, 1
xor cl, 0
mov byte [esp + 0x61], cl
and dl, 0
mov byte [esp + 0x62], dl
and al, cl
mov byte [esp + 0x63], al
mov ah, byte [esp + 0x63]
mov dl, byte [esp + 0x62]
mov ch, byte [esp + 0x61]
mov cl, byte [esp + 0x5e]
mov al, byte [esp + 0x60]
and al, 0
and cl, ch
or dl, ah
mov byte [esp + 0x5c], dl
or al, cl
mov byte [esp + 0x5d], al
mov cl, byte [esp + 0x5d]
mov al, byte [esp + 0x5c]
xor al, cl
mov byte [esp + 0x5b], al
mov cl, byte [esp + 0x60]
mov al, byte [esp + 0x5f]
or al, cl
mov byte [esp + 0x5a], al
mov al, byte [esp + 0x5b]
mov dl, byte [esp + 0x61]
mov cl, byte [esp + 0x5a]
xor cl, 0xff
or dl, 0
and cl, dl
or al, cl
test al, 1
jne 0x1003b975
jmp 0x1003bbc6
mov eax, dword [esp + 0x64]
add eax, 0x1d
mov dword [esp + 0x54], eax
mov eax, dword [0x1005e34c]
cmp dword [eax - 0x32bb43e1], 1
sete al
mov byte [esp + 0x53], al
mov eax, dword [0x1005fc98]
mov ecx, dword [0x1005fc94]
mov dword [esp + 0x4c], ecx
mov ecx, eax
sub ecx, 0x6a41e192
sub ecx, 1
add ecx, 0x6a41e192
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x52], al
mov eax, dword [esp + 0x4c]
cmp eax, 0xa
setl al
mov byte [esp + 0x4b], al
mov dl, byte [esp + 0x4b]
mov cl, byte [esp + 0x52]
mov al, cl
and al, dl
xor cl, dl
or al, cl
mov byte [esp + 0x4a], al
mov al, byte [esp + 0x4a]
test al, 1
jne 0x1003b9f6
jmp 0x1003bbc6
mov cl, byte [esp + 0x53]
xor eax, eax
test cl, 1
mov dword [esp + 0x44], eax
jne 0x1003bbbf
jmp 0x1003ba0e
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x3c], eax
mov dl, byte [edx + eax]
mov byte [esp + 0x43], dl
mov edi, 0x1d
xor edx, edx
div edi
mov eax, dword [esp + 0x3c]
mov edi, edx
mov dh, byte [esp + 0x43]
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
sub eax, 0xe8e6771e
add eax, 1
add eax, 0xe8e6771e
cmp eax, 0xc
mov dword [esp + 0x44], eax
jne 0x1003ba0e
mov eax, dword [0x1005fc98]
mov dword [esp + 0x30], eax
mov ecx, dword [0x1005fc94]
mov dword [esp + 0x34], ecx
add eax, 0x8829776
sub eax, 1
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
sub ecx, 0x8829776
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 0x1003bae4
jmp 0x1003bbe7
mov eax, dword [0x1005e34c]
mov dword [eax - 0x32bb43e1], 1
mov eax, dword [0x1005fc98]
mov dword [esp + 0x20], eax
mov ecx, dword [0x1005fc94]
mov dword [esp + 0x24], ecx
add eax, 0x1f38a98d
sub eax, 1
sub eax, 0x1f38a98d
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
imul eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
and eax, 1
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
cmp eax, 0
sete ah
cmp ecx, 0xa
setl cl
mov dl, ah
xor dl, 0xff
mov byte [esp + 0x13], dl
mov al, cl
xor al, 0xff
mov byte [esp + 0x14], al
mov ch, 1
xor ch, 1
mov byte [esp + 0x15], ch
and dl, 0xff
and ah, ch
and al, 0xff
and cl, ch
or dl, ah
mov byte [esp + 0x16], dl
or al, cl
mov byte [esp + 0x17], al
mov al, byte [esp + 0x15]
mov dl, byte [esp + 0x14]
mov cl, byte [esp + 0x13]
mov ch, byte [esp + 0x17]
mov ah, byte [esp + 0x16]
xor ah, ch
mov byte [esp + 0x10], ah
or cl, dl
xor cl, 0xff
mov byte [esp + 0x11], cl
or al, 1
mov byte [esp + 0x12], al
mov al, byte [esp + 0x10]
mov dl, byte [esp + 0x12]
mov cl, byte [esp + 0x11]
and cl, dl
or al, cl
test al, 1
jne 0x1003bbba
jmp 0x1003bbe7
jmp 0x1003bbbf
add esp, 0x78
pop esi
pop edi
pop ebx
ret
mov eax, dword [0x1005e34c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add eax, 0xcd44bc1f
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov eax, dword [eax]
jmp 0x1003b975
mov eax, dword [0x1005e34c]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0xcd44bc1f
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x1003bae4