Function at 0x10045e50
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 [0x10065364]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x70]
add eax, 0xda7b0ec1
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 0x10045f3f
jmp 0x10045ebc
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
add eax, 0xc3c984d7
add eax, 1
sub eax, 0xc3c984d7
cmp eax, 0x15
mov dword [esp + 0x60], eax
jne 0x10045ebc
mov eax, dword [0x10065364]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x54]
add eax, 0xda7b0ec1
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x50]
mov dword [eax], 1
jmp 0x10045f3f
mov eax, dword [0x10066c60]
mov dword [esp + 0x4c], eax
mov eax, dword [0x10066c5c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x4c]
add eax, 0x5b65b94
sub eax, 1
sub eax, 0x5b65b94
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x43], al
mov al, byte [esp + 0x43]
mov ecx, dword [esp + 0x48]
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
mov byte [esp + 0x41], dl
xor al, cl
mov byte [esp + 0x42], al
mov cl, byte [esp + 0x42]
mov al, byte [esp + 0x41]
or al, cl
test al, 1
jne 0x10045fb1
jmp 0x1004607a
mov eax, dword [0x10066c60]
mov dword [esp + 0x34], eax
mov ecx, dword [0x10066c5c]
mov dword [esp + 0x38], ecx
xor ecx, ecx
sub ecx, 1
add eax, ecx
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x33], al
mov eax, dword [esp + 0x38]
cmp eax, 0xa
setl al
mov byte [esp + 0x32], al
mov cl, byte [esp + 0x32]
mov al, byte [esp + 0x33]
xor al, 0xff
mov byte [esp + 0x2e], al
xor cl, 0xff
mov byte [esp + 0x2f], cl
mov cl, 1
xor cl, 1
mov byte [esp + 0x30], cl
and al, 0xff
mov byte [esp + 0x31], al
mov al, byte [esp + 0x30]
mov dl, byte [esp + 0x2f]
mov cl, byte [esp + 0x2e]
mov ah, byte [esp + 0x31]
mov dh, byte [esp + 0x32]
mov bl, byte [esp + 0x33]
and bl, al
mov ch, dl
and ch, 0xff
and dh, al
or ah, bl
or ch, dh
xor ah, ch
mov byte [esp + 0x2b], ah
or cl, dl
xor cl, 0xff
mov byte [esp + 0x2c], cl
or al, 1
mov byte [esp + 0x2d], al
mov al, byte [esp + 0x2b]
mov dl, byte [esp + 0x2d]
mov cl, byte [esp + 0x2c]
and cl, dl
or al, cl
test al, 1
jne 0x10046070
jmp 0x1004607a
add esp, 0x80
pop esi
pop edi
pop ebx
ret
mov eax, dword [0x10066c60]
mov dword [esp + 0x20], eax
mov eax, dword [0x10066c5c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
add eax, 0x4890557b
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
sub eax, 1
sub eax, 0x4890557b
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x17], al
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x24]
cmp ecx, 0xa
setl cl
mov byte [esp + 0x15], cl
and al, cl
mov byte [esp + 0x16], al
mov al, byte [esp + 0x16]
mov dl, byte [esp + 0x15]
mov cl, byte [esp + 0x17]
xor cl, dl
or al, cl
test al, 1
jne 0x100460f6
jmp 0x10046178
mov eax, dword [0x10066c60]
mov dword [esp + 8], eax
mov ecx, dword [0x10066c5c]
mov dword [esp + 0xc], ecx
xor ecx, ecx
sub ecx, 1
add eax, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
imul eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 2], cl
cmp eax, 0xa
setl al
mov byte [esp + 3], al
mov cl, byte [esp + 3]
mov al, byte [esp + 2]
and al, cl
mov byte [esp + 1], al
mov cl, byte [esp + 3]
mov al, byte [esp + 2]
xor al, cl
mov byte [esp], al
mov cl, byte [esp]
mov al, byte [esp + 1]
or al, cl
test al, 1
jne 0x10046173
jmp 0x10046178
jmp 0x10045fb1
jmp 0x100460f6