Function at 0x1003d5f0
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, 0x108
mov eax, dword [esp + 0x11c]
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x118]
mov dword [esp + 0xf8], eax
mov eax, dword [0x10060c78]
mov dword [esp + 0xfc], eax
mov ecx, dword [0x10060c74]
mov dword [esp + 0x100], ecx
xor ecx, ecx
sub ecx, 1
add eax, ecx
mov dword [esp + 0x104], eax
mov ecx, dword [esp + 0x100]
mov edx, dword [esp + 0x104]
mov eax, dword [esp + 0xfc]
imul eax, edx
and eax, 1
cmp eax, 0
sete ah
cmp ecx, 0xa
setl al
mov ch, ah
xor ch, 0xff
mov byte [esp + 0xed], ch
mov dl, al
xor dl, 0xff
mov byte [esp + 0xee], dl
mov cl, 1
xor cl, 1
mov byte [esp + 0xef], cl
and ch, 0xff
mov byte [esp + 0xf0], ch
and ah, cl
mov byte [esp + 0xf1], ah
and dl, 0xff
mov byte [esp + 0xf2], dl
and al, cl
mov byte [esp + 0xf3], al
mov al, byte [esp + 0xef]
mov dl, byte [esp + 0xee]
mov cl, byte [esp + 0xed]
mov dh, byte [esp + 0xf3]
mov ch, byte [esp + 0xf2]
mov bl, byte [esp + 0xf1]
mov ah, byte [esp + 0xf0]
or ah, bl
or ch, dh
xor ah, ch
mov byte [esp + 0xea], ah
or cl, dl
xor cl, 0xff
mov byte [esp + 0xeb], cl
or al, 1
mov byte [esp + 0xec], al
mov al, byte [esp + 0xea]
mov dl, byte [esp + 0xec]
mov cl, byte [esp + 0xeb]
and cl, dl
or al, cl
mov byte [esp + 0xe9], al
mov al, byte [esp + 0xe9]
test al, 1
jne 0x1003d734
jmp 0x1003de8f
mov eax, dword [0x10060c78]
mov dword [esp + 0xdc], eax
mov ecx, dword [0x10060c74]
mov dword [esp + 0xe0], ecx
sub eax, 0x74034eb6
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0xe4]
sub eax, 1
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xd8]
add eax, 0x74034eb6
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xe0]
mov edx, dword [esp + 0xd4]
mov ecx, dword [esp + 0xdc]
imul ecx, edx
and ecx, 1
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 + 0xd3], al
mov al, byte [esp + 0xd3]
test al, 1
jne 0x1003d7c7
jmp 0x1003de8f
mov eax, dword [0x10060c78]
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xcc]
mov ecx, dword [0x10060c74]
mov dword [esp + 0xc4], ecx
add eax, 0x9e948948
sub eax, 1
sub eax, 0x9e948948
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0xc4]
mov edx, dword [esp + 0xc8]
mov ecx, dword [esp + 0xcc]
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0xc2], cl
cmp eax, 0xa
setl al
mov byte [esp + 0xc3], al
mov cl, byte [esp + 0xc2]
mov al, byte [esp + 0xc3]
mov ah, cl
xor ah, 0xff
mov byte [esp + 0xbc], ah
xor al, 0xff
mov byte [esp + 0xbd], al
mov dl, 1
xor dl, 0
mov byte [esp + 0xbe], dl
and ah, 0
mov byte [esp + 0xbf], ah
and cl, dl
mov byte [esp + 0xc0], cl
and al, 0
mov byte [esp + 0xc1], al
mov dl, byte [esp + 0xbe]
mov ah, byte [esp + 0xbd]
mov cl, byte [esp + 0xbc]
mov ch, byte [esp + 0xc1]
mov bl, byte [esp + 0xc0]
mov al, byte [esp + 0xbf]
mov dh, byte [esp + 0xc3]
and dh, dl
or al, bl
or ch, dh
xor al, ch
or cl, ah
xor cl, 0xff
or dl, 0
and cl, dl
or al, cl
mov byte [esp + 0xbb], al
mov al, byte [esp + 0xbb]
test al, 1
jne 0x1003d8db
jmp 0x1003de8a
mov eax, dword [0x10060c78]
mov dword [esp + 0xb0], eax
mov eax, dword [0x10060c74]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xb0]
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 + 0xaf], al
mov cl, byte [esp + 0xaf]
mov eax, dword [esp + 0xb4]
cmp eax, 0xa
setl al
mov byte [esp + 0xab], al
xor cl, 0xff
mov byte [esp + 0xac], cl
xor al, 0xff
mov byte [esp + 0xad], al
mov al, 1
xor al, 0
mov byte [esp + 0xae], al
mov cl, byte [esp + 0xae]
mov al, byte [esp + 0xab]
mov dl, byte [esp + 0xad]
mov ah, byte [esp + 0xaf]
mov ch, byte [esp + 0xac]
and ch, 0
mov byte [esp + 0xa7], ch
and ah, cl
mov byte [esp + 0xa8], ah
and dl, 0
mov byte [esp + 0xa9], dl
and al, cl
mov byte [esp + 0xaa], al
mov cl, byte [esp + 0xad]
mov al, byte [esp + 0xac]
mov ch, byte [esp + 0xaa]
mov ah, byte [esp + 0xa9]
mov dh, byte [esp + 0xa8]
mov dl, byte [esp + 0xa7]
or dl, dh
or ah, ch
xor dl, ah
mov byte [esp + 0xa5], dl
or al, cl
xor al, 0xff
mov byte [esp + 0xa6], al
mov al, byte [esp + 0xa5]
mov cl, byte [esp + 0xa6]
mov dl, byte [esp + 0xae]
or dl, 0
and cl, dl
or al, cl
test al, 1
jne 0x1003da03
jmp 0x1003de94
mov eax, dword [0x10060c78]
mov dword [esp + 0x98], eax
mov ecx, dword [0x10060c74]
mov dword [esp + 0x9c], ecx
add eax, 0xdacd9de4
sub eax, 1
sub eax, 0xdacd9de4
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 0x98]
imul eax, ecx
and eax, 1
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x94]
cmp ecx, 0
sete cl
mov byte [esp + 0x8f], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x90], al
xor cl, 0xff
mov byte [esp + 0x91], cl
xor al, 0xff
mov byte [esp + 0x92], al
mov al, 1
xor al, 1
mov byte [esp + 0x93], al
mov cl, byte [esp + 0x93]
mov al, byte [esp + 0x8f]
mov dl, byte [esp + 0x91]
and dl, 0xff
mov byte [esp + 0x8d], dl
and al, cl
mov byte [esp + 0x8e], al
mov cl, byte [esp + 0x93]
mov al, byte [esp + 0x90]
mov dl, byte [esp + 0x92]
and dl, 0xff
mov byte [esp + 0x8b], dl
and al, cl
mov byte [esp + 0x8c], al
mov dl, byte [esp + 0x93]
mov ah, byte [esp + 0x92]
mov cl, byte [esp + 0x91]
mov dh, byte [esp + 0x8c]
mov ch, byte [esp + 0x8b]
mov bl, byte [esp + 0x8e]
mov al, byte [esp + 0x8d]
or al, bl
or ch, dh
xor al, ch
or cl, ah
xor cl, 0xff
or dl, 1
and cl, dl
or al, cl
test al, 1
jne 0x1003db31
jmp 0x1003de94
mov eax, dword [0x10060c78]
mov dword [esp + 0x7c], eax
mov ecx, dword [0x10060c74]
mov dword [esp + 0x80], ecx
sub eax, 0xe1f9d474
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x84]
sub eax, 1
add eax, 0xe1f9d474
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
imul eax, ecx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x74]
and eax, 1
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x70]
cmp ecx, 0
sete cl
mov byte [esp + 0x6e], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x6f], al
mov dl, byte [esp + 0x6f]
mov cl, byte [esp + 0x6e]
mov al, cl
and al, dl
xor cl, dl
or al, cl
test al, 1
jne 0x1003dbbc
jmp 0x1003de8a
mov eax, dword [0x10060c78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [0x10060c74]
mov dword [esp + 0x60], ecx
mov ecx, eax
sub ecx, 0x8235e74
sub ecx, 1
add ecx, 0x8235e74
imul eax, ecx
and eax, 1
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x64]
cmp eax, 0
sete al
mov byte [esp + 0x5f], al
mov al, byte [esp + 0x5f]
mov ecx, dword [esp + 0x60]
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
mov byte [esp + 0x5d], dl
xor al, cl
mov byte [esp + 0x5e], al
mov cl, byte [esp + 0x5e]
mov al, byte [esp + 0x5d]
or al, cl
mov byte [esp + 0x5c], al
mov al, byte [esp + 0x5c]
test al, 1
jne 0x1003dc37
jmp 0x1003de6b
mov eax, dword [esp + 0xf4]
add eax, 0x1d
mov dword [esp + 0x4c], eax
mov eax, dword [0x1005f358]
cmp dword [eax + 0x6a13c228], 1
sete al
mov byte [esp + 0x53], al
mov eax, dword [0x10060c78]
mov dword [esp + 0x54], eax
mov eax, dword [0x10060c74]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x54]
xor edx, edx
sub edx, 1
mov ecx, eax
add ecx, edx
imul eax, ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
and eax, 1
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
cmp eax, 0
sete al
mov byte [esp + 0x43], al
mov al, byte [esp + 0x43]
mov ecx, dword [esp + 0x58]
cmp ecx, 0xa
setl cl
mov byte [esp + 0x41], cl
and al, cl
mov byte [esp + 0x42], al
mov al, byte [esp + 0x42]
mov dl, byte [esp + 0x41]
mov cl, byte [esp + 0x43]
xor cl, dl
or al, cl
test al, 1
jne 0x1003dccc
jmp 0x1003de6b
mov eax, dword [0x10060c78]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [0x10060c74]
mov dword [esp + 0x34], ecx
add eax, 0x1b3dc98b
sub eax, 1
sub eax, 0x1b3dc98b
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
imul eax, ecx
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
mov byte [esp + 0x2e], dl
xor al, cl
mov byte [esp + 0x2f], al
mov cl, byte [esp + 0x2f]
mov al, byte [esp + 0x2e]
or al, cl
mov byte [esp + 0x2d], al
mov al, byte [esp + 0x2d]
test al, 1
jne 0x1003dd47
jmp 0x1003de99
mov eax, dword [0x10060c78]
mov ecx, dword [0x10060c74]
mov dword [esp + 0x24], ecx
xor edx, edx
sub edx, 1
mov ecx, eax
add ecx, edx
imul eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
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
mov byte [esp + 0x1f], al
mov al, byte [esp + 0x1f]
test al, 1
jne 0x1003ddc0
jmp 0x1003de99
mov cl, byte [esp + 0x53]
xor eax, eax
test cl, 1
mov dword [esp + 0x18], eax
jne 0x1003de61
jmp 0x1003ddd8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xf8]
mov esi, dword [esp + 0xf4]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov dl, byte [edx + eax]
mov byte [esp + 0x17], dl
mov edi, 0x1d
xor edx, edx
div edi
mov eax, dword [esp + 0x10]
mov edi, edx
mov dh, byte [esp + 0x17]
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, 0x4e2e6ece
add eax, 1
sub eax, 0x4e2e6ece
cmp eax, 0xa
mov dword [esp + 0x18], eax
jne 0x1003ddd8
mov eax, dword [0x1005f358]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add eax, 0x6a13c228
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov dword [eax], 1
jmp 0x1003de61
add esp, 0x108
pop esi
pop edi
pop ebx
ret
mov eax, dword [0x1005f358]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0x6a13c228
mov dword [esp], eax
mov eax, dword [esp]
mov eax, dword [eax]
jmp 0x1003dc37
jmp 0x1003d8db
jmp 0x1003d734
jmp 0x1003da03
jmp 0x1003dd47