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

Disassembly:
push ebx
push edi
push esi
sub esp, 0x74
mov eax, dword [esp + 0x88]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x6c], ecx
add eax, 0x13
mov dword [esp + 0x70], eax
mov eax, dword [0x1005f34c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x64]
add eax, 0xdc5bf1e
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x5c]
cmp eax, 1
sete al
mov byte [esp + 0x5b], al
mov cl, byte [esp + 0x5b]
xor eax, eax
test cl, 1
mov dword [esp + 0x54], eax
jne 0x1003c861
jmp 0x1003c679
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x4c], eax
mov dl, byte [edx + eax]
mov byte [esp + 0x53], dl
mov edi, 0x13
xor edx, edx
div edi
mov eax, dword [esp + 0x4c]
mov edi, edx
mov dh, byte [esp + 0x53]
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, 0xe060fe50
add eax, 1
sub eax, 0xe060fe50
cmp eax, 0xc
mov dword [esp + 0x54], eax
jne 0x1003c679
mov eax, dword [0x10060c90]
mov ecx, dword [0x10060c8c]
mov dword [esp + 0x44], ecx
xor edx, edx
sub edx, 1
mov ecx, eax
add ecx, edx
imul eax, ecx
and eax, 1
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
cmp eax, 0
sete al
mov byte [esp + 0x43], al
mov al, byte [esp + 0x43]
mov ecx, dword [esp + 0x44]
cmp ecx, 0xa
setl cl
mov byte [esp + 0x41], cl
xor al, 0xff
mov byte [esp + 0x42], al
mov dl, byte [esp + 0x41]
mov ah, byte [esp + 0x43]
mov al, byte [esp + 0x42]
mov cl, dl
xor cl, 0xff
mov byte [esp + 0x3e], cl
mov ch, 1
xor ch, 1
mov byte [esp + 0x3f], 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 + 0x40], al
mov cl, byte [esp + 0x3e]
mov al, byte [esp + 0x42]
or al, cl
xor al, 0xff
mov byte [esp + 0x3d], al
mov al, byte [esp + 0x40]
mov cl, byte [esp + 0x3d]
mov dl, byte [esp + 0x3f]
or dl, 1
and cl, dl
or al, cl
test al, 1
jne 0x1003c780
jmp 0x1003c868
mov eax, dword [0x1005f34c]
mov dword [eax + 0xdc5bf1e], 1
mov ecx, dword [0x10060c90]
mov eax, dword [0x10060c8c]
mov edx, ecx
sub edx, 0xb9f95a22
sub edx, 1
add edx, 0xb9f95a22
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x38], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x39], al
xor cl, 0xff
mov byte [esp + 0x3a], cl
xor al, 0xff
mov byte [esp + 0x3b], al
mov al, 1
xor al, 1
mov byte [esp + 0x3c], al
mov al, byte [esp + 0x3b]
mov dl, byte [esp + 0x3c]
mov cl, byte [esp + 0x38]
mov ah, byte [esp + 0x3a]
and ah, 0xff
mov byte [esp + 0x35], ah
and cl, dl
mov byte [esp + 0x36], cl
and al, 0xff
mov byte [esp + 0x37], al
mov cl, byte [esp + 0x3b]
mov al, byte [esp + 0x3a]
mov ah, byte [esp + 0x37]
mov dh, byte [esp + 0x36]
mov dl, byte [esp + 0x35]
mov bl, byte [esp + 0x3c]
mov ch, byte [esp + 0x39]
and ch, bl
or dl, dh
or ah, ch
xor dl, ah
mov byte [esp + 0x33], dl
or al, cl
xor al, 0xff
mov byte [esp + 0x34], al
mov al, byte [esp + 0x3c]
or al, 1
mov byte [esp + 0x32], al
mov al, byte [esp + 0x33]
mov dl, byte [esp + 0x32]
mov cl, byte [esp + 0x34]
and cl, dl
or al, cl
mov byte [esp + 0x31], al
mov al, byte [esp + 0x31]
test al, 1
jne 0x1003c85c
jmp 0x1003c868
jmp 0x1003c861
add esp, 0x74
pop esi
pop edi
pop ebx
ret
mov eax, dword [0x10060c90]
mov dword [esp + 0x28], eax
mov eax, dword [0x10060c8c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
xor ecx, ecx
sub ecx, 1
add eax, ecx
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
imul eax, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x1e], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x1f], al
mov dl, byte [esp + 0x1f]
mov cl, byte [esp + 0x1e]
mov al, cl
and al, dl
xor cl, dl
or al, cl
mov byte [esp + 0x1d], al
mov al, byte [esp + 0x1d]
test al, 1
jne 0x1003c8dc
jmp 0x1003c95b
mov eax, dword [0x1005f34c]
mov dword [eax + 0xdc5bf1e], 1
mov eax, dword [0x10060c90]
mov dword [esp + 0x14], eax
mov eax, dword [0x10060c8c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
add eax, 0x941a6366
sub eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
sub ecx, 0x941a6366
imul eax, ecx
and eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
cmp ecx, 0
sete cl
cmp eax, 0xa
setl dl
mov al, cl
and al, dl
xor cl, dl
or al, cl
mov byte [esp + 0xb], al
mov al, byte [esp + 0xb]
test al, 1
jne 0x1003c956
jmp 0x1003c95b
jmp 0x1003c780
mov eax, dword [0x1005f34c]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0xdc5bf1e
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x1003c8dc