Function at 0x10047f50
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, 0x15
mov dword [esp + 0xac], eax
mov eax, dword [0x1005e3a0]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xa0]
add eax, 0xc4833610
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 0x100481c2
jmp 0x10047fe0
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, 0x15
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, 0x15
mov dword [esp + 0x90], eax
jne 0x10047fe0
mov eax, dword [0x1005fbf0]
mov dword [esp + 0x7c], eax
mov ecx, dword [0x1005fbec]
mov dword [esp + 0x80], ecx
add eax, 0x22ac50db
sub eax, 1
sub eax, 0x22ac50db
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x7c]
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x78], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x79], al
xor cl, 0xff
mov byte [esp + 0x7a], cl
xor al, 0xff
mov byte [esp + 0x7b], al
mov al, byte [esp + 0x79]
mov dl, byte [esp + 0x7b]
mov ah, byte [esp + 0x78]
mov ch, byte [esp + 0x7a]
mov cl, 1
xor cl, 1
mov byte [esp + 0x73], cl
and ch, 0xff
mov byte [esp + 0x74], ch
and ah, cl
mov byte [esp + 0x75], ah
and dl, 0xff
mov byte [esp + 0x76], dl
and al, cl
mov byte [esp + 0x77], al
mov cl, byte [esp + 0x75]
mov al, byte [esp + 0x74]
or al, cl
mov byte [esp + 0x72], al
mov cl, byte [esp + 0x7b]
mov al, byte [esp + 0x7a]
mov dl, byte [esp + 0x72]
mov ch, byte [esp + 0x77]
mov ah, byte [esp + 0x76]
or ah, ch
xor dl, ah
mov byte [esp + 0x70], dl
or al, cl
xor al, 0xff
mov byte [esp + 0x71], al
mov al, byte [esp + 0x70]
mov cl, byte [esp + 0x71]
mov dl, byte [esp + 0x73]
or dl, 1
and cl, dl
or al, cl
test al, 1
jne 0x10048143
jmp 0x100481cc
mov eax, dword [0x1005e3a0]
add eax, 0xc4833610
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x6c]
mov dword [eax], 1
mov eax, dword [0x1005fbf0]
mov dword [esp + 0x68], eax
mov eax, dword [0x1005fbec]
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
xor esi, esi
sub esi, 1
mov edx, eax
add edx, esi
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
mov byte [esp + 0x62], dl
xor al, cl
mov byte [esp + 0x63], al
mov cl, byte [esp + 0x63]
mov al, byte [esp + 0x62]
or al, cl
mov byte [esp + 0x61], al
mov al, byte [esp + 0x61]
test al, 1
jne 0x100481bd
jmp 0x100481cc
jmp 0x100481c2
add esp, 0xb0
pop esi
pop edi
pop ebx
ret
mov eax, dword [0x1005fbf0]
mov dword [esp + 0x54], eax
mov ecx, dword [0x1005fbec]
mov dword [esp + 0x58], ecx
xor ecx, ecx
sub ecx, 1
add eax, ecx
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
imul eax, ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x50]
and eax, 1
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x4c]
cmp eax, 0
sete al
mov byte [esp + 0x46], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x47], cl
xor al, 0xff
mov byte [esp + 0x48], al
xor cl, 0xff
mov byte [esp + 0x49], cl
mov cl, 1
xor cl, 1
mov byte [esp + 0x4a], cl
and al, 0xff
mov byte [esp + 0x4b], al
mov dl, byte [esp + 0x4a]
mov ah, byte [esp + 0x49]
mov cl, byte [esp + 0x48]
mov al, byte [esp + 0x4b]
mov dh, byte [esp + 0x47]
mov bl, byte [esp + 0x46]
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 + 0x45], al
mov al, byte [esp + 0x45]
test al, 1
jne 0x10048284
jmp 0x1004846d
mov ecx, dword [0x1005fbf0]
mov eax, dword [0x1005fbec]
mov edx, ecx
add edx, 0x9c8deb0b
sub edx, 1
sub edx, 0x9c8deb0b
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x43], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x44], al
mov al, byte [esp + 0x44]
mov cl, byte [esp + 0x43]
xor cl, 0xff
mov byte [esp + 0x41], cl
xor al, 0xff
mov byte [esp + 0x42], al
mov al, byte [esp + 0x41]
mov cl, 1
xor cl, 0
mov byte [esp + 0x3f], cl
and al, 0
mov byte [esp + 0x40], al
mov al, byte [esp + 0x40]
mov ch, byte [esp + 0x3f]
mov dl, byte [esp + 0x44]
mov cl, byte [esp + 0x42]
mov ah, byte [esp + 0x43]
and ah, ch
and cl, 0
and dl, ch
or al, ah
or cl, dl
xor al, cl
mov byte [esp + 0x3e], al
mov cl, byte [esp + 0x3f]
mov dl, byte [esp + 0x42]
mov al, byte [esp + 0x41]
or al, dl
xor al, 0xff
or cl, 0
and al, cl
mov byte [esp + 0x3d], al
mov cl, byte [esp + 0x3d]
mov al, byte [esp + 0x3e]
or al, cl
test al, 1
jne 0x10048337
jmp 0x10048492
mov eax, dword [0x1005e3a0]
mov dword [eax - 0x3b7cc9f0], 1
mov eax, dword [0x1005fbf0]
mov dword [esp + 0x30], eax
mov ecx, dword [0x1005fbec]
mov dword [esp + 0x34], ecx
xor ecx, ecx
sub ecx, 1
add eax, ecx
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
imul eax, ecx
and eax, 1
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
cmp eax, 0
sete al
mov byte [esp + 0x29], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x2a], cl
and al, cl
mov byte [esp + 0x2b], al
mov al, byte [esp + 0x2b]
mov dl, byte [esp + 0x2a]
mov cl, byte [esp + 0x29]
xor cl, dl
or al, cl
mov byte [esp + 0x28], al
mov al, byte [esp + 0x28]
test al, 1
jne 0x100483bd
jmp 0x10048492
mov eax, dword [0x1005fbf0]
mov dword [esp + 0x20], eax
mov eax, dword [0x1005fbec]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
sub eax, 0x3102667e
sub eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
add eax, 0x3102667e
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
imul eax, ecx
and eax, 1
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cmp eax, 0
sete ah
cmp ecx, 0xa
setl dl
mov al, ah
xor al, 0xff
mov byte [esp + 0x10], al
mov cl, dl
xor cl, 0xff
mov byte [esp + 0x11], cl
mov ch, 1
xor ch, 0
mov byte [esp + 0x12], ch
and al, 0
and ah, ch
and cl, 0
and dl, ch
or al, ah
or cl, dl
xor al, cl
mov byte [esp + 0x13], al
mov al, byte [esp + 0x13]
mov dl, byte [esp + 0x12]
mov ah, byte [esp + 0x11]
mov cl, byte [esp + 0x10]
or cl, ah
xor cl, 0xff
or dl, 0
and cl, dl
or al, cl
test al, 1
jne 0x10048468
jmp 0x1004846d
jmp 0x10048143
mov eax, dword [0x1005e3a0]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add eax, 0xc4833610
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov dword [eax], 1
jmp 0x10048284
mov eax, dword [0x1005e3a0]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0xc4833610
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x10048337