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

Disassembly:
push ebx
push edi
push esi
sub esp, 0xdc
mov eax, dword [esp + 0xf0]
mov dword [esp + 0xd0], eax
mov ecx, dword [esp + 0xec]
mov dword [esp + 0xd4], ecx
add eax, 0x13
mov dword [esp + 0xd8], eax
mov eax, dword [0x1005e380]
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xcc]
add eax, 0x5b0d265
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0xc8]
mov eax, dword [eax]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xc4]
cmp eax, 1
sete al
mov byte [esp + 0xc3], al
mov cl, byte [esp + 0xc3]
xor eax, eax
test cl, 1
mov dword [esp + 0xbc], eax
jne 0x10042bd0
jmp 0x100429f0
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xd4]
mov esi, dword [esp + 0xd0]
mov edx, dword [esp + 0xd8]
mov dword [esp + 0xb4], eax
mov dl, byte [edx + eax]
mov byte [esp + 0xbb], dl
mov edi, 0x13
xor edx, edx
div edi
mov eax, dword [esp + 0xb4]
mov edi, edx
mov dh, byte [esp + 0xbb]
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, 0x40
mov dword [esp + 0xbc], eax
jne 0x100429f0
mov eax, dword [0x1005fc30]
mov dword [esp + 0xa8], eax
mov ecx, dword [0x1005fc2c]
mov dword [esp + 0xac], ecx
sub eax, 0x7b2c815e
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0xb0]
sub eax, 1
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa4]
add ecx, 0x7b2c815e
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0xa3], al
mov al, byte [esp + 0xa3]
mov ecx, dword [esp + 0xac]
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
mov byte [esp + 0xa1], dl
xor al, cl
mov byte [esp + 0xa2], al
mov cl, byte [esp + 0xa2]
mov al, byte [esp + 0xa1]
or al, cl
mov byte [esp + 0xa0], al
mov al, byte [esp + 0xa0]
test al, 1
jne 0x10042b1b
jmp 0x10042fd2
mov eax, dword [0x1005e380]
mov dword [eax + 0x5b0d265], 1
mov eax, dword [0x1005fc30]
mov dword [esp + 0x94], eax
mov ecx, dword [0x1005fc2c]
mov dword [esp + 0x98], ecx
add eax, 0x44e90126
sub eax, 1
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x9c]
sub eax, 0x44e90126
mov dword [esp + 0x90], eax
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x94]
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x8f], al
mov al, byte [esp + 0x8f]
mov ecx, dword [esp + 0x98]
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
mov byte [esp + 0x8d], dl
xor al, cl
mov byte [esp + 0x8e], al
mov cl, byte [esp + 0x8e]
mov al, byte [esp + 0x8d]
or al, cl
test al, 1
jne 0x10042bcb
jmp 0x10042fd2
jmp 0x10042bd0
mov eax, dword [0x1005fc30]
mov dword [esp + 0x84], eax
mov eax, dword [0x1005fc2c]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x84]
sub eax, 0x6d43ea4b
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x80]
sub eax, 1
mov dword [esp + 0x7c], eax
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x7c]
add edx, 0x6d43ea4b
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 + 0x7a], dl
xor al, cl
mov byte [esp + 0x7b], al
mov cl, byte [esp + 0x7b]
mov al, byte [esp + 0x7a]
or al, cl
mov byte [esp + 0x79], al
mov al, byte [esp + 0x79]
test al, 1
jne 0x10042c60
jmp 0x10042fc3
mov eax, dword [0x1005fc30]
mov dword [esp + 0x6c], eax
mov eax, dword [0x1005fc2c]
mov dword [esp + 0x70], eax
xor eax, eax
sub eax, 1
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x6c]
add eax, ecx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete dh
cmp eax, 0xa
setl ch
mov al, dh
xor al, 0xff
mov cl, ch
xor cl, 0xff
mov bl, 1
xor bl, 0
mov byte [esp + 0x65], 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 + 0x66], dl
or al, cl
mov byte [esp + 0x67], al
mov al, byte [esp + 0x65]
mov cl, byte [esp + 0x67]
xor cl, 0xff
mov byte [esp + 0x63], cl
or al, 0
mov byte [esp + 0x64], al
mov al, byte [esp + 0x66]
mov dl, byte [esp + 0x64]
mov cl, byte [esp + 0x63]
and cl, dl
or al, cl
mov byte [esp + 0x62], al
mov al, byte [esp + 0x62]
test al, 1
jne 0x10042d11
jmp 0x10042fc8
mov eax, dword [0x1005fc30]
mov dword [esp + 0x58], eax
mov eax, dword [0x1005fc2c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x58]
xor ecx, ecx
sub ecx, 1
add eax, ecx
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
imul eax, ecx
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x50]
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
mov byte [esp + 0x4e], dl
xor al, cl
mov byte [esp + 0x4f], al
mov cl, byte [esp + 0x4f]
mov al, byte [esp + 0x4e]
or al, cl
mov byte [esp + 0x4d], al
mov al, byte [esp + 0x4d]
test al, 1
jne 0x10042d85
jmp 0x10042fc8
mov eax, dword [0x1005fc30]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [0x1005fc2c]
mov dword [esp + 0x40], ecx
xor edx, edx
sub edx, 1
mov ecx, eax
add ecx, edx
imul eax, ecx
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
and eax, 1
cmp eax, 0
sete ah
cmp ecx, 0xa
setl dl
mov al, ah
xor al, 0xff
mov byte [esp + 0x3c], al
mov cl, dl
xor cl, 0xff
mov byte [esp + 0x3d], cl
mov ch, 1
xor ch, 1
mov byte [esp + 0x3e], 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 + 0x3f], al
mov cl, byte [esp + 0x3d]
mov al, byte [esp + 0x3c]
or al, cl
xor al, 0xff
mov byte [esp + 0x3b], al
mov al, byte [esp + 0x3f]
mov cl, byte [esp + 0x3b]
mov dl, byte [esp + 0x3e]
or dl, 1
and cl, dl
or al, cl
mov byte [esp + 0x3a], al
mov al, byte [esp + 0x3a]
test al, 1
jne 0x10042e28
jmp 0x10042fc3
mov eax, dword [0x1005fc30]
mov dword [esp + 0x30], eax
mov eax, dword [0x1005fc2c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
add eax, 0x7a9810b1
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
sub edx, 1
sub edx, 0x7a9810b1
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 + 0x2a]
xor al, 0xff
mov byte [esp + 0x29], al
mov al, byte [esp + 0x2b]
mov ah, byte [esp + 0x2a]
mov ch, byte [esp + 0x29]
mov dl, al
xor dl, 0xff
mov byte [esp + 0x23], dl
mov cl, 1
xor cl, 0
mov byte [esp + 0x24], cl
and ch, 0
mov byte [esp + 0x25], ch
and ah, cl
mov byte [esp + 0x26], ah
and dl, 0
mov byte [esp + 0x27], dl
and al, cl
mov byte [esp + 0x28], al
mov dl, byte [esp + 0x24]
mov ah, byte [esp + 0x23]
mov cl, byte [esp + 0x29]
mov dh, byte [esp + 0x28]
mov ch, byte [esp + 0x27]
mov bl, byte [esp + 0x26]
mov al, byte [esp + 0x25]
or al, bl
or ch, dh
xor al, ch
or cl, ah
xor cl, 0xff
or dl, 0
and cl, dl
or al, cl
test al, 1
jne 0x10042ef3
jmp 0x10042fcd
mov eax, dword [0x1005fc30]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x1005fc2c]
mov dword [esp + 0x14], ecx
sub eax, 0x9e3ca36b
sub eax, 1
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
add edx, 0x9e3ca36b
imul eax, edx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0xe], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0xf], cl
xor al, 0xff
mov byte [esp + 0x10], al
xor cl, 0xff
mov byte [esp + 0x11], cl
mov cl, 1
xor cl, 1
mov byte [esp + 0x12], cl
and al, 0xff
mov byte [esp + 0x13], al
mov cl, byte [esp + 0x11]
mov al, byte [esp + 0x10]
mov dl, byte [esp + 0x13]
mov bl, byte [esp + 0x12]
mov ch, byte [esp + 0xf]
mov dh, byte [esp + 0xe]
and dh, bl
mov ah, cl
and ah, 0xff
and ch, bl
or dl, dh
or ah, ch
xor dl, ah
mov byte [esp + 0xc], dl
or al, cl
xor al, 0xff
mov byte [esp + 0xd], al
mov al, byte [esp + 0xc]
mov cl, byte [esp + 0xd]
mov dl, byte [esp + 0x12]
or dl, 1
and cl, dl
or al, cl
mov byte [esp + 0xb], al
mov al, byte [esp + 0xb]
test al, 1
jne 0x10042fb9
jmp 0x10042fcd
add esp, 0xdc
pop esi
pop edi
pop ebx
ret
jmp 0x10042c60
jmp 0x10042d11
jmp 0x10042ef3
mov eax, dword [0x1005e380]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0x5b0d265
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x10042b1b