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

Disassembly:
push ebx
push edi
push esi
sub esp, 0x6c
mov eax, dword [esp + 0x80]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x64], ecx
add eax, 0x1b
mov dword [esp + 0x68], eax
mov eax, dword [0x10069310]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x5c]
add eax, 0x33b0e41
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x58]
mov eax, dword [eax]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x54]
cmp eax, 1
sete al
mov byte [esp + 0x53], al
mov cl, byte [esp + 0x53]
xor eax, eax
test cl, 1
mov dword [esp + 0x4c], eax
jne 0x10040767
jmp 0x10040456
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x44], eax
mov dl, byte [edx + eax]
mov byte [esp + 0x4b], dl
mov edi, 0x1b
xor edx, edx
div edi
mov eax, dword [esp + 0x44]
mov edi, edx
mov dh, byte [esp + 0x4b]
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
add eax, 0x131dfce0
add eax, 1
sub eax, 0x131dfce0
cmp eax, 5
mov dword [esp + 0x4c], eax
jne 0x10040456
mov eax, dword [0x1006ad08]
mov dword [esp + 0x38], eax
mov ecx, dword [0x1006ad04]
mov dword [esp + 0x3c], ecx
sub eax, 0xc6927691
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
sub eax, 1
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
add ecx, 0xc6927691
imul eax, ecx
and eax, 1
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
cmp eax, 0
sete al
mov byte [esp + 0x2d], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x2e], cl
and al, cl
mov byte [esp + 0x2f], al
mov cl, byte [esp + 0x2e]
mov al, byte [esp + 0x2d]
xor al, cl
mov byte [esp + 0x2c], al
mov cl, byte [esp + 0x2c]
mov al, byte [esp + 0x2f]
or al, cl
test al, 1
jne 0x1004053a
jmp 0x1004076e
mov eax, dword [0x10069310]
mov dword [eax + 0x33b0e41], 1
mov ecx, dword [0x1006ad08]
mov eax, dword [0x1006ad04]
xor esi, esi
sub esi, 1
mov edx, ecx
add edx, esi
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x2a], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x2b], al
mov al, byte [esp + 0x2b]
mov cl, byte [esp + 0x2a]
xor cl, 0xff
mov byte [esp + 0x27], cl
xor al, 0xff
mov byte [esp + 0x28], al
mov al, 1
xor al, 1
mov byte [esp + 0x29], al
mov ch, byte [esp + 0x29]
mov dl, byte [esp + 0x2b]
mov cl, byte [esp + 0x28]
mov ah, byte [esp + 0x2a]
mov al, byte [esp + 0x27]
and al, 0xff
and ah, ch
and cl, 0xff
and dl, ch
or al, ah
or cl, dl
xor al, cl
mov byte [esp + 0x26], al
mov al, byte [esp + 0x26]
mov dl, byte [esp + 0x29]
mov ah, byte [esp + 0x28]
mov cl, byte [esp + 0x27]
or cl, ah
xor cl, 0xff
or dl, 1
and cl, dl
or al, cl
mov byte [esp + 0x25], al
mov al, byte [esp + 0x25]
test al, 1
jne 0x100405ec
jmp 0x1004076e
mov ecx, dword [0x1006ad08]
mov eax, dword [0x1006ad04]
mov edx, ecx
sub edx, 0xce16bbe
sub edx, 1
add edx, 0xce16bbe
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x23], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x24], al
mov al, byte [esp + 0x24]
mov cl, byte [esp + 0x23]
xor cl, 0xff
mov byte [esp + 0x21], cl
xor al, 0xff
mov byte [esp + 0x22], al
mov al, 1
xor al, 1
mov byte [esp + 0x20], al
mov ah, byte [esp + 0x20]
mov dl, byte [esp + 0x24]
mov ch, byte [esp + 0x22]
mov cl, byte [esp + 0x23]
mov al, byte [esp + 0x21]
and al, 0xff
and cl, ah
and ch, 0xff
mov byte [esp + 0x1d], ch
and dl, ah
mov byte [esp + 0x1e], dl
or al, cl
mov byte [esp + 0x1f], al
mov cl, byte [esp + 0x22]
mov al, byte [esp + 0x21]
mov dl, byte [esp + 0x1f]
mov ch, byte [esp + 0x1e]
mov ah, byte [esp + 0x1d]
or ah, ch
xor dl, ah
mov byte [esp + 0x1b], dl
or al, cl
mov byte [esp + 0x1c], al
mov al, byte [esp + 0x1b]
mov dl, byte [esp + 0x20]
mov cl, byte [esp + 0x1c]
xor cl, 0xff
or dl, 1
and cl, dl
or al, cl
test al, 1
jne 0x100406af
jmp 0x10040791
mov eax, dword [0x1006ad08]
mov ecx, dword [0x1006ad04]
mov dword [esp + 0x14], ecx
xor edx, edx
sub edx, 1
mov ecx, eax
add ecx, edx
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x1a], al
mov eax, dword [esp + 0x14]
cmp eax, 0xa
setl al
mov byte [esp + 0x13], al
mov cl, byte [esp + 0x13]
mov ah, byte [esp + 0x1a]
mov dl, ah
xor dl, 0xff
mov byte [esp + 0xe], dl
mov al, cl
xor al, 0xff
mov byte [esp + 0xf], al
mov ch, 1
xor ch, 1
mov byte [esp + 0x10], ch
and dl, 0xff
and ah, ch
and al, 0xff
and cl, ch
or dl, ah
mov byte [esp + 0x11], dl
or al, cl
mov byte [esp + 0x12], al
mov cl, byte [esp + 0x10]
mov dl, byte [esp + 0xf]
mov al, byte [esp + 0xe]
mov ch, byte [esp + 0x12]
mov ah, byte [esp + 0x11]
xor ah, ch
mov byte [esp + 0xc], ah
or al, dl
xor al, 0xff
or cl, 1
and al, cl
mov byte [esp + 0xd], al
mov cl, byte [esp + 0xd]
mov al, byte [esp + 0xc]
or al, cl
mov byte [esp + 0xb], al
mov al, byte [esp + 0xb]
test al, 1
jne 0x10040762
jmp 0x10040791
jmp 0x10040767
add esp, 0x6c
pop esi
pop edi
pop ebx
ret
mov eax, dword [0x10069310]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0x33b0e41
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x1004053a
jmp 0x100406af