Function at 0x1004a110
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
push ebx
push edi
push esi
sub esp, 0x80
mov eax, dword [esp + 0x94]
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x78], ecx
add eax, 0x13
mov dword [esp + 0x7c], eax
mov eax, dword [0x1005f3ac]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x70]
add eax, 0x703893ff
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x6c]
mov eax, dword [eax]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x68]
cmp eax, 1
sete al
mov byte [esp + 0x67], al
mov cl, byte [esp + 0x67]
xor eax, eax
test cl, 1
mov dword [esp + 0x60], eax
jne 0x1004a338
jmp 0x1004a17c
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x78]
mov esi, dword [esp + 0x74]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x58], eax
mov dl, byte [edx + eax]
mov byte [esp + 0x5f], dl
mov edi, 0x13
xor edx, edx
div edi
mov eax, dword [esp + 0x58]
mov edi, edx
mov dh, byte [esp + 0x5f]
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
sub eax, 0x3c3c4b05
add eax, 1
add eax, 0x3c3c4b05
cmp eax, 0xd
mov dword [esp + 0x60], eax
jne 0x1004a17c
mov eax, dword [0x10060bd8]
mov dword [esp + 0x54], eax
mov eax, dword [0x10060bd4]
mov dword [esp + 0x4c], eax
xor eax, eax
sub eax, 1
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov ecx, eax
add ecx, edx
imul eax, ecx
and eax, 1
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
cmp eax, 0
sete ah
cmp ecx, 0xa
setl dl
mov al, ah
xor al, 0xff
mov byte [esp + 0x44], al
mov cl, dl
xor cl, 0xff
mov byte [esp + 0x45], cl
mov ch, 1
xor ch, 1
mov byte [esp + 0x46], 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 + 0x47], al
mov cl, byte [esp + 0x45]
mov al, byte [esp + 0x44]
or al, cl
mov byte [esp + 0x43], al
mov al, byte [esp + 0x47]
mov dl, byte [esp + 0x46]
mov cl, byte [esp + 0x43]
xor cl, 0xff
or dl, 1
and cl, dl
or al, cl
test al, 1
jne 0x1004a27d
jmp 0x1004a442
mov eax, dword [0x1005f3ac]
mov dword [eax + 0x703893ff], 1
mov eax, dword [0x10060bd8]
mov dword [esp + 0x38], eax
mov eax, dword [0x10060bd4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x38]
sub eax, 0x263ba562
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
sub eax, 1
add eax, 0x263ba562
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
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, 1
mov byte [esp + 0x2d], bl
mov dl, al
and dl, 0xff
and dh, bl
mov ah, cl
and ah, 0xff
and ch, bl
or dl, dh
or ah, ch
xor dl, ah
mov byte [esp + 0x2e], dl
or al, cl
xor al, 0xff
mov byte [esp + 0x2f], al
mov al, byte [esp + 0x2e]
mov cl, byte [esp + 0x2f]
mov dl, byte [esp + 0x2d]
or dl, 1
and cl, dl
or al, cl
mov byte [esp + 0x2c], al
mov al, byte [esp + 0x2c]
test al, 1
jne 0x1004a333
jmp 0x1004a442
jmp 0x1004a338
mov eax, dword [0x10060bd8]
mov dword [esp + 0x28], eax
mov eax, dword [0x10060bd4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, ecx
add edx, 0x6529d1d9
sub edx, 1
sub edx, 0x6529d1d9
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 al, byte [esp + 0x22]
and al, cl
mov byte [esp + 0x21], al
mov cl, byte [esp + 0x23]
mov al, byte [esp + 0x22]
xor al, cl
mov byte [esp + 0x20], al
mov cl, byte [esp + 0x20]
mov al, byte [esp + 0x21]
or al, cl
test al, 1
jne 0x1004a3b0
jmp 0x1004a465
mov eax, dword [0x10060bd8]
mov dword [esp + 0x14], eax
mov ecx, dword [0x10060bd4]
mov dword [esp + 0x18], ecx
sub eax, 0xdf79f077
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
sub eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add ecx, 0xdf79f077
imul eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0xa], cl
cmp eax, 0xa
setl al
mov byte [esp + 0xb], al
mov cl, byte [esp + 0xb]
mov al, byte [esp + 0xa]
mov dl, al
and dl, cl
mov byte [esp + 8], dl
xor al, cl
mov byte [esp + 9], al
mov cl, byte [esp + 9]
mov al, byte [esp + 8]
or al, cl
test al, 1
jne 0x1004a438
jmp 0x1004a465
add esp, 0x80
pop esi
pop edi
pop ebx
ret
mov eax, dword [0x1005f3ac]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0x703893ff
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x1004a27d
jmp 0x1004a3b0