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

Disassembly:
push ebx
push esi
sub esp, 0x50
mov eax, dword [esp + 0x60]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x40], eax
mov eax, dword [0x10068c60]
mov dword [esp + 0x44], eax
mov ecx, dword [0x10068c5c]
mov dword [esp + 0x48], ecx
add eax, 0xd3c95ac4
sub eax, 1
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
sub edx, 0xd3c95ac4
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x3a], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x3b], al
mov al, byte [esp + 0x3b]
mov cl, byte [esp + 0x3a]
xor cl, 0xff
mov byte [esp + 0x37], cl
xor al, 0xff
mov byte [esp + 0x38], al
mov al, 1
xor al, 0
mov byte [esp + 0x39], al
mov ah, byte [esp + 0x39]
mov dl, byte [esp + 0x3b]
mov ch, byte [esp + 0x38]
mov cl, byte [esp + 0x3a]
mov al, byte [esp + 0x37]
and al, 0
and cl, ah
and ch, 0
mov byte [esp + 0x34], ch
and dl, ah
mov byte [esp + 0x35], dl
or al, cl
mov byte [esp + 0x36], al
mov cl, byte [esp + 0x39]
mov dl, byte [esp + 0x38]
mov al, byte [esp + 0x37]
mov ah, byte [esp + 0x36]
mov dh, byte [esp + 0x35]
mov ch, byte [esp + 0x34]
or ch, dh
xor ah, ch
mov byte [esp + 0x32], ah
or al, dl
xor al, 0xff
or cl, 0
and al, cl
mov byte [esp + 0x33], al
mov cl, byte [esp + 0x33]
mov al, byte [esp + 0x32]
or al, cl
test al, 1
jne 0x10047d9c
jmp 0x10047f1c
mov eax, dword [esp + 0x3c]
add eax, 0x15
mov dword [esp + 0x24], eax
mov eax, dword [0x10067360]
cmp dword [eax + 0x104a4e48], 1
sete al
mov byte [esp + 0x2b], al
mov eax, dword [0x10068c60]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [0x10068c5c]
mov edx, ecx
add edx, 0xe2091bc6
sub edx, 1
sub edx, 0xe2091bc6
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x22], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x23], al
mov cl, byte [esp + 0x23]
mov ah, byte [esp + 0x22]
mov dl, ah
xor dl, 0xff
mov byte [esp + 0x1d], dl
mov al, cl
xor al, 0xff
mov byte [esp + 0x1e], al
mov ch, 1
xor ch, 1
mov byte [esp + 0x1f], ch
and dl, 0xff
and ah, ch
and al, 0xff
and cl, ch
or dl, ah
mov byte [esp + 0x20], dl
or al, cl
mov byte [esp + 0x21], al
mov al, byte [esp + 0x1f]
mov dl, byte [esp + 0x1e]
mov cl, byte [esp + 0x1d]
mov ch, byte [esp + 0x21]
mov ah, byte [esp + 0x20]
xor ah, ch
mov byte [esp + 0x1a], ah
or cl, dl
xor cl, 0xff
mov byte [esp + 0x1b], cl
or al, 1
mov byte [esp + 0x1c], al
mov cl, byte [esp + 0x1c]
mov al, byte [esp + 0x1b]
and al, cl
mov byte [esp + 0x19], al
mov cl, byte [esp + 0x19]
mov al, byte [esp + 0x1a]
or al, cl
test al, 1
jne 0x10047e7c
jmp 0x10047f1c
mov cl, byte [esp + 0x2b]
xor eax, eax
test cl, 1
mov dword [esp + 0x14], eax
jne 0x10047f16
jmp 0x10047e94
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov bh, byte [edx + eax]
mov esi, 0x15
xor edx, edx
div esi
mov eax, dword [esp + 0x10]
mov bl, byte [ecx + edx]
mov dl, bh
xor dl, 0xff
and dl, 0xa1
mov cl, 0xff
xor cl, 0xa1
and bh, cl
mov dh, bl
xor dh, 0xff
and dh, 0xa1
and bl, cl
mov ecx, dword [esp + 0x40]
or dl, bh
or dh, bl
xor dl, dh
mov byte [ecx + eax], dl
xor ecx, ecx
sub ecx, 1
sub eax, ecx
cmp eax, 0xa
mov dword [esp + 0x14], eax
jne 0x10047e94
mov eax, dword [0x10067360]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add eax, 0x104a4e48
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov dword [eax], 1
jmp 0x10047f16
add esp, 0x50
pop esi
pop ebx
ret
mov eax, dword [0x10067360]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0x104a4e48
mov dword [esp], eax
mov eax, dword [esp]
mov eax, dword [eax]
jmp 0x10047d9c