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

Disassembly:
push ebx
push edi
push esi
sub esp, 0xcc
mov eax, dword [esp + 0xe0]
mov dword [esp + 0xc0], eax
mov ecx, dword [esp + 0xdc]
mov dword [esp + 0xc4], ecx
add eax, 0x1d
mov dword [esp + 0xc8], eax
mov eax, dword [0x10067394]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xbc]
add eax, 0xa8fb3c9e
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xb8]
mov eax, dword [eax]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xb4]
cmp eax, 1
sete al
mov byte [esp + 0xb3], al
mov cl, byte [esp + 0xb3]
xor eax, eax
test cl, 1
mov dword [esp + 0xac], eax
jne 0x1004fc6c
jmp 0x1004fbc0
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xc4]
mov esi, dword [esp + 0xc0]
mov edx, dword [esp + 0xc8]
mov dword [esp + 0xa4], eax
mov dl, byte [edx + eax]
mov byte [esp + 0xab], dl
mov edi, 0x1d
xor edx, edx
div edi
mov eax, dword [esp + 0xa4]
mov edi, edx
mov dh, byte [esp + 0xab]
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, 3
mov dword [esp + 0xac], eax
jne 0x1004fbc0
mov eax, dword [0x10067394]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xa0]
add eax, 0xa8fb3c9e
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x9c]
mov dword [eax], 1
jmp 0x1004fc6c
mov ecx, dword [0x10068c00]
mov eax, dword [0x10068bfc]
mov edx, ecx
sub edx, 0xa901d6ad
sub edx, 1
add edx, 0xa901d6ad
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x97], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x98], al
xor cl, 0xff
mov byte [esp + 0x99], cl
xor al, 0xff
mov byte [esp + 0x9a], al
mov al, 1
xor al, 1
mov byte [esp + 0x9b], al
mov al, byte [esp + 0x99]
and al, 0xff
mov byte [esp + 0x96], al
mov cl, byte [esp + 0x9b]
mov al, byte [esp + 0x97]
and al, cl
mov byte [esp + 0x95], al
mov cl, byte [esp + 0x9a]
mov al, byte [esp + 0x99]
mov dh, byte [esp + 0x95]
mov dl, byte [esp + 0x96]
mov bl, byte [esp + 0x9b]
mov ch, byte [esp + 0x98]
mov ah, cl
and ah, 0xff
and ch, bl
or dl, dh
or ah, ch
xor dl, ah
mov byte [esp + 0x93], dl
or al, cl
mov byte [esp + 0x94], al
mov cl, byte [esp + 0x9b]
mov al, byte [esp + 0x94]
xor al, 0xff
or cl, 1
and al, cl
mov byte [esp + 0x92], al
mov cl, byte [esp + 0x92]
mov al, byte [esp + 0x93]
or al, cl
test al, 1
jne 0x1004fd6d
jmp 0x10050299
mov eax, dword [0x10068c00]
mov dword [esp + 0x88], eax
mov eax, dword [0x10068bfc]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x88]
sub eax, 0x85d14dde
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x84]
sub eax, 1
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x80]
add edx, 0x85d14dde
imul eax, edx
and eax, 1
cmp eax, 0
sete ah
cmp ecx, 0xa
setl dl
mov al, ah
xor al, 0xff
mov byte [esp + 0x7c], al
mov cl, dl
xor cl, 0xff
mov byte [esp + 0x7d], cl
mov ch, 1
xor ch, 1
mov byte [esp + 0x7e], 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 + 0x7f], al
mov cl, byte [esp + 0x7d]
mov al, byte [esp + 0x7c]
or al, cl
mov byte [esp + 0x7b], al
mov al, byte [esp + 0x7f]
mov dl, byte [esp + 0x7e]
mov cl, byte [esp + 0x7b]
xor cl, 0xff
or dl, 1
and cl, dl
or al, cl
test al, 1
jne 0x1004fe34
jmp 0x10050299
mov eax, dword [0x10068c00]
mov dword [esp + 0x6c], eax
mov ecx, dword [0x10068bfc]
mov dword [esp + 0x70], ecx
add eax, 0xfd4e1df0
sub eax, 1
sub eax, 0xfd4e1df0
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x6c]
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x6b], al
mov cl, byte [esp + 0x6b]
mov eax, dword [esp + 0x70]
cmp eax, 0xa
setl al
mov byte [esp + 0x68], al
xor cl, 0xff
mov byte [esp + 0x69], cl
xor al, 0xff
mov byte [esp + 0x6a], al
mov al, byte [esp + 0x6a]
mov cl, byte [esp + 0x6b]
mov ah, byte [esp + 0x69]
mov dl, 1
xor dl, 1
mov byte [esp + 0x64], dl
and ah, 0xff
mov byte [esp + 0x65], ah
and cl, dl
mov byte [esp + 0x66], cl
and al, 0xff
mov byte [esp + 0x67], al
mov al, byte [esp + 0x64]
mov dl, byte [esp + 0x6a]
mov cl, byte [esp + 0x69]
mov ch, byte [esp + 0x67]
mov bl, byte [esp + 0x66]
mov ah, byte [esp + 0x65]
mov dh, byte [esp + 0x68]
and dh, al
or ah, bl
or ch, dh
xor ah, ch
mov byte [esp + 0x61], ah
or cl, dl
xor cl, 0xff
mov byte [esp + 0x62], cl
or al, 1
mov byte [esp + 0x63], al
mov al, byte [esp + 0x61]
mov dl, byte [esp + 0x63]
mov cl, byte [esp + 0x62]
and cl, dl
or al, cl
test al, 1
jne 0x1004ff0b
jmp 0x10050109
mov eax, dword [0x10068c00]
mov dword [esp + 0x58], eax
mov eax, dword [0x10068bfc]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x58]
mov ecx, eax
add ecx, 0xd5633b2b
sub ecx, 1
sub ecx, 0xd5633b2b
imul eax, ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x52], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x53], al
mov cl, byte [esp + 0x53]
mov ah, byte [esp + 0x52]
mov dl, ah
xor dl, 0xff
mov byte [esp + 0x4d], dl
mov al, cl
xor al, 0xff
mov byte [esp + 0x4e], al
mov ch, 1
xor ch, 1
mov byte [esp + 0x4f], ch
and dl, 0xff
and ah, ch
and al, 0xff
and cl, ch
or dl, ah
mov byte [esp + 0x50], dl
or al, cl
mov byte [esp + 0x51], al
mov cl, byte [esp + 0x51]
mov al, byte [esp + 0x50]
xor al, cl
mov byte [esp + 0x4c], al
mov al, byte [esp + 0x4c]
mov dl, byte [esp + 0x4f]
mov ah, byte [esp + 0x4e]
mov cl, byte [esp + 0x4d]
or cl, ah
xor cl, 0xff
or dl, 1
and cl, dl
or al, cl
test al, 1
jne 0x1004ffc6
jmp 0x10050109
mov eax, dword [0x10068c00]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [0x10068bfc]
mov dword [esp + 0x40], ecx
add eax, 0x1b7b1994
sub eax, 1
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
sub eax, 0x1b7b1994
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x48]
imul eax, edx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x39], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x3a], cl
and al, cl
mov byte [esp + 0x3b], al
mov cl, byte [esp + 0x3a]
mov al, byte [esp + 0x39]
xor al, cl
mov byte [esp + 0x38], al
mov cl, byte [esp + 0x38]
mov al, byte [esp + 0x3b]
or al, cl
test al, 1
jne 0x10050047
jmp 0x1005029e
mov eax, dword [0x10068c00]
mov ecx, dword [0x10068bfc]
mov dword [esp + 0x30], ecx
mov ecx, eax
add ecx, 0x17ca072d
sub ecx, 1
sub ecx, 0x17ca072d
imul eax, ecx
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x2d], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x2e], cl
xor al, 0xff
mov byte [esp + 0x2f], al
mov al, byte [esp + 0x2e]
xor al, 0xff
mov byte [esp + 0x2c], al
mov cl, byte [esp + 0x2c]
mov al, byte [esp + 0x2f]
mov ch, byte [esp + 0x2e]
mov dh, byte [esp + 0x2d]
mov bl, 1
xor bl, 0
mov byte [esp + 0x29], bl
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 + 0x2a], dl
or al, cl
mov byte [esp + 0x2b], al
mov al, byte [esp + 0x2a]
mov dl, byte [esp + 0x29]
mov cl, byte [esp + 0x2b]
xor cl, 0xff
or dl, 0
and cl, dl
or al, cl
mov byte [esp + 0x28], al
mov al, byte [esp + 0x28]
test al, 1
jne 0x100500ff
jmp 0x1005029e
add esp, 0xcc
pop esi
pop edi
pop ebx
ret
mov eax, dword [0x10068c00]
mov ecx, dword [0x10068bfc]
mov dword [esp + 0x20], ecx
mov ecx, eax
add ecx, 0x4ceca912
sub ecx, 1
sub ecx, 0x4ceca912
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x27], al
mov al, byte [esp + 0x27]
mov ecx, dword [esp + 0x20]
cmp ecx, 0xa
setl cl
mov byte [esp + 0x1a], cl
mov dl, al
xor dl, 0xff
mov byte [esp + 0x1b], dl
xor cl, 0xff
mov byte [esp + 0x1c], cl
mov cl, 1
xor cl, 1
mov byte [esp + 0x1d], cl
and dl, 0xff
mov byte [esp + 0x1e], dl
and al, cl
mov byte [esp + 0x1f], al
mov al, byte [esp + 0x1c]
and al, 0xff
mov byte [esp + 0x19], al
mov al, byte [esp + 0x19]
mov ah, byte [esp + 0x1f]
mov dl, byte [esp + 0x1e]
mov ch, byte [esp + 0x1d]
mov cl, byte [esp + 0x1a]
and cl, ch
or dl, ah
mov byte [esp + 0x17], dl
or al, cl
mov byte [esp + 0x18], al
mov al, byte [esp + 0x1d]
mov dl, byte [esp + 0x1c]
mov cl, byte [esp + 0x1b]
mov ch, byte [esp + 0x18]
mov ah, byte [esp + 0x17]
xor ah, ch
mov byte [esp + 0x14], ah
or cl, dl
xor cl, 0xff
mov byte [esp + 0x15], cl
or al, 1
mov byte [esp + 0x16], al
mov al, byte [esp + 0x14]
mov dl, byte [esp + 0x16]
mov cl, byte [esp + 0x15]
and cl, dl
or al, cl
test al, 1
jne 0x100501e3
jmp 0x100502a3
mov eax, dword [0x10068c00]
mov dword [esp + 0xc], eax
mov eax, dword [0x10068bfc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
sub eax, 0x94f8e745
sub eax, 1
add eax, 0x94f8e745
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
imul eax, edx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 2], al
cmp ecx, 0xa
setl cl
mov byte [esp + 3], cl
xor al, 0xff
mov byte [esp + 4], al
xor cl, 0xff
mov byte [esp + 5], cl
mov cl, 1
xor cl, 1
mov byte [esp + 6], cl
and al, 0xff
mov byte [esp + 7], al
mov dl, byte [esp + 6]
mov ah, byte [esp + 5]
mov cl, byte [esp + 4]
mov al, byte [esp + 7]
mov dh, byte [esp + 3]
mov bl, byte [esp + 2]
and bl, dl
mov ch, ah
and ch, 0xff
and dh, dl
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 + 1], al
mov al, byte [esp + 1]
test al, 1
jne 0x10050294
jmp 0x100502a3
jmp 0x1004ff0b
jmp 0x1004fd6d
jmp 0x10050047
jmp 0x100501e3